@uniformdev/mesh-sdk-react 20.75.1-alpha.16 → 20.76.2

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/index.d.ts CHANGED
@@ -59,16 +59,27 @@ declare function DataResourceDynamicInputProvider(props: DataResourceDynamicInpu
59
59
 
60
60
  /**
61
61
  * Provides convenient access to the current Uniform Mesh location via React hook.
62
- * Intended to be used within <MeshApp />.
62
+ * Intended to be used within `MeshApp`.
63
63
  *
64
64
  * There are three primary ways to invoke this hook:
65
65
  * 1. Without any arguments, this hook will return the current location regardless of its type. The result will be a union of all possible locations you can discriminate between i.e. with an if statement on the `type`
66
- * const location = useMeshLocation();
67
- * if (location.type === 'paramType') { // location is now known to be a paramType }
66
+ * @example
67
+ * ```tsx
68
+ * const location = useMeshLocation();
69
+ * if (location.type === 'paramType') {
70
+ * // location is now known to be a paramType
71
+ * }
72
+ * ```
68
73
  * 2. With a string argument, this hook will assert that the current location is the expected one and return the correct typings for that location.
69
- * const location = useMeshLocation('settings');
74
+ * @example
75
+ * ```tsx
76
+ * const location = useMeshLocation('settings');
77
+ * ```
70
78
  * 3. With an explicit generic to set the expected param type data or param type settings data. This is useful because (2) will return unknown as the value type for param types.
71
- * const location = useMeshLocation<'paramType', MyParamTypeValueType>();
79
+ * @example
80
+ * ```tsx
81
+ * const location = useMeshLocation<'paramType', MyParamTypeValueType>();
82
+ * ```
72
83
  *
73
84
  * You can also combine (2) and (3) to get both explicit value typing and assertion of the location.
74
85
  */
@@ -514,7 +525,7 @@ type InputVariablesProps<TEditorContext = unknown> = {
514
525
  * disable it with this prop.
515
526
  */
516
527
  disableDismissEditorOnChange?: boolean;
517
- /** Enables mutliple lines in the input (\n in the value) */
528
+ /** Enables mutliple lines in the input (newline characters in the value) */
518
529
  multiLine?: boolean;
519
530
  /** Disables the inline variable selection menu when rendering a variables input */
520
531
  disableInlineMenu?: boolean | 'by-label' | 'by-input';
@@ -629,7 +640,7 @@ type ParameterVariablesProps<TEditorContext = unknown> = {
629
640
  /** Sets the test ID of the input */
630
641
  'data-testid'?: string;
631
642
  /**
632
- * Enables mutliple lines in the input (\n in the value).
643
+ * Enables mutliple lines in the input (newline characters in the value).
633
644
  * If a number is passed, the height of the editor is set to that number of lines and overflow scrolls.
634
645
  * If a boolean true is passed, the editor auto-sizes to the content.
635
646
  */
@@ -813,12 +824,12 @@ declare function variableDefaultTextValue(defaultValue: unknown): string;
813
824
 
814
825
  /**
815
826
  * Expected prefix for variable expressions
816
- * @deprecated
827
+ * @deprecated Use the variables binding API instead of string delimiters.
817
828
  */
818
829
  declare const variablePrefix = "${";
819
830
  /**
820
831
  * Expected suffix for variable expressions
821
- * @deprecated
832
+ * @deprecated Use the variables binding API instead of string delimiters.
822
833
  */
823
834
  declare const variableSuffix = "}";
824
835
 
@@ -1029,8 +1040,11 @@ type DataRefreshButtonProps = HTMLAttributes<HTMLButtonElement> & {
1029
1040
  onRefreshData: () => void;
1030
1041
  };
1031
1042
  /**
1032
- * @description The data refresh button is a UI component to indicate to users a request for data is taking place
1033
- * @example <DataRefreshButton buttonText="my button" isLoading />
1043
+ * The data refresh button is a UI component to indicate to users a request for data is taking place
1044
+ * @example
1045
+ * ```tsx
1046
+ * <DataRefreshButton buttonText="my button" isLoading />
1047
+ * ```
1034
1048
  * @deprecated this component is not recommended for use in new projects
1035
1049
  */
1036
1050
  declare const DataRefreshButton: ({ buttonText, isLoading, onRefreshData, ...props }: DataRefreshButtonProps) => _emotion_react_jsx_runtime.JSX.Element;
@@ -1058,8 +1072,11 @@ type ObjectSearchContainerProps = {
1058
1072
  children?: ReactNode;
1059
1073
  };
1060
1074
  /**
1061
- * @description Object search container is an opinionated layout for search parameters and retrieved results
1062
- * @example <ObjectSearchContainer searchFilters={<>your component</>} resultList={<>your result list component<>} onSave={yourSaveAction} onCancel={yourCancelAction} />
1075
+ * Object search container is an opinionated layout for search parameters and retrieved results
1076
+ * @example
1077
+ * ```tsx
1078
+ * <ObjectSearchContainer searchFilters={<>your component</>} resultList={<>your result list component<>} onSave={yourSaveAction} onCancel={yourCancelAction} />
1079
+ * ```
1063
1080
  * @deprecated this component is not recommended for use in new projects
1064
1081
  */
1065
1082
  declare const ObjectSearchContainer: ({ label, enableDynamicInputToResultId, searchFilters, resultList, children, }: ObjectSearchContainerProps) => _emotion_react_jsx_runtime.JSX.Element;
@@ -1068,11 +1085,11 @@ type ObjectSearchFilterProps = {
1068
1085
  /** shows or hides the required content type select option */
1069
1086
  requireContentType?: boolean;
1070
1087
  /** sets the text for the required content type select option
1071
- * @default 'All content types'
1088
+ * @defaultValue 'All content types'
1072
1089
  */
1073
1090
  typeSelectorAllTypesOptionText?: string;
1074
1091
  /** sets the select input value label text
1075
- * @default 'Content Type Select'
1092
+ * @defaultValue 'Content Type Select'
1076
1093
  */
1077
1094
  selectLabel?: string;
1078
1095
  /** sets the select input options, if empty - only keyword search field will be rendered */
@@ -1081,18 +1098,21 @@ type ObjectSearchFilterProps = {
1081
1098
  value?: string;
1082
1099
  }>;
1083
1100
  /** sets the search input name value
1084
- * @default 'searchText'
1101
+ * @defaultValue 'searchText'
1085
1102
  */
1086
1103
  searchInputName?: string;
1087
1104
  /** sets the search input placeholder text
1088
- * @default 'Enter keyword to narrow your results'
1105
+ * @defaultValue 'Enter keyword to narrow your results'
1089
1106
  */
1090
1107
  searchInputPlaceholderText?: string;
1091
1108
  };
1092
1109
  /**
1093
- * @description Object search filter is an opinionated filter that has pre-defined query and setQuery functions
1110
+ * Object search filter is an opinionated filter that has pre-defined query and setQuery functions
1094
1111
  * that can be extended with custom functions
1095
- * @example <ObjectSearchFilter selectOptions={[{ id: 'id value', name: 'name value'}]} />
1112
+ * @example
1113
+ * ```tsx
1114
+ * <ObjectSearchFilter selectOptions={[{ id: 'id value', name: 'name value'}]} />
1115
+ * ```
1096
1116
  * @deprecated this component is not recommended for use in new projects
1097
1117
  */
1098
1118
  declare const ObjectSearchFilter: ({ requireContentType, typeSelectorAllTypesOptionText, searchInputName, searchInputPlaceholderText, selectLabel, selectOptions, }: ObjectSearchFilterProps) => _emotion_react_jsx_runtime.JSX.Element;
@@ -1102,8 +1122,11 @@ type ObjectSearchFilterContainerProps = {
1102
1122
  children?: React.ReactNode;
1103
1123
  };
1104
1124
  /**
1105
- * @description an opinionated layout for search filters
1106
- * @example <ObjectSearchFilterContainer label="my label"><input type="text" aria-label="my input" /></ObjectSearchFilterContainer>
1125
+ * an opinionated layout for search filters
1126
+ * @example
1127
+ * ```tsx
1128
+ * <ObjectSearchFilterContainer label="my label"><input type="text" aria-label="my input" /></ObjectSearchFilterContainer>
1129
+ * ```
1107
1130
  * @deprecated this component is not recommended for use in new projects
1108
1131
  */
1109
1132
  declare const ObjectSearchFilterContainer: ({ children }: ObjectSearchFilterContainerProps) => _emotion_react_jsx_runtime.JSX.Element;
@@ -1113,20 +1136,23 @@ type ObjectSearchResultItemProps = SelectedItemProps & {
1113
1136
  /** sets additional remove functionality onto of default removal */
1114
1137
  onRemove?: () => void;
1115
1138
  /** sets whether to show or hide the remove button
1116
- * @default false
1139
+ * @defaultValue false
1117
1140
  */
1118
1141
  hideRemoveButton?: boolean;
1119
1142
  /** sets user defined child nodes that are uncontrolled by Uniform */
1120
1143
  children?: ReactNode;
1121
1144
  /** disable or enable drag and drop functionality
1122
- * @default false
1145
+ * @defaultValue false
1123
1146
  */
1124
1147
  disableDnD?: boolean;
1125
1148
  onClick?: () => void;
1126
1149
  };
1127
1150
  /**
1128
- * @description An opinionated result item, best used for selected results
1129
- * @example <ObjectSearchResultItem id="my-result" title="title" />
1151
+ * An opinionated result item, best used for selected results
1152
+ * @example
1153
+ * ```tsx
1154
+ * <ObjectSearchResultItem id="my-result" title="title" />
1155
+ * ```
1130
1156
  * @deprecated this component is not recommended for use in new projects
1131
1157
  */
1132
1158
  declare const ObjectSearchResultItem: ({ id, title, contentType, popoverData, publishStatus, editLinkIcon, editLink, imageUrl, onRemove, createdAt, publishedAt, hideRemoveButton, disableDnD, children, onClick, }: ObjectSearchResultItemProps) => _emotion_react_jsx_runtime.JSX.Element;
@@ -1163,7 +1189,7 @@ type SelectedItemProps<TExtraProps = unknown> = {
1163
1189
  /** sets the text value of the publish badge */
1164
1190
  text: string;
1165
1191
  /** sets the theme value of the publish badge
1166
- * @default 'unimportant'
1192
+ * @defaultValue 'unimportant'
1167
1193
  */
1168
1194
  theme?: BadgeThemeProps;
1169
1195
  };
@@ -1227,21 +1253,27 @@ type ObjectSearchListItemProps = SelectedItemProps & {
1227
1253
  /** allows authors to add any child component that is not controlled by Uniform */
1228
1254
  children?: React$1.ReactNode;
1229
1255
  /** sets whether multiple entries can be added to the results list context
1230
- * @default inherit from context or false
1256
+ * @defaultValue inherit from context or false
1231
1257
  */
1232
1258
  isMulti?: boolean;
1233
1259
  /** sets disabled state to the interactive element */
1234
1260
  disabled?: boolean;
1235
1261
  } & React$1.HTMLAttributes<HTMLDivElement>;
1236
1262
  /**
1237
- * @description entry search list item is an opinionated UI component best used for initial retrieved results
1238
- * @example <ObjectSearchListItem id="my-result-item" title="title" popoverData={<p>some data info</p>}><div>example of uncontrolled content</div></ObjectSearchListItem>
1263
+ * entry search list item is an opinionated UI component best used for initial retrieved results
1264
+ * @example
1265
+ * ```tsx
1266
+ * <ObjectSearchListItem id="my-result-item" title="title" popoverData={<p>some data info</p>}><div>example of uncontrolled content</div></ObjectSearchListItem>
1267
+ * ```
1239
1268
  * @deprecated this component is not recommended for use in new projects
1240
1269
  */
1241
1270
  declare const ObjectSearchListItem: ({ id, title, contentType, imageUrl, popoverData, onSelect, isMulti, disabled, children, ...props }: ObjectSearchListItemProps & React$1.HTMLAttributes<HTMLDivElement>) => _emotion_react_jsx_runtime.JSX.Element;
1242
1271
  /**
1243
1272
  * An opinionated loading skeleton component best used with ObjectSearchListItem
1244
- * @example <ObjectSearchListItemLoadingSkeleton />
1273
+ * @example
1274
+ * ```tsx
1275
+ * <ObjectSearchListItemLoadingSkeleton />
1276
+ * ```
1245
1277
  */
1246
1278
  declare const ObjectSearchListItemLoadingSkeleton: () => _emotion_react_jsx_runtime.JSX.Element;
1247
1279
 
@@ -1254,22 +1286,28 @@ type ObjectSearchResultItemButtonProps<THtml extends HTMLAttributes<HTMLElement>
1254
1286
  }>;
1255
1287
  } & THtml;
1256
1288
  /**
1257
- * @description An opinionated button component best used within the ObjectSearchResultItem component
1258
- * @example <ObjectSearchResultItemButton text="button text" icon="/my-image.png" onClick={() => myFunction()} />
1289
+ * An opinionated button component best used within the ObjectSearchResultItem component
1290
+ * @example
1291
+ * ```tsx
1292
+ * <ObjectSearchResultItemButton text="button text" icon="/my-image.png" onClick={() => myFunction()} />
1293
+ * ```
1259
1294
  * @deprecated this component is not recommended for use in new projects
1260
1295
  */
1261
1296
  declare const ObjectSearchResultItemButton: ({ text, icon, ...props }: ObjectSearchResultItemButtonProps<HTMLAttributes<HTMLButtonElement>>) => _emotion_react_jsx_runtime.JSX.Element;
1262
1297
  /**
1263
- * @description An opinionated link component styled the same of the ObjectSearchResultItemButton component,
1298
+ * An opinionated link component styled the same of the ObjectSearchResultItemButton component,
1264
1299
  * that automatically sets the target and rel attributes. Best used within the ObjectSearchResultItem component
1265
- * @example <LinkButton text="link text" icon="/my-image.png" />
1300
+ * @example
1301
+ * ```tsx
1302
+ * <LinkButton text="link text" icon="/my-image.png" />
1303
+ * ```
1266
1304
  * @deprecated this component is not recommended for use in new projects
1267
1305
  */
1268
1306
  declare const LinkButton: ({ text, icon, ...props }: ObjectSearchResultItemButtonProps<Omit<AnchorHTMLAttributes<HTMLAnchorElement>, "target" | "rel">>) => _emotion_react_jsx_runtime.JSX.Element;
1269
1307
 
1270
1308
  type ObjectSearchResultListProps<TRenderComponent extends SelectedItemProps = SelectedItemProps> = {
1271
1309
  /** sets the result label value
1272
- * @default 'Selected'
1310
+ * @defaultValue 'Selected'
1273
1311
  */
1274
1312
  resultLabelText?: string;
1275
1313
  /** sets and override react node replacing the whole HTML block for the result label and counter */
@@ -1277,11 +1315,11 @@ type ObjectSearchResultListProps<TRenderComponent extends SelectedItemProps = Se
1277
1315
  /** sets the on remove button click action */
1278
1316
  onRemoveAllSelected?: () => void;
1279
1317
  /** sets the remove button text
1280
- * @default 'Remove all'
1318
+ * @defaultValue 'Remove all'
1281
1319
  */
1282
1320
  removeButtonText?: string;
1283
1321
  /** sets whether to show or hide the remove button
1284
- * @default false
1322
+ * @defaultValue false
1285
1323
  */
1286
1324
  hideRemoveButton?: boolean;
1287
1325
  /** allows additional buttons to be added to the result title group */
@@ -1289,7 +1327,7 @@ type ObjectSearchResultListProps<TRenderComponent extends SelectedItemProps = Se
1289
1327
  /** allows placing child components within the result list area */
1290
1328
  renderResultComponent?: (value: TRenderComponent) => React__default.ReactNode;
1291
1329
  /** disable or enable drag and drop functionality
1292
- * @default false
1330
+ * @defaultValue false
1293
1331
  */
1294
1332
  disableDnD?: boolean;
1295
1333
  /** sets the draggable id value */
@@ -1304,10 +1342,13 @@ type ObjectSearchResultListProps<TRenderComponent extends SelectedItemProps = Se
1304
1342
  getContainerForDnDReparenting?: () => HTMLElement;
1305
1343
  };
1306
1344
  /**
1307
- * @description An opinionated result list UI component that has built in drag and drop functionality and removal of all selected items from context.
1308
- * The result item component defaults to <ObjectSearchResultItem {...props} />, however this can be overridden with any other UI component and still
1345
+ * An opinionated result list UI component that has built in drag and drop functionality and removal of all selected items from context.
1346
+ * The result item component defaults to `ObjectSearchResultItem`, however this can be overridden with any other UI component and still
1309
1347
  * maintain drag and drop functionality
1310
- * @example <ObjectSearchResultList id="my-id" title="title" renderResultComponent={(values) => <CustomComponent {...values} />} />
1348
+ * @example
1349
+ * ```tsx
1350
+ * <ObjectSearchResultList id="my-id" title="title" renderResultComponent={(values) => <CustomComponent {...values} />} />
1351
+ * ```
1311
1352
  * @deprecated this component is not recommended for use in new projects
1312
1353
  */
1313
1354
  declare function ObjectSearchResultList<TRenderComponent extends SelectedItemProps = SelectedItemProps>({ resultLabelText, removeButtonText, onRemoveAllSelected, hideRemoveButton, resultLabelOverride, additionalButtons, renderResultComponent, multiSelectId, disableDnD, getContainerForDnDReparenting, whenNothingSelected, }: ObjectSearchResultListProps<TRenderComponent>): _emotion_react_jsx_runtime.JSX.Element;
@@ -1321,23 +1362,22 @@ type QueryFilterSearchProps = {
1321
1362
  sortOrder: string;
1322
1363
  };
1323
1364
  type QueryFilterSelectionOptionProps = Array<{
1324
- /** contains id or machine values. will be used as value attribute in <option> */
1365
+ /** contains id or machine values; used as the value attribute on HTML option elements */
1325
1366
  value?: string;
1326
- /** Contains human-readable display name for select options.
1327
- * Used as value in case value is not present <option> */
1367
+ /** Contains human-readable display name for select options. Used as the option label when value is not present. */
1328
1368
  label: string;
1329
1369
  }>;
1330
1370
  type QueryFilterProps<TSelectOptions extends QueryFilterSelectionOptionProps = QueryFilterSelectionOptionProps> = {
1331
1371
  /** sets the query filter title
1332
- * @default 'Configure Query'
1372
+ * @defaultValue 'Configure Query'
1333
1373
  */
1334
1374
  queryFilterTitle?: string;
1335
1375
  /** sets the content type all selected options label
1336
- * @default 'All content types'
1376
+ * @defaultValue 'All content types'
1337
1377
  */
1338
1378
  typeSelectorAllTypesOptionText?: string;
1339
1379
  /** sets the content type label value
1340
- * @default 'Filter by content type'
1380
+ * @defaultValue 'Filter by content type'
1341
1381
  */
1342
1382
  contentTypeLabel?: string;
1343
1383
  /** sets the content type select options */
@@ -1345,39 +1385,42 @@ type QueryFilterProps<TSelectOptions extends QueryFilterSelectionOptionProps = Q
1345
1385
  /** sets whether the content type filter is required */
1346
1386
  requireContentType?: boolean;
1347
1387
  /** sets the count label value
1348
- * @default 'Count'
1388
+ * @defaultValue 'Count'
1349
1389
  */
1350
1390
  countLabel?: string;
1351
1391
  /** sets the sort label text
1352
- * @default 'Sort'
1392
+ * @defaultValue 'Sort'
1353
1393
  */
1354
1394
  sortLabel?: string;
1355
1395
  /** sets the sort select options value */
1356
1396
  sortOptions: TSelectOptions;
1357
1397
  /** sets the sort order lable value
1358
- * @default 'Sort Order'
1398
+ * @defaultValue 'Sort Order'
1359
1399
  */
1360
1400
  sortOrderLabel?: string;
1361
1401
  /** sets the sort order select options value */
1362
1402
  sortOrderOptions: TSelectOptions;
1363
1403
  /** sets the search input name value
1364
- * @default 'searchText'
1404
+ * @defaultValue 'searchText'
1365
1405
  */
1366
1406
  searchInputName?: string;
1367
1407
  /** sets the search input placeholder text
1368
- * @default 'Enter keyword to narrow your results'
1408
+ * @defaultValue 'Enter keyword to narrow your results'
1369
1409
  */
1370
1410
  searchInputPlaceholderText?: string;
1371
1411
  /** sets the label for the search input
1372
- * @default 'Query'
1412
+ * @defaultValue 'Query'
1373
1413
  */
1374
1414
  searchInputLabel?: string;
1375
1415
  /** allows for additional child components, for example more input components */
1376
1416
  children?: ReactNode;
1377
1417
  };
1378
1418
  /**
1379
- * @description An opinionated multi query filter UI component, best used for querying product data or more complex scenarios
1380
- * @example <QueryFilter contentTypeOptions={[{ id: 'id', name: 'name' }]} sortOptions={[{ id: 'id', name: 'name' }]} sortOrderOptions={[{ id: 'id', name: 'name' }]} />
1419
+ * An opinionated multi query filter UI component, best used for querying product data or more complex scenarios
1420
+ * @example
1421
+ * ```tsx
1422
+ * <QueryFilter contentTypeOptions={[{ id: 'id', name: 'name' }]} sortOptions={[{ id: 'id', name: 'name' }]} sortOrderOptions={[{ id: 'id', name: 'name' }]} />
1423
+ * ```
1381
1424
  * @deprecated this component is not recommended for use in new projects
1382
1425
  */
1383
1426
  declare const QueryFilter: ({ requireContentType, queryFilterTitle, contentTypeLabel, typeSelectorAllTypesOptionText, contentTypeOptions, searchInputName, searchInputPlaceholderText, searchInputLabel, countLabel, sortLabel, sortOptions, sortOrderLabel, sortOrderOptions, children, }: QueryFilterProps) => _emotion_react_jsx_runtime.JSX.Element;
@@ -1481,17 +1524,21 @@ declare function useRequest(): RequestContext;
1481
1524
 
1482
1525
  type RequestTypeContainerProps = React$1.HTMLAttributes<HTMLDivElement> & {
1483
1526
  /**sets the background color of the container
1484
- * @default 'transparent'
1527
+ * @defaultValue 'transparent'
1485
1528
  */
1486
1529
  bgColor?: 'transparent' | 'var(--gray-100)';
1487
1530
  children: React$1.ReactNode;
1488
1531
  };
1489
1532
  /**
1490
- * @description a container to layout content in a 2 column grid format = 12ch 1fr
1491
- * @example <RequestTypeContainer bgColor="var(--gray-100)">
1492
- * <label>Name <input type="text" /></label>
1493
- * <label>Name <input type="text" /></label>
1494
- * </div> */
1533
+ * a container to layout content in a 2 column grid format = 12ch 1fr
1534
+ * @example
1535
+ * ```tsx
1536
+ * <RequestTypeContainer bgColor="var(--gray-100)">
1537
+ * <label>Name <input type="text" /></label>
1538
+ * <label>Name <input type="text" /></label>
1539
+ * </RequestTypeContainer>
1540
+ * ```
1541
+ */
1495
1542
  declare const RequestTypeContainer: ({ bgColor, children, ...props }: RequestTypeContainerProps) => _emotion_react_jsx_runtime.JSX.Element;
1496
1543
 
1497
1544
  /**
@@ -1708,37 +1755,55 @@ declare const MULTI_SELECT_OPERATORS: OperatorType;
1708
1755
 
1709
1756
  /**
1710
1757
  * Renders a date input field for filtering
1711
- * @example <DateEditor ariaLabel="Date" value={value} onChange={onChange} />
1758
+ * @example
1759
+ * ```tsx
1760
+ * <DateEditor ariaLabel="Date" value={value} onChange={onChange} />
1761
+ * ```
1712
1762
  */
1713
1763
  declare const DateEditor: ({ onChange, ariaLabel, disabled, value, readOnly, valueTestId, }: FilterEditorRendererProps<string>) => _emotion_react_jsx_runtime.JSX.Element;
1714
1764
 
1715
1765
  /**
1716
1766
  * Renders a date range input field for filtering
1717
- * @example <DateRangeEditor ariaLabel="Date Range" value={value} onChange={onChange} />
1767
+ * @example
1768
+ * ```tsx
1769
+ * <DateRangeEditor ariaLabel="Date Range" value={value} onChange={onChange} />
1770
+ * ```
1718
1771
  */
1719
1772
  declare const DateRangeEditor: ({ ariaLabel, onChange, disabled, value, readOnly, valueTestId, }: FilterEditorRendererProps<string[]>) => _emotion_react_jsx_runtime.JSX.Element;
1720
1773
 
1721
1774
  /**
1722
1775
  * Multi select filter component
1723
- * @example <FilterMultiChoiceEditor options={options} value={options.filter((option) => values.includes(option.value)} onChange={(e) => onChange(e.map((option) => option.value))} />
1776
+ * @example
1777
+ * ```tsx
1778
+ * <FilterMultiChoiceEditor options={options} value={options.filter((option) => values.includes(option.value)} onChange={(e) => onChange(e.map((option) => option.value))} />
1779
+ * ```
1724
1780
  */
1725
1781
  declare const FilterMultiChoiceEditor: ({ value, options, disabled, readOnly, valueTestId, ...props }: FilterEditorRendererProps<string[]>) => _emotion_react_jsx_runtime.JSX.Element;
1726
1782
 
1727
1783
  /**
1728
1784
  * Single select filter component
1729
- * @example <FilterSingleChoiceEditor options={options} value={options.find((option) => values.includes(option.value)} onChange={(e) => onChange(e.value)} />
1785
+ * @example
1786
+ * ```tsx
1787
+ * <FilterSingleChoiceEditor options={options} value={options.find((option) => values.includes(option.value)} onChange={(e) => onChange(e.value)} />
1788
+ * ```
1730
1789
  */
1731
1790
  declare const FilterSingleChoiceEditor: ({ options, value, disabled, readOnly, onChange, valueTestId, }: FilterEditorRendererProps<string>) => _emotion_react_jsx_runtime.JSX.Element;
1732
1791
 
1733
1792
  /**
1734
1793
  * Renders a number input field for filtering
1735
- * @example <NumberEditor ariaLabel="Number" value={value} onChange={onChange} />
1794
+ * @example
1795
+ * ```tsx
1796
+ * <NumberEditor ariaLabel="Number" value={value} onChange={onChange} />
1797
+ * ```
1736
1798
  */
1737
1799
  declare const NumberEditor: ({ ariaLabel, onChange, disabled, value, readOnly, valueTestId, }: FilterEditorRendererProps<string>) => _emotion_react_jsx_runtime.JSX.Element;
1738
1800
 
1739
1801
  /**
1740
1802
  * Renders a number range input field for filtering
1741
- * @example <NumberRangeEditor ariaLabel="Number Range" value={value} onChange={onChange} />
1803
+ * @example
1804
+ * ```tsx
1805
+ * <NumberRangeEditor ariaLabel="Number Range" value={value} onChange={onChange} />
1806
+ * ```
1742
1807
  */
1743
1808
  declare const NumberRangeEditor: ({ onChange, disabled, ariaLabel, value, readOnly, valueTestId, }: FilterEditorRendererProps<string[]>) => _emotion_react_jsx_runtime.JSX.Element;
1744
1809
 
@@ -1750,19 +1815,28 @@ declare const readOnlyAttributes: {
1750
1815
 
1751
1816
  /**
1752
1817
  * Status multi select filter component that renders a custom dropdown menu
1753
- * @example <StatusMultiEditor options={options} value={value} onChange={onChange} />
1818
+ * @example
1819
+ * ```tsx
1820
+ * <StatusMultiEditor options={options} value={value} onChange={onChange} />
1821
+ * ```
1754
1822
  */
1755
1823
  declare const StatusMultiEditor: ({ options, value, disabled, readOnly, onChange, valueTestId, }: FilterEditorRendererProps<string[]>) => _emotion_react_jsx_runtime.JSX.Element;
1756
1824
 
1757
1825
  /**
1758
1826
  * Status single select filter component that renders a custom dropdown menu
1759
- * @example <StatusSingleEditor options={options} value={value} onChange={onChange} />
1827
+ * @example
1828
+ * ```tsx
1829
+ * <StatusSingleEditor options={options} value={value} onChange={onChange} />
1830
+ * ```
1760
1831
  */
1761
1832
  declare const StatusSingleEditor: ({ options, value, disabled, readOnly, onChange, valueTestId, }: FilterEditorRendererProps<string>) => _emotion_react_jsx_runtime.JSX.Element;
1762
1833
 
1763
1834
  /**
1764
1835
  * Renders a text input field for filtering
1765
- * @example <TextEditor ariaLabel="Search" value={value} onChange={onChange} />
1836
+ * @example
1837
+ * ```tsx
1838
+ * <TextEditor ariaLabel="Search" value={value} onChange={onChange} />
1839
+ * ```
1766
1840
  */
1767
1841
  declare const TextEditor: ({ onChange, ariaLabel, value, readOnly, valueTestId, }: FilterEditorRendererProps<string>) => _emotion_react_jsx_runtime.JSX.Element;
1768
1842
 
@@ -1773,11 +1847,11 @@ declare const TextMultiChoiceEditor: ({ value, disabled, readOnly, valueTestId,
1773
1847
 
1774
1848
  type FilterButtonProps = {
1775
1849
  /** text to display on the button
1776
- * @default "Filters"
1850
+ * @defaultValue "Filters"
1777
1851
  */
1778
1852
  text?: string;
1779
1853
  /** icon to display on the button
1780
- * @default "filter-add"
1854
+ * @defaultValue "filter-add"
1781
1855
  */
1782
1856
  icon?: IconType;
1783
1857
  /** number of filters to display on the button and sets the styles on the button */
@@ -1791,13 +1865,19 @@ type FilterButtonProps = {
1791
1865
  } & ButtonHTMLAttributes<HTMLButtonElement>;
1792
1866
  /**
1793
1867
  * A filter button component used to display filter menu options
1794
- * @example <FilterButton text="Filters" filterCount={3} />
1868
+ * @example
1869
+ * ```tsx
1870
+ * <FilterButton text="Filters" filterCount={3} />
1871
+ * ```
1795
1872
  */
1796
1873
  declare const FilterButton: ({ text, icon, filterCount, hasSelectedValue, dataTestId, showDropdownIcon, ...props }: FilterButtonProps) => _emotion_react_jsx_runtime.JSX.Element;
1797
1874
 
1798
1875
  /**
1799
1876
  * Default filter controls for search and filter
1800
- * @example <FilterControls />
1877
+ * @example
1878
+ * ```tsx
1879
+ * <FilterControls />
1880
+ * ```
1801
1881
  */
1802
1882
  declare const FilterControls: ({ children, hideSearchInput, }: {
1803
1883
  /** optional param to allow you to add your own controls */
@@ -1808,7 +1888,10 @@ declare const FilterControls: ({ children, hideSearchInput, }: {
1808
1888
 
1809
1889
  /**
1810
1890
  * Renders a filter editor component
1811
- * @example <FilterEditorRenderer editorType="multiChoice" options={options} value={value} onChange={onChange} />
1891
+ * @example
1892
+ * ```tsx
1893
+ * <FilterEditorRenderer editorType="multiChoice" options={options} value={value} onChange={onChange} />
1894
+ * ```
1812
1895
  */
1813
1896
  declare const FilterEditorRenderer: ({ editorType, ...props }: FilterEditorRendererProps<never>) => _emotion_react_jsx_runtime.JSX.Element;
1814
1897
  /** A mapper for filter editor components */
@@ -1854,9 +1937,7 @@ type SearchAndFilterProviderProps = {
1854
1937
  onChange: (filters: Filter[]) => void;
1855
1938
  /** Sets default value for full text search input, useful for bindable search */
1856
1939
  defaultSearchTerm?: string;
1857
- /** sets the reset filter values
1858
- * @default "[{ field: '', operator: '', value: '' }]"
1859
- */
1940
+ /** sets the reset filter values */
1860
1941
  resetFilterValues?: Filter[];
1861
1942
  /** sets the list of filter options for each filter row */
1862
1943
  filterOptions: FilterOptionGroup[];
@@ -1908,11 +1989,17 @@ type SearchAndFilterContextProps = {
1908
1989
  declare const SearchAndFilterContext: React$1.Context<SearchAndFilterContextProps>;
1909
1990
  /**
1910
1991
  * Search and filter provider
1911
- * @example <SearchAndFilterProvider filters={filters} filterOptions={filterOptions} onSearchChange={onSearchChange} onChange={onChange}>Children</SearchAndFilterProvider>
1992
+ * @example
1993
+ * ```tsx
1994
+ * <SearchAndFilterProvider filters={filters} filterOptions={filterOptions} onSearchChange={onSearchChange} onChange={onChange}>Children</SearchAndFilterProvider>
1995
+ * ```
1912
1996
  * */
1913
1997
  declare const SearchAndFilterProvider: ({ filters, filterOptions, filterVisible, alwaysVisible, defaultSearchTerm, onSearchChange, onChange, resetFilterValues, onResetFilterValues, totalResults, isLoading, filterMapper, children, allowBindingSearchTerm, }: SearchAndFilterProviderProps) => _emotion_react_jsx_runtime.JSX.Element;
1914
1998
  /** Search and filter hook
1915
- * @example const { searchTerm, setSearchTerm, filterVisibility, setFilterVisibility, filters, setFilters, handleAddFilter, handleResetFilters, handleDeleteFilter, filterOptions, validFilterQuery } = useSearchAndFilter();
1999
+ * @example
2000
+ * ```tsx
2001
+ * const { searchTerm, setSearchTerm, filterVisibility, setFilterVisibility, filters, setFilters, handleAddFilter, handleResetFilters, handleDeleteFilter, filterOptions, validFilterQuery } = useSearchAndFilter();
2002
+ * ```
1916
2003
  */
1917
2004
  declare const useSearchAndFilter: () => {
1918
2005
  /** the search term value */
@@ -1949,7 +2036,7 @@ declare const useSearchAndFilter: () => {
1949
2036
 
1950
2037
  type SearchAndFilterProps = Omit<SearchAndFilterProviderProps, 'children'> & {
1951
2038
  /** The filter controls to be displayed
1952
- * @default '<FilterControls />'
2039
+ * @defaultValue '<FilterControls />'
1953
2040
  */
1954
2041
  filterControls?: React$1.ReactNode;
1955
2042
  /** sets the filter mode */
@@ -1961,7 +2048,7 @@ type SearchAndFilterProps = Omit<SearchAndFilterProviderProps, 'children'> & {
1961
2048
  /** Whether data is currently loading */
1962
2049
  isLoading?: boolean;
1963
2050
  /** The results container view
1964
- * @default '<SearchAndFilterResultContainer />'
2051
+ * @defaultValue '<SearchAndFilterResultContainer />'
1965
2052
  */
1966
2053
  resultsContainerView?: React$1.ReactNode;
1967
2054
  /** sets the reset filter values */
@@ -1975,7 +2062,10 @@ type SearchAndFilterProps = Omit<SearchAndFilterProviderProps, 'children'> & {
1975
2062
  };
1976
2063
  /**
1977
2064
  * Search and filter component
1978
- * @example <SearchAndFilter filters={filters} filterOptions={filterOptions} onChange={onChange} onSearchChange={onSearchChange} onSearchReset={onSearchReset} totalResults={totalResults} />
2065
+ * @example
2066
+ * ```tsx
2067
+ * <SearchAndFilter filters={filters} filterOptions={filterOptions} onChange={onChange} onSearchChange={onSearchChange} onSearchReset={onSearchReset} totalResults={totalResults} />
2068
+ * ```
1979
2069
  * */
1980
2070
  declare const SearchAndFilter: ({ filters, filterOptions, filterVisible, filterControls, viewSwitchControls, resultsContainerView, filterMapper, additionalFiltersContainer, onChange, defaultSearchTerm, onSearchChange, totalResults, isLoading, allowBindingSearchTerm, resetFilterValues, onResetFilterValues, }: SearchAndFilterProps) => _emotion_react_jsx_runtime.JSX.Element;
1981
2071
 
@@ -1998,7 +2088,10 @@ type SearchAndFilterOptionsContainerProps = {
1998
2088
  };
1999
2089
  /**
2000
2090
  * A container component for search and filter options
2001
- * @example <SearchAndFilterOptionsContainer buttonRow={<button>Button</button>}>Children</SearchAndFilterOptionsContainer>
2091
+ * @example
2092
+ * ```tsx
2093
+ * <SearchAndFilterOptionsContainer buttonRow={<button>Button</button>}>Children</SearchAndFilterOptionsContainer>
2094
+ * ```
2002
2095
  * */
2003
2096
  declare const SearchAndFilterOptionsContainer: ({ buttonRow, additionalFiltersContainer, children, }: SearchAndFilterOptionsContainerProps) => _emotion_react_jsx_runtime.JSX.Element;
2004
2097
  type FiltersProps = {
@@ -2013,20 +2106,23 @@ type FiltersProps = {
2013
2106
  /** Sets the data-test-id attribute for the filter menu */
2014
2107
  dataTestId?: string;
2015
2108
  /** The text for the reset button
2016
- * @default 'reset'
2109
+ * @defaultValue 'reset'
2017
2110
  */
2018
2111
  resetButtonText?: string;
2019
2112
  additionalFiltersContainer?: SearchAndFilterProps['additionalFiltersContainer'];
2020
2113
  };
2021
2114
  /**
2022
2115
  * A filter menu component used to display filter options
2023
- * @example <FilterMenu id="search-and-filter-options">Children</FilterMenu>
2116
+ * @example
2117
+ * ```tsx
2118
+ * <FilterMenu id="search-and-filter-options">Children</FilterMenu>
2119
+ * ```
2024
2120
  * */
2025
2121
  declare const FilterMenu: ({ id, filterTitle, menuControls, additionalFiltersContainer, children, dataTestId, resetButtonText, }: FiltersProps) => _emotion_react_jsx_runtime.JSX.Element;
2026
2122
 
2027
2123
  type SearchAndFilterResultContainerProps = {
2028
2124
  /** The label for the clear button
2029
- * @default 'Clear'
2125
+ * @defaultValue 'Clear'
2030
2126
  */
2031
2127
  clearButtonLabel?: string;
2032
2128
  /** The text for the button */
@@ -2046,7 +2142,7 @@ declare const SearchAndFilterResultContainer: ({ buttonText, clearButtonLabel, c
2046
2142
  declare const SearchOnlyContext: React$1.Context<Pick<SearchAndFilterContextProps, "searchTerm" | "setSearchTerm">>;
2047
2143
  type SearchOnlyProviderProps = Pick<SearchAndFilterProviderProps, 'onSearchChange'> & {
2048
2144
  /** sets the max width of input wrapper
2049
- * @default '712px'
2145
+ * @defaultValue '712px'
2050
2146
  */
2051
2147
  maxWidth?: string;
2052
2148
  };
@@ -2054,11 +2150,11 @@ declare const SearchOnlyFilter: ({ onSearchChange, maxWidth }: SearchOnlyProvide
2054
2150
 
2055
2151
  type SortItemsProps = {
2056
2152
  /** The label for the sort by field
2057
- * @default 'Sort by'
2153
+ * @defaultValue 'Sort by'
2058
2154
  */
2059
2155
  sortByLabel?: string;
2060
2156
  /** The label for the locale returned field
2061
- * @default 'Enabled locale'
2157
+ * @defaultValue 'Enabled locale'
2062
2158
  */
2063
2159
  localeLabel?: string;
2064
2160
  /** sets the list of sort options */
@@ -2150,8 +2246,8 @@ declare function useUniformMeshSdk(): _uniformdev_mesh_sdk.UniformMeshSDK;
2150
2246
  /**
2151
2247
  * Creates a validation interceptor between useMeshLocation's setValue function and your code.
2152
2248
  * You can use this utility to write cleaner validation logic for your Mesh Location UIs.
2153
- * @param setValue The location's raw setValue function
2154
- * @param validate A function to validate the new location's value.
2249
+ * @param setValue - The location's raw setValue function
2250
+ * @param validate - A function to validate the new location's value.
2155
2251
  * @returns An equivalent to the setValue function that intercepts sets, performs validation, and emits the result with the new value.
2156
2252
  */
2157
2253
  declare function createLocationValidator<TSetValue>(setValue: SetLocationValueDispatch<TSetValue>, validate: (newValue: TSetValue, currentResult: SetValueOptions | undefined) => SetValueOptions): SetLocationValueDispatch<TSetValue>;
@@ -2160,7 +2256,11 @@ type ContentDataResourceLocaleInfoResult = {
2160
2256
  /**
2161
2257
  * Effective locale for data resource. It can be one of two types:
2162
2258
  * - raw locale string - locale stored in mesh data type/resource (e.g. 'en-US')
2163
- * - variable reference - locale stored in mesh data type/resource as a variable reference (e.g. '${locale}')
2259
+ * - variable reference - locale stored in mesh data type/resource as a variable reference
2260
+ * @example
2261
+ * ```
2262
+ * ${locale}
2263
+ * ```
2164
2264
  */
2165
2265
  effectiveLocale: string;
2166
2266
  /** Bound locale value. It can be one of two types:
@@ -2174,7 +2274,11 @@ type ContentDataResourceLocaleInfoProps = {
2174
2274
  * It can be one of tree types:
2175
2275
  * - undefined - no locale stored in mesh data type/resource yet or it is not localized
2176
2276
  * - raw locale string - locale stored in mesh data type/resource (e.g. 'en-US')
2177
- * - variable reference - locale stored in mesh data type/resource as a variable reference (e.g. '${locale}')
2277
+ * - variable reference - locale stored in mesh data type/resource as a variable reference
2278
+ * @example
2279
+ * ```
2280
+ * ${locale}
2281
+ * ```
2178
2282
  *
2179
2283
  * If locale is empty, fallback to dynamic locale value if it is available.
2180
2284
  */
@@ -2183,7 +2287,7 @@ type ContentDataResourceLocaleInfoProps = {
2183
2287
  defaultLocale: string | undefined;
2184
2288
  /** Map of dynamic inputs for current composition. Should be passed down from DataResource metadata */
2185
2289
  dynamicInputs: DynamicInputs;
2186
- /** In case of empty locale value, this method is called to bind dynamic locale (sets locale to '${locale}') */
2290
+ /** In case of empty locale value, this method is called to bind dynamic locale */
2187
2291
  setLocale?: (locale: string) => void;
2188
2292
  };
2189
2293
  declare function useContentDataResourceLocaleInfo({ locale, defaultLocale, setLocale, dynamicInputs, }: ContentDataResourceLocaleInfoProps): ContentDataResourceLocaleInfoResult;