@nocobase/client 2.3.0-beta.12 → 2.3.0-beta.14
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/es/index.mjs +18 -18
- package/es/schema-component/hooks/useDesignable.d.ts +2 -0
- package/es/schema-component/types.d.ts +2 -0
- package/lib/index.js +18 -18
- package/package.json +9 -9
|
@@ -18,6 +18,7 @@ interface CreateDesignableProps {
|
|
|
18
18
|
refresh?: (options?: {
|
|
19
19
|
refreshParentSchema?: boolean;
|
|
20
20
|
}) => void;
|
|
21
|
+
localPersistence?: boolean;
|
|
21
22
|
onSuccess?: any;
|
|
22
23
|
t?: any;
|
|
23
24
|
/**
|
|
@@ -100,6 +101,7 @@ export declare function useFindComponent(): (component: string | ComponentType)
|
|
|
100
101
|
export declare function useDesignable(): {
|
|
101
102
|
dn: Designable;
|
|
102
103
|
designable: boolean;
|
|
104
|
+
localPersistence: boolean;
|
|
103
105
|
reset: () => void;
|
|
104
106
|
refresh: (options?: {
|
|
105
107
|
refreshParentSchema?: boolean;
|
|
@@ -18,6 +18,8 @@ export interface ISchemaComponentContext {
|
|
|
18
18
|
reset?: () => void;
|
|
19
19
|
designable?: boolean;
|
|
20
20
|
setDesignable?: (value: boolean) => void;
|
|
21
|
+
/** Keep schema changes in the current context without persisting them through the UI schema API. */
|
|
22
|
+
localPersistence?: boolean;
|
|
21
23
|
SchemaField?: React.FC<ISchemaFieldProps>;
|
|
22
24
|
distributed?: boolean;
|
|
23
25
|
[key: string]: any;
|