Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions packages/core/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,7 @@ export type WidgetComponentProps<Identifier extends NonNullish = NonNullish> = {
id: ExternalReference<Identifier>["id"];
onChange: (newId: ExternalReference<Identifier>["id"]) => void;
params?: Record<string, any>;
field: Field;
};

export type InlineTypeWidgetComponentProps<
Expand All @@ -341,6 +342,7 @@ export type InlineTypeWidgetComponentProps<
value: Type;
onChange: (newValue: Type) => void;
params?: Record<string, any>;
field: Field;
};

export type TokenTypeWidgetComponentProps<
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ const ExternalFieldComponent = (props: ExternalFieldProps) => {
}}
path={fieldNames[0]}
params={field.schemaProp.params}
field={field}
/>
) : (
<MissingWidget type={field.schemaProp.type} />
Expand Down
1 change: 1 addition & 0 deletions packages/editor/src/tinacms/fields/plugins/LocalFIeld.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ const LocalFieldPlugin = {
params={
"params" in field.schemaProp ? field.schemaProp.params : undefined
}
field={field}
/>
);
}),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,7 @@ function TokenFieldComponent<TokenValue extends NonNullish>({
params={
"params" in field.schemaProp ? field.schemaProp.params : undefined
}
field={field}
/>
) : (
<Input
Expand Down