@backstage/core-components 0.12.0-next.1 → 0.12.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 +21 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.esm.js +12 -0
- package/dist/index.esm.js.map +1 -1
- package/package.json +9 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# @backstage/core-components
|
|
2
2
|
|
|
3
|
+
## 0.12.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- fb3733e446: **BREAKING**: Removed the `HomepageTimer` as it has been replaced by the `HeaderWorldClock` in the Home plugin and was deprecated over a year ago.
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- 5f695c219a: Set the `searchTooltip` to "Filter" to follow how the `searchPlaceholder` is set making this more consistent
|
|
12
|
+
- f36127f5fe: Add optional step to SimpleStepper
|
|
13
|
+
- b4fb5c8ecc: MissingAnnotationEmptyState now accepts either a string or an array of strings to support multiple missing annotations.
|
|
14
|
+
- 7573b65232: Internal refactor of imports to avoid circular dependencies
|
|
15
|
+
- 858986f6b6: Disable base path workaround in `Link` component when React Router v6 stable is used.
|
|
16
|
+
- f905853ad6: Prefer using `Link` from `@backstage/core-components` rather than material-UI.
|
|
17
|
+
- Updated dependencies
|
|
18
|
+
- @backstage/version-bridge@1.0.2
|
|
19
|
+
- @backstage/core-plugin-api@1.1.0
|
|
20
|
+
- @backstage/config@1.0.4
|
|
21
|
+
- @backstage/errors@1.1.3
|
|
22
|
+
- @backstage/theme@0.2.16
|
|
23
|
+
|
|
3
24
|
## 0.12.0-next.1
|
|
4
25
|
|
|
5
26
|
### Patch Changes
|
package/dist/index.d.ts
CHANGED
|
@@ -938,6 +938,10 @@ declare type StepActions = {
|
|
|
938
938
|
canRestart?: () => boolean;
|
|
939
939
|
onRestart?: () => void;
|
|
940
940
|
restartText?: string;
|
|
941
|
+
showSkip?: boolean;
|
|
942
|
+
canSkip?: () => boolean;
|
|
943
|
+
onSkip?: () => void;
|
|
944
|
+
skipText?: string;
|
|
941
945
|
};
|
|
942
946
|
declare type StepProps = {
|
|
943
947
|
title: string;
|
package/dist/index.esm.js
CHANGED
|
@@ -2746,6 +2746,13 @@ const NextBtn = ({
|
|
|
2746
2746
|
"data-testid": `nextButton-${stepIndex}`,
|
|
2747
2747
|
onClick: handleClick
|
|
2748
2748
|
}, text || (last ? "Finish" : "Next"));
|
|
2749
|
+
const SkipBtn = ({ text, handleClick, disabled, stepIndex }) => /* @__PURE__ */ React.createElement(Button$1, {
|
|
2750
|
+
variant: "outlined",
|
|
2751
|
+
color: "primary",
|
|
2752
|
+
disabled,
|
|
2753
|
+
"data-testid": `skipButton-${stepIndex}`,
|
|
2754
|
+
onClick: handleClick
|
|
2755
|
+
}, text || "Skip");
|
|
2749
2756
|
const BackBtn = ({ text, handleClick, disabled, stepIndex }) => /* @__PURE__ */ React.createElement(Button$1, {
|
|
2750
2757
|
onClick: handleClick,
|
|
2751
2758
|
"data-testid": `backButton-${stepIndex}`,
|
|
@@ -2794,6 +2801,11 @@ const SimpleStepperFooter = ({
|
|
|
2794
2801
|
handleClick: handleBack,
|
|
2795
2802
|
disabled: stepIndex === 0,
|
|
2796
2803
|
stepIndex
|
|
2804
|
+
}), actions.showSkip && /* @__PURE__ */ React.createElement(SkipBtn, {
|
|
2805
|
+
text: actions.skipText,
|
|
2806
|
+
handleClick: handleNext,
|
|
2807
|
+
disabled: !!stepperLength && stepIndex >= stepperLength || !!actions.canSkip && !actions.canSkip(),
|
|
2808
|
+
stepIndex
|
|
2797
2809
|
}), [void 0, true].includes(actions.showNext) && /* @__PURE__ */ React.createElement(NextBtn, {
|
|
2798
2810
|
text: actions.nextText,
|
|
2799
2811
|
handleClick: handleNext,
|