@redocly/config
Advanced tools
Comparing version 0.20.1 to 0.20.2
@@ -71,14 +71,15 @@ export type CodeWalkthroughStepAttr = { | ||
}; | ||
export type ControlType = keyof CodeWalkthroughControls; | ||
export type ControlTypeValue<T extends ControlType> = CodeWalkthroughControls[T]; | ||
export type ControlState<T extends ControlType = ControlType> = WithConditions<{ | ||
value: ControlTypeValue<T>; | ||
export type CodeWalkthroughControlState = WithConditions<{ | ||
value: string; | ||
render: boolean; | ||
type: T; | ||
type: 'input'; | ||
} | { | ||
value: string; | ||
render: boolean; | ||
type: 'filter'; | ||
} | { | ||
value: boolean; | ||
render: boolean; | ||
type: 'toggle'; | ||
}>; | ||
type id = string; | ||
export type InputsState = Record<id, ControlState<'input'>>; | ||
export type TogglesState = Record<id, ControlState<'toggle'>>; | ||
export type FiltersState = Record<id, ControlState<'filter'>>; | ||
export type WalkthroughState = Record<id, InputsState | TogglesState | FiltersState>; | ||
export {}; | ||
export type CodeWalkthroughControlsState = Record<string, CodeWalkthroughControlState>; |
@@ -148,2 +148,11 @@ import type { Node } from '@markdoc/markdoc/dist/src/types'; | ||
}; | ||
export type CompilationError = { | ||
message: string; | ||
sourceFileRelativePath: string; | ||
sourceFileLocation: { | ||
line: number; | ||
character?: number; | ||
}; | ||
codeframe: string; | ||
}; | ||
export type PageProps = { | ||
@@ -159,2 +168,3 @@ metadata?: Record<string, unknown>; | ||
dynamicMarkdocComponents?: string[]; | ||
compilationErrors?: CompilationError[]; | ||
markdown?: MdOptions; | ||
@@ -161,0 +171,0 @@ openapiOptions?: OpenAPIOptions; |
@@ -71,14 +71,15 @@ export type CodeWalkthroughStepAttr = { | ||
}; | ||
export type ControlType = keyof CodeWalkthroughControls; | ||
export type ControlTypeValue<T extends ControlType> = CodeWalkthroughControls[T]; | ||
export type ControlState<T extends ControlType = ControlType> = WithConditions<{ | ||
value: ControlTypeValue<T>; | ||
export type CodeWalkthroughControlState = WithConditions<{ | ||
value: string; | ||
render: boolean; | ||
type: T; | ||
type: 'input'; | ||
} | { | ||
value: string; | ||
render: boolean; | ||
type: 'filter'; | ||
} | { | ||
value: boolean; | ||
render: boolean; | ||
type: 'toggle'; | ||
}>; | ||
type id = string; | ||
export type InputsState = Record<id, ControlState<'input'>>; | ||
export type TogglesState = Record<id, ControlState<'toggle'>>; | ||
export type FiltersState = Record<id, ControlState<'filter'>>; | ||
export type WalkthroughState = Record<id, InputsState | TogglesState | FiltersState>; | ||
export {}; | ||
export type CodeWalkthroughControlsState = Record<string, CodeWalkthroughControlState>; |
@@ -148,2 +148,11 @@ import type { Node } from '@markdoc/markdoc/dist/src/types'; | ||
}; | ||
export type CompilationError = { | ||
message: string; | ||
sourceFileRelativePath: string; | ||
sourceFileLocation: { | ||
line: number; | ||
character?: number; | ||
}; | ||
codeframe: string; | ||
}; | ||
export type PageProps = { | ||
@@ -159,2 +168,3 @@ metadata?: Record<string, unknown>; | ||
dynamicMarkdocComponents?: string[]; | ||
compilationErrors?: CompilationError[]; | ||
markdown?: MdOptions; | ||
@@ -161,0 +171,0 @@ openapiOptions?: OpenAPIOptions; |
{ | ||
"name": "@redocly/config", | ||
"version": "0.20.1", | ||
"version": "0.20.2", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
Sorry, the diff of this file is too big to display
145161
8069134