This repository has been archived by the owner on Jun 28, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: use new IDiagnostic type [SL-2125] (#45)
BREAKING CHANGES: The diagnostics interface has changed and the `show` now shows fields instead of hides them. * feat: use new IDiagnostic type * chore: storybook v5 * fix: summary should be consumed * chore: remove @emotion/core * feat: less TypeScript-ish * fix: show means show, not hide
- Loading branch information
Showing
10 changed files
with
2,624 additions
and
1,047 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,7 @@ | ||
import { JsonPath } from '@stoplight/types'; | ||
import * as React from 'react'; | ||
import { IFormtronDiagnostic } from '../types'; | ||
|
||
export interface IDiagnosticMessage { | ||
severity: number; | ||
severityLabel: string; | ||
summary?: string; | ||
message?: string; | ||
} | ||
|
||
export type IDiagnosticMessagesProvider = (path: string[]) => IDiagnosticMessage[]; | ||
export type IDiagnosticMessagesProvider = (path: JsonPath) => IFormtronDiagnostic[]; | ||
|
||
export const DiagnosticMessagesContext = React.createContext<IDiagnosticMessagesProvider>(() => []); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.