@contember/create 2.0.1 → 2.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/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contember/create",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.2",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"bin": "dist/production/run.js",
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@contember/cli-common": "2.0.
|
|
7
|
+
"@contember/cli-common": "2.0.2",
|
|
8
8
|
"chalk": "^5.3.0",
|
|
9
9
|
"fs-extra": "^11.2.0",
|
|
10
10
|
"js-yaml": "^4.1.0"
|
package/resources/templates/template-workspace/admin/lib/editor/common/editor-block-toolbar.tsx
CHANGED
|
@@ -11,7 +11,7 @@ export const EditorBlockToolbar = memo(({ children }: EditorBlockToolbarProps) =
|
|
|
11
11
|
|
|
12
12
|
return (
|
|
13
13
|
<div className="sticky bottom-0" contentEditable={false}>
|
|
14
|
-
<div className={cn('-mx-3 -mb-2 p-2 rounded-b-md border-t bg-gray-50
|
|
14
|
+
<div className={cn('-mx-3 -mb-2 p-2 rounded-b-md border-t bg-gray-50 flex flex-wrap gap-2', !selection && 'pointer-events-none')}>{children}</div>
|
|
15
15
|
</div>
|
|
16
16
|
)
|
|
17
17
|
})
|
|
@@ -29,10 +29,10 @@ export type InputFieldProps =
|
|
|
29
29
|
inputProps?: ComponentProps<typeof Input>
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
-
export const InputField = Component(({ field, label, description, inputProps, isNonbearing, defaultValue, required }: InputFieldProps) => (
|
|
32
|
+
export const InputField = Component(({ field, label, description, inputProps, isNonbearing, defaultValue, required, parseValue, formatValue }: InputFieldProps) => (
|
|
33
33
|
<FormFieldScope field={field}>
|
|
34
34
|
<FormContainer description={description} label={label} required={required}>
|
|
35
|
-
<FormInput field={field} isNonbearing={isNonbearing} defaultValue={defaultValue}>
|
|
35
|
+
<FormInput field={field} isNonbearing={isNonbearing} defaultValue={defaultValue} parseValue={parseValue} formatValue={formatValue}>
|
|
36
36
|
<Input required={required} {...(inputProps ?? {})} className={cn('max-w-md', inputProps?.className)} />
|
|
37
37
|
</FormInput>
|
|
38
38
|
</FormContainer>
|