@dovetail-v2/refine 0.3.24-alpha.0 → 0.3.24-alpha.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/dist/components/Form/RawYamlFormModal.d.ts +12 -0
- package/dist/components/Form/YamlFormContainer.d.ts +1 -1
- package/dist/components/Form/index.d.ts +1 -0
- package/dist/components/Form/styles.d.ts +1 -0
- package/dist/hooks/useOpenForm.d.ts +1 -0
- package/dist/refine.cjs +6222 -6096
- package/dist/refine.js +6229 -6103
- package/dist/style.css +500 -427
- package/dist/styles/show.d.ts +2 -0
- package/package.json +1 -1
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { BaseRecord, CreateResponse, UpdateResponse } from '@refinedev/core';
|
|
3
|
+
import { ResourceConfig } from 'src/types';
|
|
4
|
+
import { YamlFormProps } from './YamlForm';
|
|
5
|
+
type RawYamlFormModalProps = {
|
|
6
|
+
id?: string;
|
|
7
|
+
resourceConfig: Pick<ResourceConfig, 'name' | 'displayName' | 'kind' | 'initValue' | 'apiVersion' | 'basePath' | 'formConfig'>;
|
|
8
|
+
yamlFormProps?: YamlFormProps;
|
|
9
|
+
onSuccess?: (data: UpdateResponse<BaseRecord> | CreateResponse<BaseRecord>) => void;
|
|
10
|
+
};
|
|
11
|
+
export declare function RawYamlFormModal(props: RawYamlFormModalProps): JSX.Element;
|
|
12
|
+
export {};
|
|
@@ -5,7 +5,7 @@ import { ResourceConfig } from 'src/types';
|
|
|
5
5
|
import { CommonFormConfig } from 'src/types';
|
|
6
6
|
import { YamlFormConfig } from 'src/types';
|
|
7
7
|
import { YamlFormProps } from './YamlForm';
|
|
8
|
-
interface YamlFormContainerProps {
|
|
8
|
+
export interface YamlFormContainerProps {
|
|
9
9
|
id: string;
|
|
10
10
|
resourceConfig: Pick<ResourceConfig, 'name' | 'displayName' | 'kind' | 'initValue' | 'apiVersion' | 'basePath' | 'formConfig' | 'dataProviderName' | 'parent'>;
|
|
11
11
|
customYamlFormProps?: YamlFormProps;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export declare const SpaceStyle: import("@linaria/core").LinariaClassName;
|
|
2
|
+
export declare const FormItemStyle: import("@linaria/core").LinariaClassName;
|
|
2
3
|
export declare const VerticalFormItemStyle: import("@linaria/core").LinariaClassName;
|
|
3
4
|
export declare const IntegerStyle: import("@linaria/core").LinariaClassName;
|
|
4
5
|
export declare const ContentWrapper: import("@linaria/core").LinariaClassName;
|
|
@@ -7,6 +7,7 @@ interface OpenFormOptions {
|
|
|
7
7
|
initialValues?: Record<string, unknown>;
|
|
8
8
|
customOptions?: Record<string, unknown>;
|
|
9
9
|
onSuccess?: (data: UpdateResponse<BaseRecord> | CreateResponse<BaseRecord>) => void;
|
|
10
|
+
useYamlEditor?: boolean;
|
|
10
11
|
}
|
|
11
12
|
export declare function useOpenForm(): (options?: OpenFormOptions) => void;
|
|
12
13
|
export {};
|