Skip to content

Commit

Permalink
[C] mappings for text inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
alexgoff authored and blnkt committed Nov 1, 2023
1 parent 861f6ab commit cc8dd4d
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 33 deletions.
2 changes: 1 addition & 1 deletion components/factories/QuestionFactory/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const Fragment = graphql(`
}
}
}
... on multiPartBlocks_textInput_BlockType {
... on multiPartBlocks_text_BlockType {
id
type: typeHandle
}
Expand Down
2 changes: 1 addition & 1 deletion components/questions/InlineQuestion/Text/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ interface InlineTextProps extends InlineTextPart {
const InlineText: FunctionComponent<InlineTextProps> = ({
onChangeCallback,
isDisabled,
value,
value = "",
id,
}) => (
<Styled.InlineTextInput
Expand Down
8 changes: 4 additions & 4 deletions gql/educator-schema/graphql.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7884,7 +7884,7 @@ export type LinkField_Link = {
url?: Maybe<Scalars['String']['output']>;
};

export type MultiPartBlocks_NeoField = MultiPartBlocks_Multiselect_BlockType | MultiPartBlocks_ReadonlyText_BlockType | MultiPartBlocks_Select_BlockType | MultiPartBlocks_TextInput_BlockType;
export type MultiPartBlocks_NeoField = MultiPartBlocks_Multiselect_BlockType | MultiPartBlocks_ReadonlyText_BlockType | MultiPartBlocks_Select_BlockType | MultiPartBlocks_Text_BlockType;

export type MultiPartBlocks_Multiselect_BlockType = ElementInterface & NeoBlockInterface & {
__typename?: 'multiPartBlocks_multiselect_BlockType';
Expand Down Expand Up @@ -8122,8 +8122,8 @@ export type MultiPartBlocks_Select_BlockTypeAnswerOptionsArgs = {
uri?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
};

export type MultiPartBlocks_TextInput_BlockType = ElementInterface & NeoBlockInterface & {
__typename?: 'multiPartBlocks_textInput_BlockType';
export type MultiPartBlocks_Text_BlockType = ElementInterface & NeoBlockInterface & {
__typename?: 'multiPartBlocks_text_BlockType';
/** Return a number of related elements for a field. */
_count?: Maybe<Scalars['Int']['output']>;
/** Whether the element is archived. */
Expand Down Expand Up @@ -8173,7 +8173,7 @@ export type MultiPartBlocks_TextInput_BlockType = ElementInterface & NeoBlockInt
};


export type MultiPartBlocks_TextInput_BlockType_CountArgs = {
export type MultiPartBlocks_Text_BlockType_CountArgs = {
field: Scalars['String']['input'];
};

Expand Down
4 changes: 2 additions & 2 deletions gql/public-schema/gql.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const documents = {
"\n fragment TextBlock on contentBlocks_text_BlockType {\n id\n text\n }\n": types.TextBlockFragmentDoc,
"\n fragment TwoColumnContainerBlock on contentBlocks_twoColumnContainer_BlockType {\n columns: children {\n ... on contentBlocks_colLeft_BlockType {\n __typename\n id\n childblocks: children {\n __typename\n id\n ...FilterToolBlock\n ...TextBlock\n ...ImageBlock\n ...TableBlock\n ...BarGraphToolBlock\n ...ScatterplotToolBlock\n }\n }\n ... on contentBlocks_colRight_BlockType {\n __typename\n id\n childblocks: children {\n __typename\n id\n ...FilterToolBlock\n ...TextBlock\n ...ImageBlock\n ...TableBlock\n ...BarGraphToolBlock\n ...ScatterplotToolBlock\n }\n }\n }\n }\n": types.TwoColumnContainerBlockFragmentDoc,
"\n fragment ContentBlockFactory on contentBlocks_NeoField {\n __typename\n ...TwoColumnContainerBlock\n ...InteractionGroupContainerBlock\n ...TextBlock\n ...ImageBlock\n ...TableBlock\n ...QuestionsBlock\n ...BarGraphToolBlock\n ...FilterToolBlock\n ...ScatterplotToolBlock\n }\n": types.ContentBlockFactoryFragmentDoc,
"\n fragment QuestionFactory on questions_default_Entry {\n answerType\n options: answerOptions {\n ... on answerOptions_option_BlockType {\n label: optionLabel\n value: optionValue\n }\n }\n id\n questionText\n widgetInstructions\n questionWidgetsBlock {\n __typename\n ... on questionWidgetsBlock_colorFilterToolBlock_BlockType {\n typeHandle\n colorFilterTool {\n ...ColorFilterToolBlock\n }\n }\n }\n multiPartBlocks {\n ... on multiPartBlocks_select_BlockType {\n id\n type: typeHandle\n options: answerOptions {\n ... on answerOptions_option_BlockType {\n id\n label: optionLabel\n value: optionValue\n }\n }\n }\n ... on multiPartBlocks_textInput_BlockType {\n id\n type: typeHandle\n }\n ... on multiPartBlocks_multiselect_BlockType {\n id\n type: typeHandle\n options: answerOptions {\n ... on answerOptions_option_BlockType {\n id\n label: optionLabel\n value: optionValue\n }\n }\n }\n ... on multiPartBlocks_readonlyText_BlockType {\n id\n type: typeHandle\n text: questionText\n }\n }\n }\n": types.QuestionFactoryFragmentDoc,
"\n fragment QuestionFactory on questions_default_Entry {\n answerType\n options: answerOptions {\n ... on answerOptions_option_BlockType {\n label: optionLabel\n value: optionValue\n }\n }\n id\n questionText\n widgetInstructions\n questionWidgetsBlock {\n __typename\n ... on questionWidgetsBlock_colorFilterToolBlock_BlockType {\n typeHandle\n colorFilterTool {\n ...ColorFilterToolBlock\n }\n }\n }\n multiPartBlocks {\n ... on multiPartBlocks_select_BlockType {\n id\n type: typeHandle\n options: answerOptions {\n ... on answerOptions_option_BlockType {\n id\n label: optionLabel\n value: optionValue\n }\n }\n }\n ... on multiPartBlocks_text_BlockType {\n id\n type: typeHandle\n }\n ... on multiPartBlocks_multiselect_BlockType {\n id\n type: typeHandle\n options: answerOptions {\n ... on answerOptions_option_BlockType {\n id\n label: optionLabel\n value: optionValue\n }\n }\n }\n ... on multiPartBlocks_readonlyText_BlockType {\n id\n type: typeHandle\n text: questionText\n }\n }\n }\n": types.QuestionFactoryFragmentDoc,
"\n fragment SimpleContentBlockFactory on contentBlocks_NeoField {\n __typename\n ...TextBlock\n }\n": types.SimpleContentBlockFactoryFragmentDoc,
"\n fragment TemplateFactory on EntryInterface {\n __typename\n ...PageTemplate\n }\n": types.TemplateFactoryFragmentDoc,
"\n fragment HomepageTemplate on homepage_homepage_Entry {\n id\n title\n contentBlocks {\n ...ContentBlockFactory\n }\n }\n": types.HomepageTemplateFragmentDoc,
Expand Down Expand Up @@ -187,7 +187,7 @@ export function graphql(source: "\n fragment ContentBlockFactory on contentBloc
/**
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
*/
export function graphql(source: "\n fragment QuestionFactory on questions_default_Entry {\n answerType\n options: answerOptions {\n ... on answerOptions_option_BlockType {\n label: optionLabel\n value: optionValue\n }\n }\n id\n questionText\n widgetInstructions\n questionWidgetsBlock {\n __typename\n ... on questionWidgetsBlock_colorFilterToolBlock_BlockType {\n typeHandle\n colorFilterTool {\n ...ColorFilterToolBlock\n }\n }\n }\n multiPartBlocks {\n ... on multiPartBlocks_select_BlockType {\n id\n type: typeHandle\n options: answerOptions {\n ... on answerOptions_option_BlockType {\n id\n label: optionLabel\n value: optionValue\n }\n }\n }\n ... on multiPartBlocks_textInput_BlockType {\n id\n type: typeHandle\n }\n ... on multiPartBlocks_multiselect_BlockType {\n id\n type: typeHandle\n options: answerOptions {\n ... on answerOptions_option_BlockType {\n id\n label: optionLabel\n value: optionValue\n }\n }\n }\n ... on multiPartBlocks_readonlyText_BlockType {\n id\n type: typeHandle\n text: questionText\n }\n }\n }\n"): (typeof documents)["\n fragment QuestionFactory on questions_default_Entry {\n answerType\n options: answerOptions {\n ... on answerOptions_option_BlockType {\n label: optionLabel\n value: optionValue\n }\n }\n id\n questionText\n widgetInstructions\n questionWidgetsBlock {\n __typename\n ... on questionWidgetsBlock_colorFilterToolBlock_BlockType {\n typeHandle\n colorFilterTool {\n ...ColorFilterToolBlock\n }\n }\n }\n multiPartBlocks {\n ... on multiPartBlocks_select_BlockType {\n id\n type: typeHandle\n options: answerOptions {\n ... on answerOptions_option_BlockType {\n id\n label: optionLabel\n value: optionValue\n }\n }\n }\n ... on multiPartBlocks_textInput_BlockType {\n id\n type: typeHandle\n }\n ... on multiPartBlocks_multiselect_BlockType {\n id\n type: typeHandle\n options: answerOptions {\n ... on answerOptions_option_BlockType {\n id\n label: optionLabel\n value: optionValue\n }\n }\n }\n ... on multiPartBlocks_readonlyText_BlockType {\n id\n type: typeHandle\n text: questionText\n }\n }\n }\n"];
export function graphql(source: "\n fragment QuestionFactory on questions_default_Entry {\n answerType\n options: answerOptions {\n ... on answerOptions_option_BlockType {\n label: optionLabel\n value: optionValue\n }\n }\n id\n questionText\n widgetInstructions\n questionWidgetsBlock {\n __typename\n ... on questionWidgetsBlock_colorFilterToolBlock_BlockType {\n typeHandle\n colorFilterTool {\n ...ColorFilterToolBlock\n }\n }\n }\n multiPartBlocks {\n ... on multiPartBlocks_select_BlockType {\n id\n type: typeHandle\n options: answerOptions {\n ... on answerOptions_option_BlockType {\n id\n label: optionLabel\n value: optionValue\n }\n }\n }\n ... on multiPartBlocks_text_BlockType {\n id\n type: typeHandle\n }\n ... on multiPartBlocks_multiselect_BlockType {\n id\n type: typeHandle\n options: answerOptions {\n ... on answerOptions_option_BlockType {\n id\n label: optionLabel\n value: optionValue\n }\n }\n }\n ... on multiPartBlocks_readonlyText_BlockType {\n id\n type: typeHandle\n text: questionText\n }\n }\n }\n"): (typeof documents)["\n fragment QuestionFactory on questions_default_Entry {\n answerType\n options: answerOptions {\n ... on answerOptions_option_BlockType {\n label: optionLabel\n value: optionValue\n }\n }\n id\n questionText\n widgetInstructions\n questionWidgetsBlock {\n __typename\n ... on questionWidgetsBlock_colorFilterToolBlock_BlockType {\n typeHandle\n colorFilterTool {\n ...ColorFilterToolBlock\n }\n }\n }\n multiPartBlocks {\n ... on multiPartBlocks_select_BlockType {\n id\n type: typeHandle\n options: answerOptions {\n ... on answerOptions_option_BlockType {\n id\n label: optionLabel\n value: optionValue\n }\n }\n }\n ... on multiPartBlocks_text_BlockType {\n id\n type: typeHandle\n }\n ... on multiPartBlocks_multiselect_BlockType {\n id\n type: typeHandle\n options: answerOptions {\n ... on answerOptions_option_BlockType {\n id\n label: optionLabel\n value: optionValue\n }\n }\n }\n ... on multiPartBlocks_readonlyText_BlockType {\n id\n type: typeHandle\n text: questionText\n }\n }\n }\n"];
/**
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
*/
Expand Down
Loading

0 comments on commit cc8dd4d

Please sign in to comment.