@levo-so/studio 0.2.3 → 0.3.1

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/index.d.ts CHANGED
@@ -49,6 +49,28 @@ collapsible?: boolean;
49
49
 
50
50
  export declare const AccordionTrigger: WithBlockPropsComponent<BaseAccordionTriggerProps>;
51
51
 
52
+ /**
53
+ * Optional attendee fields. Each is hidden unless its `key` is listed in the
54
+ * `additionalFields` prop, so every event can collect exactly what it needs.
55
+ * Rendered in this order regardless of the order keys are passed in.
56
+ */
57
+ declare const ADDITIONAL_FIELDS: readonly [{
58
+ readonly key: "designation";
59
+ readonly label: "Designation";
60
+ readonly placeholder: "Product Manager";
61
+ readonly type: "text";
62
+ }, {
63
+ readonly key: "mobile";
64
+ readonly label: "Phone Number";
65
+ readonly placeholder: "+91 98765 43210";
66
+ readonly type: "tel";
67
+ }, {
68
+ readonly key: "organization";
69
+ readonly label: "Company Name";
70
+ readonly placeholder: "Acme Corporation";
71
+ readonly type: "text";
72
+ }];
73
+
52
74
  /**
53
75
  * Alternate method values for quick checking
54
76
  */
@@ -981,6 +1003,9 @@ declare type HTMLImageProps_2 = Omit<React.DetailedHTMLProps<React.ImgHTMLAttrib
981
1003
 
982
1004
  declare type HTMLVideoProps = Omit<React.DetailedHTMLProps<React.VideoHTMLAttributes<HTMLVideoElement>, HTMLVideoElement>, "src" | keyof BaseElementProps>;
983
1005
 
1006
+ /** Keys accepted by the `additionalFields` prop. */
1007
+ declare type IAdditionalFieldKey = (typeof ADDITIONAL_FIELDS)[number]["key"];
1008
+
984
1009
  declare interface IAuthActions {
985
1010
  setAuthState: (updates: Partial<IAuthState>) => void;
986
1011
  resetAuth: () => void;
@@ -2815,11 +2840,13 @@ export declare const processTheme: ({ pageTheme, blocks, pageID, device, }: {
2815
2840
  html: string;
2816
2841
  };
2817
2842
 
2818
- export declare const RegisterModal: ({ eventID, title, external, buttonText, }: {
2843
+ export declare const RegisterModal: ({ eventID, title, external, buttonText, additionalFields, }: {
2819
2844
  eventID: string;
2820
2845
  title?: string;
2821
2846
  external?: string;
2822
2847
  buttonText?: string;
2848
+ /** Optional attendee fields to collect ("designation" | "mobile" | "organization"). Hidden unless listed. */
2849
+ additionalFields?: IAdditionalFieldKey[];
2823
2850
  }) => JSX.Element;
2824
2851
 
2825
2852
  /**