refactor(editor): add schema for value of database block properties (#10749)
This commit is contained in:
1 parent
db707dff7f
commit
77e4b9aa8e
17 files changed
+198
-172
No files matched your search
@@ -1,10 +1,12 @@
|
||||
import zod from 'zod';
|
||||
|
||||
import { t } from '../../core/logical/type-presets.js';
|
||||
import { propertyType } from '../../core/property/property-config.js';
|
||||
|
||||
export const imagePropertyType = propertyType('image');
|
||||
|
||||
export const imagePropertyModelConfig = imagePropertyType.modelConfig<string>({
|
||||
export const imagePropertyModelConfig = imagePropertyType.modelConfig({
|
||||
name: 'image',
|
||||
valueSchema: zod.string().optional(),
|
||||
hide: true,
|
||||
type: () => t.image.instance(),
|
||||
defaultData: () => ({}),
|
||||
|
||||
Reference in new issue
Block a user