@tellescope/react-components 1.222.0 → 1.223.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.
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { PDFBlockUIProps } from "./types";
2
3
  export declare const PDFBlockUI: ({ info }: PDFBlockUIProps) => JSX.Element | null;
3
4
  //# sourceMappingURL=components.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../../../src/CMS/components.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAM1C,eAAO,MAAM,UAAU,aAAc,eAAe,uBAoBnD,CAAA"}
1
+ {"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../../../src/CMS/components.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAM1C,eAAO,MAAM,UAAU,aAAc,eAAe,uBAoBnD,CAAA"}
@@ -72,7 +72,7 @@ export declare const QuestionForField: ({ form, value, field, file, responses, s
72
72
  createdAt: Date;
73
73
  })[] | undefined;
74
74
  AddToDatabase?: React.JSXElementConstructor<AddToDatabaseProps> | undefined;
75
- } & Pick<TellescopeFormProps, "enduserId" | "enduser" | "fields" | "rootResponseId" | "groupId" | "groupInstance" | "responses" | "submit" | "formResponseId" | "selectedFiles" | "goToPreviousField" | "goToNextField" | "isPreviousDisabled" | "handleDatabaseSelect" | "onAddFile" | "onFieldChange" | "customInputs" | "validateField">) => JSX.Element | null;
75
+ } & Pick<TellescopeFormProps, "submit" | "fields" | "enduser" | "enduserId" | "rootResponseId" | "groupId" | "groupInstance" | "responses" | "formResponseId" | "goToNextField" | "isPreviousDisabled" | "goToPreviousField" | "handleDatabaseSelect" | "onAddFile" | "onFieldChange" | "customInputs" | "selectedFiles" | "validateField">) => JSX.Element | null;
76
76
  export declare const TellescopeSingleQuestionFlow: typeof TellescopeForm;
77
77
  export declare const DEFAULT_THANKS_MESSAGE = "Your response was successfully recorded";
78
78
  export declare const ThanksMessage: ({ thanksMessage, htmlThanksMessage, showRestartAtEnd, downloadComponent, }: {
@@ -81,7 +81,7 @@ export declare const ThanksMessage: ({ thanksMessage, htmlThanksMessage, showRes
81
81
  showRestartAtEnd?: boolean | undefined;
82
82
  downloadComponent?: React.ReactNode;
83
83
  }) => JSX.Element;
84
- export declare const SaveDraft: ({ selectedFiles, enduserId, responses, existingResponses, fields, onSuccess, formResponseId, includedFieldIds, formId, style, disabled, getResponsesWithQuestionGroupAnswers, isInternalNote, formTitle, rootResponseId, parentResponseId, }: Styled & Pick<TellescopeFormProps, "enduserId" | "onSuccess" | "fields" | "responses" | "existingResponses" | "selectedFiles" | "getResponsesWithQuestionGroupAnswers"> & {
84
+ export declare const SaveDraft: ({ selectedFiles, enduserId, responses, existingResponses, fields, onSuccess, formResponseId, includedFieldIds, formId, style, disabled, getResponsesWithQuestionGroupAnswers, isInternalNote, formTitle, rootResponseId, parentResponseId, }: Styled & Pick<TellescopeFormProps, "fields" | "enduserId" | "responses" | "onSuccess" | "existingResponses" | "selectedFiles" | "getResponsesWithQuestionGroupAnswers"> & {
85
85
  disabled?: boolean | undefined;
86
86
  formResponseId?: string | undefined;
87
87
  formId: string;
@@ -91,7 +91,7 @@ export declare const SaveDraft: ({ selectedFiles, enduserId, responses, existing
91
91
  rootResponseId?: string | undefined;
92
92
  parentResponseId?: string | undefined;
93
93
  }) => JSX.Element;
94
- export declare const UpdateResponse: ({ selectedFiles, enduserId, responses, onSuccess, formResponseId, includedFieldIds, formId, style, disabled, getResponsesWithQuestionGroupAnswers, existingResponses, fields, }: Styled & Pick<TellescopeFormProps, "enduserId" | "onSuccess" | "fields" | "responses" | "existingResponses" | "selectedFiles" | "getResponsesWithQuestionGroupAnswers"> & {
94
+ export declare const UpdateResponse: ({ selectedFiles, enduserId, responses, onSuccess, formResponseId, includedFieldIds, formId, style, disabled, getResponsesWithQuestionGroupAnswers, existingResponses, fields, }: Styled & Pick<TellescopeFormProps, "fields" | "enduserId" | "responses" | "onSuccess" | "existingResponses" | "selectedFiles" | "getResponsesWithQuestionGroupAnswers"> & {
95
95
  disabled?: boolean | undefined;
96
96
  formResponseId?: string | undefined;
97
97
  formId: string;
@@ -20,7 +20,7 @@ export declare const RatingInput: ({ field, value, onChange }: FormInputProps<'r
20
20
  export declare const RankingInput: ({ field, value, onChange }: FormInputProps<'ranking'>) => JSX.Element;
21
21
  export declare const DateInput: ({ field, value, onChange, placement, ...props }: {
22
22
  field: FormField;
23
- placement?: "left" | "right" | "bottom" | "top" | undefined;
23
+ placement?: "bottom" | "left" | "right" | "top" | undefined;
24
24
  } & FormInputProps<"date"> & Styled) => JSX.Element;
25
25
  export declare const TableInput: ({ field, value, onChange, ...props }: FormInputProps<'Input Table'>) => JSX.Element;
26
26
  export declare const AutoFocusTextField: (props: TextFieldProps) => JSX.Element;
@@ -76,7 +76,7 @@ export declare const useModalIconButton: (props: UseModalIconButtonProps) => {
76
76
  id?: string | undefined;
77
77
  ariaLabel?: string | undefined;
78
78
  disabled?: boolean | undefined;
79
- color?: "primary" | "secondary" | "error" | "inherit" | "default" | "white" | undefined;
79
+ color?: "inherit" | "default" | "primary" | "secondary" | "error" | "white" | undefined;
80
80
  placement?: TooltipPlacement | undefined;
81
81
  onClick?: ((e: any) => void) | undefined;
82
82
  showArrow?: boolean | undefined;
@@ -97,7 +97,7 @@ export declare const IconModal: ({ open, setOpen, children, disabled, onClick, s
97
97
  id?: string | undefined;
98
98
  ariaLabel?: string | undefined;
99
99
  disabled?: boolean | undefined;
100
- color?: "primary" | "secondary" | "error" | "inherit" | "default" | "white" | undefined;
100
+ color?: "inherit" | "default" | "primary" | "secondary" | "error" | "white" | undefined;
101
101
  placement?: TooltipPlacement | undefined;
102
102
  onClick?: ((e: any) => void) | undefined;
103
103
  showArrow?: boolean | undefined;
@@ -104,7 +104,7 @@ export declare const SearchTextInput: ({ onChange, hideIcon, ...props }: {
104
104
  fullWidth?: boolean | undefined;
105
105
  name?: string | undefined;
106
106
  sx?: import("@mui/material").SxProps<{}> | undefined;
107
- variant?: "outlined" | "filled" | "flat" | undefined;
107
+ variant?: "filled" | "outlined" | "flat" | undefined;
108
108
  type?: React.HTMLInputTypeAttribute | undefined;
109
109
  autoCapitalize?: "none" | "characters" | "sentences" | "words" | undefined;
110
110
  autoCorrect?: boolean | undefined;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { FileUploaderProps, useDisplayPictureUploadForSelf, useFileUpload } from "./inputs.js";
2
3
  import { TextFieldProps } from "./mui";
3
4
  export { useDisplayPictureUploadForSelf, useFileUpload };
@@ -1 +1 @@
1
- {"version":3,"file":"inputs.native.d.ts","sourceRoot":"","sources":["../../src/inputs.native.tsx"],"names":[],"mappings":"AAEA,OAAO,EACL,iBAAiB,EACjB,8BAA8B,EAC9B,aAAa,EACd,MAAM,aAAa,CAAA;AACpB,OAAO,EAAa,cAAc,EAAE,MAAM,OAAO,CAAA;AAEjD,OAAO,EAAE,8BAA8B,EAAE,aAAa,EAAE,CAAA;AAExD,eAAO,MAAM,YAAY,aAExB,CAAA;AAED,eAAO,MAAM,YAAY,MAAO,iBAAiB,UAEhD,CAAA;AAED,eAAO,MAAM,eAAe,UAAY,cAAc,gBAErD,CAAA"}
1
+ {"version":3,"file":"inputs.native.d.ts","sourceRoot":"","sources":["../../src/inputs.native.tsx"],"names":[],"mappings":";AAEA,OAAO,EACL,iBAAiB,EACjB,8BAA8B,EAC9B,aAAa,EACd,MAAM,aAAa,CAAA;AACpB,OAAO,EAAa,cAAc,EAAE,MAAM,OAAO,CAAA;AAEjD,OAAO,EAAE,8BAA8B,EAAE,aAAa,EAAE,CAAA;AAExD,eAAO,MAAM,YAAY,aAExB,CAAA;AAED,eAAO,MAAM,YAAY,MAAO,iBAAiB,UAEhD,CAAA;AAED,eAAO,MAAM,eAAe,UAAY,cAAc,gBAErD,CAAA"}
@@ -53,7 +53,7 @@ export interface Flex_T {
53
53
  }
54
54
  interface Flex_Web extends Flex_T, Styled, ClickableWeb {
55
55
  }
56
- export declare const resolve_direction_for_props: (row?: boolean, col?: boolean) => "column" | "row";
56
+ export declare const resolve_direction_for_props: (row?: boolean, col?: boolean) => "row" | "column";
57
57
  export declare const compute_flex_direction_with_props: <T extends string>(direction: T, reverse?: boolean) => T | `${T}-reverse`;
58
58
  export interface WithHoverColors {
59
59
  hoveredColor?: CSSProperties['backgroundColor'];
@@ -1180,13 +1180,10 @@ export declare const useDataSync____internal: () => {
1180
1180
  setLoadTiming: (key: string, loadTimeInMS: number) => void;
1181
1181
  setHandler: (key: string, handler: undefined | (() => void)) => void;
1182
1182
  removeHandler: (key: string, handler: () => void) => void;
1183
- getLoaded: <T extends string>(modelName: T) => ((import("@tellescope/types-models").File & {
1183
+ getLoaded: <T extends string>(modelName: T) => ((import("@tellescope/types-models").CalendarEvent & {
1184
1184
  id: string;
1185
1185
  createdAt: Date;
1186
- }) | (import("@tellescope/types-models").Enduser & {
1187
- id: string;
1188
- createdAt: Date;
1189
- }) | (import("@tellescope/types-models").User & {
1186
+ }) | (import("@tellescope/types-models").ManagedContentRecord & {
1190
1187
  id: string;
1191
1188
  createdAt: Date;
1192
1189
  }) | (import("@tellescope/types-models").AIConversation & {
@@ -1225,9 +1222,6 @@ export declare const useDataSync____internal: () => {
1225
1222
  }) | (import("@tellescope/types-models").ChatMessage & {
1226
1223
  id: string;
1227
1224
  createdAt: Date;
1228
- }) | (import("@tellescope/types-models").CalendarEvent & {
1229
- id: string;
1230
- createdAt: Date;
1231
1225
  }) | (import("@tellescope/types-models").CalendarEventTemplate & {
1232
1226
  id: string;
1233
1227
  createdAt: Date;
@@ -1246,12 +1240,18 @@ export declare const useDataSync____internal: () => {
1246
1240
  }) | (import("@tellescope/types-models").UserNotification & {
1247
1241
  id: string;
1248
1242
  createdAt: Date;
1243
+ }) | (import("@tellescope/types-models").Enduser & {
1244
+ id: string;
1245
+ createdAt: Date;
1249
1246
  }) | (import("@tellescope/types-models").Ticket & {
1250
1247
  id: string;
1251
1248
  createdAt: Date;
1252
1249
  }) | (import("@tellescope/types-models").Meeting & {
1253
1250
  id: string;
1254
1251
  createdAt: Date;
1252
+ }) | (import("@tellescope/types-models").File & {
1253
+ id: string;
1254
+ createdAt: Date;
1255
1255
  }) | (import("@tellescope/types-models").Note & {
1256
1256
  id: string;
1257
1257
  createdAt: Date;
@@ -1270,6 +1270,9 @@ export declare const useDataSync____internal: () => {
1270
1270
  }) | (import("@tellescope/types-models").Journey & {
1271
1271
  id: string;
1272
1272
  createdAt: Date;
1273
+ }) | (import("@tellescope/types-models").User & {
1274
+ id: string;
1275
+ createdAt: Date;
1273
1276
  }) | (import("@tellescope/types-models").AutomationStep & {
1274
1277
  id: string;
1275
1278
  createdAt: Date;
@@ -1282,9 +1285,6 @@ export declare const useDataSync____internal: () => {
1282
1285
  }) | (import("@tellescope/types-models").Forum & {
1283
1286
  id: string;
1284
1287
  createdAt: Date;
1285
- }) | (import("@tellescope/types-models").ManagedContentRecord & {
1286
- id: string;
1287
- createdAt: Date;
1288
1288
  }) | (import("@tellescope/types-models").ManagedContentRecordAssignment & {
1289
1289
  id: string;
1290
1290
  createdAt: Date;
@@ -1446,13 +1446,10 @@ export declare const useDataSync____internal: () => {
1446
1446
  createdAt: Date;
1447
1447
  }))[];
1448
1448
  getDeleted: <T_1 extends string>(modelName: T_1) => string[];
1449
- popLoaded: <T_2 extends string>(modelName: T_2) => ((import("@tellescope/types-models").File & {
1449
+ popLoaded: <T_2 extends string>(modelName: T_2) => ((import("@tellescope/types-models").CalendarEvent & {
1450
1450
  id: string;
1451
1451
  createdAt: Date;
1452
- }) | (import("@tellescope/types-models").Enduser & {
1453
- id: string;
1454
- createdAt: Date;
1455
- }) | (import("@tellescope/types-models").User & {
1452
+ }) | (import("@tellescope/types-models").ManagedContentRecord & {
1456
1453
  id: string;
1457
1454
  createdAt: Date;
1458
1455
  }) | (import("@tellescope/types-models").AIConversation & {
@@ -1491,9 +1488,6 @@ export declare const useDataSync____internal: () => {
1491
1488
  }) | (import("@tellescope/types-models").ChatMessage & {
1492
1489
  id: string;
1493
1490
  createdAt: Date;
1494
- }) | (import("@tellescope/types-models").CalendarEvent & {
1495
- id: string;
1496
- createdAt: Date;
1497
1491
  }) | (import("@tellescope/types-models").CalendarEventTemplate & {
1498
1492
  id: string;
1499
1493
  createdAt: Date;
@@ -1512,12 +1506,18 @@ export declare const useDataSync____internal: () => {
1512
1506
  }) | (import("@tellescope/types-models").UserNotification & {
1513
1507
  id: string;
1514
1508
  createdAt: Date;
1509
+ }) | (import("@tellescope/types-models").Enduser & {
1510
+ id: string;
1511
+ createdAt: Date;
1515
1512
  }) | (import("@tellescope/types-models").Ticket & {
1516
1513
  id: string;
1517
1514
  createdAt: Date;
1518
1515
  }) | (import("@tellescope/types-models").Meeting & {
1519
1516
  id: string;
1520
1517
  createdAt: Date;
1518
+ }) | (import("@tellescope/types-models").File & {
1519
+ id: string;
1520
+ createdAt: Date;
1521
1521
  }) | (import("@tellescope/types-models").Note & {
1522
1522
  id: string;
1523
1523
  createdAt: Date;
@@ -1536,6 +1536,9 @@ export declare const useDataSync____internal: () => {
1536
1536
  }) | (import("@tellescope/types-models").Journey & {
1537
1537
  id: string;
1538
1538
  createdAt: Date;
1539
+ }) | (import("@tellescope/types-models").User & {
1540
+ id: string;
1541
+ createdAt: Date;
1539
1542
  }) | (import("@tellescope/types-models").AutomationStep & {
1540
1543
  id: string;
1541
1544
  createdAt: Date;
@@ -1548,9 +1551,6 @@ export declare const useDataSync____internal: () => {
1548
1551
  }) | (import("@tellescope/types-models").Forum & {
1549
1552
  id: string;
1550
1553
  createdAt: Date;
1551
- }) | (import("@tellescope/types-models").ManagedContentRecord & {
1552
- id: string;
1553
- createdAt: Date;
1554
1554
  }) | (import("@tellescope/types-models").ManagedContentRecordAssignment & {
1555
1555
  id: string;
1556
1556
  createdAt: Date;
@@ -1720,13 +1720,10 @@ export declare const useSyncContext: () => {
1720
1720
  setLoadTiming: (key: string, loadTimeInMS: number) => void;
1721
1721
  setHandler: (key: string, handler: undefined | (() => void)) => void;
1722
1722
  removeHandler: (key: string, handler: () => void) => void;
1723
- getLoaded: <T extends string>(modelName: T) => ((import("@tellescope/types-models").File & {
1723
+ getLoaded: <T extends string>(modelName: T) => ((import("@tellescope/types-models").CalendarEvent & {
1724
1724
  id: string;
1725
1725
  createdAt: Date;
1726
- }) | (import("@tellescope/types-models").Enduser & {
1727
- id: string;
1728
- createdAt: Date;
1729
- }) | (import("@tellescope/types-models").User & {
1726
+ }) | (import("@tellescope/types-models").ManagedContentRecord & {
1730
1727
  id: string;
1731
1728
  createdAt: Date;
1732
1729
  }) | (import("@tellescope/types-models").AIConversation & {
@@ -1765,9 +1762,6 @@ export declare const useSyncContext: () => {
1765
1762
  }) | (import("@tellescope/types-models").ChatMessage & {
1766
1763
  id: string;
1767
1764
  createdAt: Date;
1768
- }) | (import("@tellescope/types-models").CalendarEvent & {
1769
- id: string;
1770
- createdAt: Date;
1771
1765
  }) | (import("@tellescope/types-models").CalendarEventTemplate & {
1772
1766
  id: string;
1773
1767
  createdAt: Date;
@@ -1786,12 +1780,18 @@ export declare const useSyncContext: () => {
1786
1780
  }) | (import("@tellescope/types-models").UserNotification & {
1787
1781
  id: string;
1788
1782
  createdAt: Date;
1783
+ }) | (import("@tellescope/types-models").Enduser & {
1784
+ id: string;
1785
+ createdAt: Date;
1789
1786
  }) | (import("@tellescope/types-models").Ticket & {
1790
1787
  id: string;
1791
1788
  createdAt: Date;
1792
1789
  }) | (import("@tellescope/types-models").Meeting & {
1793
1790
  id: string;
1794
1791
  createdAt: Date;
1792
+ }) | (import("@tellescope/types-models").File & {
1793
+ id: string;
1794
+ createdAt: Date;
1795
1795
  }) | (import("@tellescope/types-models").Note & {
1796
1796
  id: string;
1797
1797
  createdAt: Date;
@@ -1810,6 +1810,9 @@ export declare const useSyncContext: () => {
1810
1810
  }) | (import("@tellescope/types-models").Journey & {
1811
1811
  id: string;
1812
1812
  createdAt: Date;
1813
+ }) | (import("@tellescope/types-models").User & {
1814
+ id: string;
1815
+ createdAt: Date;
1813
1816
  }) | (import("@tellescope/types-models").AutomationStep & {
1814
1817
  id: string;
1815
1818
  createdAt: Date;
@@ -1822,9 +1825,6 @@ export declare const useSyncContext: () => {
1822
1825
  }) | (import("@tellescope/types-models").Forum & {
1823
1826
  id: string;
1824
1827
  createdAt: Date;
1825
- }) | (import("@tellescope/types-models").ManagedContentRecord & {
1826
- id: string;
1827
- createdAt: Date;
1828
1828
  }) | (import("@tellescope/types-models").ManagedContentRecordAssignment & {
1829
1829
  id: string;
1830
1830
  createdAt: Date;
@@ -1986,13 +1986,10 @@ export declare const useSyncContext: () => {
1986
1986
  createdAt: Date;
1987
1987
  }))[];
1988
1988
  getDeleted: <T_1 extends string>(modelName: T_1) => string[];
1989
- popLoaded: <T_2 extends string>(modelName: T_2) => ((import("@tellescope/types-models").File & {
1989
+ popLoaded: <T_2 extends string>(modelName: T_2) => ((import("@tellescope/types-models").CalendarEvent & {
1990
1990
  id: string;
1991
1991
  createdAt: Date;
1992
- }) | (import("@tellescope/types-models").Enduser & {
1993
- id: string;
1994
- createdAt: Date;
1995
- }) | (import("@tellescope/types-models").User & {
1992
+ }) | (import("@tellescope/types-models").ManagedContentRecord & {
1996
1993
  id: string;
1997
1994
  createdAt: Date;
1998
1995
  }) | (import("@tellescope/types-models").AIConversation & {
@@ -2031,9 +2028,6 @@ export declare const useSyncContext: () => {
2031
2028
  }) | (import("@tellescope/types-models").ChatMessage & {
2032
2029
  id: string;
2033
2030
  createdAt: Date;
2034
- }) | (import("@tellescope/types-models").CalendarEvent & {
2035
- id: string;
2036
- createdAt: Date;
2037
2031
  }) | (import("@tellescope/types-models").CalendarEventTemplate & {
2038
2032
  id: string;
2039
2033
  createdAt: Date;
@@ -2052,12 +2046,18 @@ export declare const useSyncContext: () => {
2052
2046
  }) | (import("@tellescope/types-models").UserNotification & {
2053
2047
  id: string;
2054
2048
  createdAt: Date;
2049
+ }) | (import("@tellescope/types-models").Enduser & {
2050
+ id: string;
2051
+ createdAt: Date;
2055
2052
  }) | (import("@tellescope/types-models").Ticket & {
2056
2053
  id: string;
2057
2054
  createdAt: Date;
2058
2055
  }) | (import("@tellescope/types-models").Meeting & {
2059
2056
  id: string;
2060
2057
  createdAt: Date;
2058
+ }) | (import("@tellescope/types-models").File & {
2059
+ id: string;
2060
+ createdAt: Date;
2061
2061
  }) | (import("@tellescope/types-models").Note & {
2062
2062
  id: string;
2063
2063
  createdAt: Date;
@@ -2076,6 +2076,9 @@ export declare const useSyncContext: () => {
2076
2076
  }) | (import("@tellescope/types-models").Journey & {
2077
2077
  id: string;
2078
2078
  createdAt: Date;
2079
+ }) | (import("@tellescope/types-models").User & {
2080
+ id: string;
2081
+ createdAt: Date;
2079
2082
  }) | (import("@tellescope/types-models").AutomationStep & {
2080
2083
  id: string;
2081
2084
  createdAt: Date;
@@ -2088,9 +2091,6 @@ export declare const useSyncContext: () => {
2088
2091
  }) | (import("@tellescope/types-models").Forum & {
2089
2092
  id: string;
2090
2093
  createdAt: Date;
2091
- }) | (import("@tellescope/types-models").ManagedContentRecord & {
2092
- id: string;
2093
- createdAt: Date;
2094
2094
  }) | (import("@tellescope/types-models").ManagedContentRecordAssignment & {
2095
2095
  id: string;
2096
2096
  createdAt: Date;