@backstage/core-components 0.7.3 → 0.7.4
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 +10 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.esm.js +10 -7
- package/dist/index.esm.js.map +1 -1
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @backstage/core-components
|
|
2
2
|
|
|
3
|
+
## 0.7.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 274a4fc633: Add Props Icon for Sidebar Item SidebarSearchField and Settings
|
|
8
|
+
- 682945e233: Changing the `Header` styles to use more theme variables. With this the title `font-size` will not change on resizing the window.
|
|
9
|
+
- 892c1d9202: Update OAuthAdapter to create identity.token from identity.idToken if it does not exist, and prevent overwrites to identity.toke. Update login page commonProvider to prefer .token over .idToken
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
- @backstage/core-plugin-api@0.2.0
|
|
12
|
+
|
|
3
13
|
## 0.7.3
|
|
4
14
|
|
|
5
15
|
### Patch Changes
|
package/dist/index.d.ts
CHANGED
|
@@ -1256,6 +1256,7 @@ declare const SidebarItem: React__default.ForwardRefExoticComponent<SidebarItemP
|
|
|
1256
1256
|
declare type SidebarSearchFieldProps = {
|
|
1257
1257
|
onSearch: (input: string) => void;
|
|
1258
1258
|
to?: string;
|
|
1259
|
+
icon?: IconComponent;
|
|
1259
1260
|
};
|
|
1260
1261
|
declare function SidebarSearchField(props: SidebarSearchFieldProps): JSX.Element;
|
|
1261
1262
|
declare const SidebarSpace: React__default.ComponentType<Pick<React__default.DetailedHTMLProps<React__default.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "hidden" | "dir" | "slot" | "style" | "title" | "color" | "translate" | "prefix" | "children" | "id" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "draggable" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | keyof React__default.ClassAttributes<HTMLDivElement>> & _material_ui_core_styles.StyledComponentProps<"root"> & {
|
package/dist/index.esm.js
CHANGED
|
@@ -3905,7 +3905,7 @@ const useStyles$9 = makeStyles((theme) => ({
|
|
|
3905
3905
|
gridArea: "pageHeader",
|
|
3906
3906
|
padding: theme.spacing(3),
|
|
3907
3907
|
width: "100%",
|
|
3908
|
-
boxShadow:
|
|
3908
|
+
boxShadow: theme.shadows[4],
|
|
3909
3909
|
position: "relative",
|
|
3910
3910
|
zIndex: 100,
|
|
3911
3911
|
display: "flex",
|
|
@@ -3926,12 +3926,12 @@ const useStyles$9 = makeStyles((theme) => ({
|
|
|
3926
3926
|
title: {
|
|
3927
3927
|
color: theme.palette.bursts.fontColor,
|
|
3928
3928
|
wordBreak: "break-all",
|
|
3929
|
-
fontSize:
|
|
3929
|
+
fontSize: theme.typography.h3.fontSize,
|
|
3930
3930
|
marginBottom: 0
|
|
3931
3931
|
},
|
|
3932
3932
|
subtitle: {
|
|
3933
|
-
color:
|
|
3934
|
-
|
|
3933
|
+
color: theme.palette.common.white,
|
|
3934
|
+
opacity: 0.8,
|
|
3935
3935
|
display: "inline-block",
|
|
3936
3936
|
marginTop: theme.spacing(1)
|
|
3937
3937
|
},
|
|
@@ -3943,7 +3943,6 @@ const useStyles$9 = makeStyles((theme) => ({
|
|
|
3943
3943
|
color: theme.palette.bursts.fontColor
|
|
3944
3944
|
},
|
|
3945
3945
|
breadcrumb: {
|
|
3946
|
-
fontSize: "calc(15px + 1 * ((100vw - 320px) / 680))",
|
|
3947
3946
|
color: theme.palette.bursts.fontColor
|
|
3948
3947
|
},
|
|
3949
3948
|
breadcrumbType: {
|
|
@@ -4588,6 +4587,7 @@ const SidebarItem = forwardRef((props, ref) => {
|
|
|
4588
4587
|
function SidebarSearchField(props) {
|
|
4589
4588
|
const [input, setInput] = useState("");
|
|
4590
4589
|
const classes = useStyles$2();
|
|
4590
|
+
const Icon = props.icon ? props.icon : SearchIcon;
|
|
4591
4591
|
const search = () => {
|
|
4592
4592
|
props.onSearch(input);
|
|
4593
4593
|
setInput("");
|
|
@@ -4612,7 +4612,7 @@ function SidebarSearchField(props) {
|
|
|
4612
4612
|
return /* @__PURE__ */ React.createElement("div", {
|
|
4613
4613
|
className: classes.searchRoot
|
|
4614
4614
|
}, /* @__PURE__ */ React.createElement(SidebarItem, {
|
|
4615
|
-
icon:
|
|
4615
|
+
icon: Icon,
|
|
4616
4616
|
to: props.to,
|
|
4617
4617
|
onClick: handleItemClick
|
|
4618
4618
|
}, /* @__PURE__ */ React.createElement(TextField, {
|
|
@@ -4823,7 +4823,10 @@ const Component$2 = ({config, onResult}) => {
|
|
|
4823
4823
|
userId: identity.id,
|
|
4824
4824
|
profile,
|
|
4825
4825
|
getIdToken: () => {
|
|
4826
|
-
return authApi.getBackstageIdentity().then((i) =>
|
|
4826
|
+
return authApi.getBackstageIdentity().then((i) => {
|
|
4827
|
+
var _a;
|
|
4828
|
+
return (_a = i.token) != null ? _a : i.idToken;
|
|
4829
|
+
});
|
|
4827
4830
|
},
|
|
4828
4831
|
signOut: async () => {
|
|
4829
4832
|
await authApi.signOut();
|