Skip to content

🎥 Make videos programmatically with React

comments

Patric Salvisbergedae607bf980
diff --git a/packages/cli/src/editor/components/CollapsedSidebarExpander.tsx b/packages/cli/src/editor/components/CollapsedSidebarExpander.tsx
index b400911611..578e9ecc97 100644
--- a/packages/cli/src/editor/components/CollapsedSidebarExpander.tsx
+++ b/packages/cli/src/editor/components/CollapsedSidebarExpander.tsx
@@ -50,6 +50,7 @@ export const CollapsedSidebarExpander: React.FC<{
tabIndex={tabIndex}
onClick={onExpand}
>
+ {/* TODO: Fix right caret not displayed when sidebar expanded */}
{direction === 'right' ? <CaretRight /> : <CaretLeft />}
</button>
);
diff --git a/packages/cli/src/editor/components/RenderModal/SchemaEditor/ZodNumberEditor.tsx b/packages/cli/src/editor/components/RenderModal/SchemaEditor/ZodNumberEditor.tsx
index 3023fc267e..e13f8c59f2 100644
--- a/packages/cli/src/editor/components/RenderModal/SchemaEditor/ZodNumberEditor.tsx
+++ b/packages/cli/src/editor/components/RenderModal/SchemaEditor/ZodNumberEditor.tsx
@@ -152,6 +152,7 @@ export const ZodNumberEditor: React.FC<{
onRemove={onRemove}
/>
<div style={fullWidth}>
+ {/* TODO: E and e should not be valid numbers */}
<InputDragger
type={'number'}
value={localValue.value}
diff --git a/packages/cli/src/editor/components/RenderModal/SchemaEditor/ZodSwitch.tsx b/packages/cli/src/editor/components/RenderModal/SchemaEditor/ZodSwitch.tsx
index 704419ad4b..5107b9d237 100644
--- a/packages/cli/src/editor/components/RenderModal/SchemaEditor/ZodSwitch.tsx
+++ b/packages/cli/src/editor/components/RenderModal/SchemaEditor/ZodSwitch.tsx
@@ -36,6 +36,8 @@ export const ZodSwitch: React.FC<{
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const typeName = (def as any).typeName as z.ZodFirstPartyTypeKind;
+ // TODO: (Maybe?) enable saving of inserted input props by cmd+s /ctrl + s (also for JSON view)
+
if (typeName === z.ZodFirstPartyTypeKind.ZodObject) {
return (
<ZodObjectEditor
diff --git a/packages/example/src/Video.tsx b/packages/example/src/Video.tsx
index 054209905e..4f115148f9 100644
--- a/packages/example/src/Video.tsx
+++ b/packages/example/src/Video.tsx
@@ -695,8 +695,8 @@ export const Index: React.FC = () => {
})
)
.min(2),
- array2: z.array(z.array(z.string())),
- mynum: z.number().negative(),
+ array2: z.array(z.array(z.number())),
+ mynum: z.number().lt(10000000),
value: z.boolean().refine((v) => v === false || v === true),
lol: z.undefined(),
haha: z.null(),
@@ -715,14 +715,14 @@ export const Index: React.FC = () => {
{a: 'a', b: 'bbbbb'},
{a: 'a', b: 'b'},
],
- array2: [['bbbbbb'], ['bbbbbbgggg']],
- mynum: -62,
+ array2: [[12], [12]],
+ mynum: 4,
value: true,
haha: null,
yo: {hi: ' there'},
un: 'hi',
num: '179',
- date: new Date('2022-01-08T22:10:00.000Z'),
+ date: new Date('1999-02-12T20:20:00.000Z'),
values: 'a',
supersuperlongvalueabcdefghji: 'hi',
}}