Skip to content

Commit

Permalink
fix: added export to the core input components
Browse files Browse the repository at this point in the history
  • Loading branch information
pksorensen committed Dec 2, 2024
1 parent 5df959d commit 82b108c
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 8 deletions.
1 change: 1 addition & 0 deletions packages/core/src/components/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,5 @@ export { ModernQuickFormContainer } from "./modern-container/ModernQuickformCont
export { SlideRenderer } from "./renderers/slide-renderer/SlideRenderer";
export { QuestionHeading } from "./question/components/QuestionHeading";
export { IconResolver, IconEnum } from "./icons";
export * from "./question/input-types";
// import "./question/input-types";
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ export const EmailInput: InputComponentType<EmailProperties> = (props) => {

/* This property assignment grants QuickformDesigner metadata information about which properties the inputcomponent needs */
EmailInput.inputSchema = emailInputSchema;
registerInputComponent("email", EmailInput);
export const registerEmailInput = ()=> registerInputComponent("email", EmailInput);
22 changes: 18 additions & 4 deletions packages/core/src/components/question/input-types/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,18 @@
import "./email/EmailInput";
import "./multiline/MultilineInput";
import "./phone/PhoneInput";
import "./text/TextInput";
export * from "./email/EmailInput";
export * from "./multiline/MultilineInput";
export * from "./phone/PhoneInput";
export * from "./text/TextInput";
export * from "./baseinput/BaseInputComponent";

import { registerEmailInput } from "./email/EmailInput";
import { registerMultilineInput } from "./multiline/MultilineInput";
import { registerPhoneInput } from "./phone/PhoneInput";
import { registerTextInput } from "./text/TextInput";

export const registerCoreInputComponents = () => {

registerTextInput();
registerMultilineInput();
registerPhoneInput();
registerEmailInput();
}
Original file line number Diff line number Diff line change
Expand Up @@ -77,4 +77,4 @@ export const MultilineInput: InputComponentType<MultilineProperties> = ({ questi
};

MultilineInput.inputSchema = multilineInputSchema;
registerInputComponent("multilinetext", MultilineInput);
export const registerMultilineInput = () => registerInputComponent("multilinetext", MultilineInput);
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ export const PhoneInput: InputComponentType<PhoneProperties> = (props) => {

/* This property assignment grants QuickformDesigner metadata information about which properties the inputcomponent needs */
PhoneInput.inputSchema = phoneInputSchema;
registerInputComponent("phone", PhoneInput);
export const registerPhoneInput = ()=> registerInputComponent("phone", PhoneInput);
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ export const TextInput: InputComponentType<TextProperties> = (props) => {

/* This property assignment grants QuickformDesigner metadata information about which properties the inputcomponent needs */
TextInput.inputSchema = textInputSchema;
registerInputComponent("text", TextInput);
export const registerTextInput = ()=>registerInputComponent("text", TextInput);

0 comments on commit 82b108c

Please sign in to comment.