@factorialco/f0-react 1.362.3 → 1.364.0

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/dist/ai.d.ts CHANGED
@@ -1164,9 +1164,9 @@ declare namespace Calendar {
1164
1164
 
1165
1165
  declare module "@tiptap/core" {
1166
1166
  interface Commands<ReturnType> {
1167
- enhanceHighlight: {
1168
- setEnhanceHighlight: (from: number, to: number) => ReturnType;
1169
- clearEnhanceHighlight: () => ReturnType;
1167
+ aiBlock: {
1168
+ insertAIBlock: (data: AIBlockData, config: AIBlockConfig) => ReturnType;
1169
+ executeAIAction: (actionType: string, config: AIBlockConfig) => ReturnType;
1170
1170
  };
1171
1171
  }
1172
1172
  }
@@ -1174,9 +1174,9 @@ declare module "@tiptap/core" {
1174
1174
 
1175
1175
  declare module "@tiptap/core" {
1176
1176
  interface Commands<ReturnType> {
1177
- aiBlock: {
1178
- insertAIBlock: (data: AIBlockData, config: AIBlockConfig) => ReturnType;
1179
- executeAIAction: (actionType: string, config: AIBlockConfig) => ReturnType;
1177
+ enhanceHighlight: {
1178
+ setEnhanceHighlight: (from: number, to: number) => ReturnType;
1179
+ clearEnhanceHighlight: () => ReturnType;
1180
1180
  };
1181
1181
  }
1182
1182
  }
@@ -2818,6 +2818,12 @@ declare type DropdownProps = Omit<DropdownInternalProps, (typeof privateProps_4)
2818
2818
  onOpenChange?: (open: boolean) => void;
2819
2819
  };
2820
2820
 
2821
+ declare type DropdownSingleQuestionProps = BaseQuestionPropsForOtherQuestionComponents & {
2822
+ type: "dropdown-single";
2823
+ options: SelectQuestionOption[];
2824
+ value?: string | null;
2825
+ };
2826
+
2821
2827
  export declare type editorStateType = {
2822
2828
  html: string;
2823
2829
  json: JSONContent | null;
@@ -4512,6 +4518,10 @@ declare type OnChangeQuestionParams = BaseQuestionOnChangeParams & ({
4512
4518
  type: "multi-select";
4513
4519
  value?: string[] | null;
4514
4520
  options: SelectQuestionOption[];
4521
+ } | {
4522
+ type: "dropdown-single";
4523
+ value?: string | null;
4524
+ options?: SelectQuestionOption[];
4515
4525
  } | {
4516
4526
  type: "numeric";
4517
4527
  value?: number | null;
@@ -5238,6 +5248,8 @@ export declare type QuestionElement = Omit<TextQuestionProps, QuestionPropsToOmi
5238
5248
  type: "rating";
5239
5249
  }, QuestionPropsToOmit> | Omit<SelectQuestionProps & {
5240
5250
  type: "select" | "multi-select";
5251
+ }, QuestionPropsToOmit> | Omit<DropdownSingleQuestionProps & {
5252
+ type: "dropdown-single";
5241
5253
  }, QuestionPropsToOmit> | Omit<NumericQuestionProps & {
5242
5254
  type: "numeric";
5243
5255
  }, QuestionPropsToOmit> | Omit<LinkQuestionProps & {
@@ -5248,7 +5260,7 @@ export declare type QuestionElement = Omit<TextQuestionProps, QuestionPropsToOmi
5248
5260
 
5249
5261
  declare type QuestionPropsToOmit = "onAction" | "onChange" | "onAddNewElement";
5250
5262
 
5251
- export declare type QuestionType = "rating" | "select" | "multi-select" | "text" | "longText" | "numeric" | "link" | "date";
5263
+ export declare type QuestionType = "rating" | "select" | "multi-select" | "dropdown-single" | "text" | "longText" | "numeric" | "link" | "date";
5252
5264
 
5253
5265
  /**
5254
5266
  * @experimental This is an experimental component use it at your own risk
@@ -6634,9 +6646,9 @@ declare namespace Calendar {
6634
6646
 
6635
6647
  declare module "@tiptap/core" {
6636
6648
  interface Commands<ReturnType> {
6637
- enhanceHighlight: {
6638
- setEnhanceHighlight: (from: number, to: number) => ReturnType;
6639
- clearEnhanceHighlight: () => ReturnType;
6649
+ aiBlock: {
6650
+ insertAIBlock: (data: AIBlockData, config: AIBlockConfig) => ReturnType;
6651
+ executeAIAction: (actionType: string, config: AIBlockConfig) => ReturnType;
6640
6652
  };
6641
6653
  }
6642
6654
  }
@@ -6644,9 +6656,9 @@ declare module "@tiptap/core" {
6644
6656
 
6645
6657
  declare module "@tiptap/core" {
6646
6658
  interface Commands<ReturnType> {
6647
- aiBlock: {
6648
- insertAIBlock: (data: AIBlockData, config: AIBlockConfig) => ReturnType;
6649
- executeAIAction: (actionType: string, config: AIBlockConfig) => ReturnType;
6659
+ enhanceHighlight: {
6660
+ setEnhanceHighlight: (from: number, to: number) => ReturnType;
6661
+ clearEnhanceHighlight: () => ReturnType;
6650
6662
  };
6651
6663
  }
6652
6664
  }