@wise/dynamic-flow-client 1.0.1 → 1.0.2
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/build/main.js +17 -9
- package/build/main.min.js +3 -3
- package/build/types/common/contexts/logContext/LogContext.d.ts +1 -1
- package/build/types/jsonSchemaForm/schemaFormControl/SchemaFormControl.d.ts +2 -1
- package/package.json +1 -1
- package/build/types/dynamicFlow/stories/EditableDynamicFlow.d.ts +0 -4
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export type LogLevel = 'debug' | 'info' | 'warning' | 'error' | 'critical';
|
|
3
|
-
export type LogTitle = 'Invalid schema or model' | 'Invalid model on change' | 'Invalid response' | 'Action supressed' | 'Deprecation
|
|
3
|
+
export type LogTitle = 'Invalid schema or model' | 'Invalid model on change' | 'Invalid response' | 'Action supressed' | 'Deprecation warning' | 'Deprecated schema' | 'Error fetching';
|
|
4
4
|
type ExtraProps = Record<string, unknown>;
|
|
5
5
|
export type LogEventHandler = (level: LogLevel, message: string, extra: ExtraProps) => void;
|
|
6
6
|
type LogFunction = (title: LogTitle, description: string, extra?: ExtraProps) => void;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { FormControlType } from '../../common/constants';
|
|
2
|
+
import { useLogger } from '../../common/contexts';
|
|
2
3
|
import { BasicModel, Schema } from '../../types';
|
|
3
|
-
export declare const getControlType: (schema: Schema) => (typeof FormControlType)[keyof typeof FormControlType] | undefined;
|
|
4
|
+
export declare const getControlType: (schema: Schema, log: ReturnType<typeof useLogger>) => (typeof FormControlType)[keyof typeof FormControlType] | undefined;
|
|
4
5
|
declare const SchemaFormControl: {
|
|
5
6
|
(props: SchemaFormControlProps): JSX.Element;
|
|
6
7
|
defaultProps: {
|
package/package.json
CHANGED