@uniformdev/mesh-sdk-react 19.117.1-alpha.1 → 19.117.1-alpha.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.mts CHANGED
@@ -391,8 +391,6 @@ type DataResourceDynamicInputProviderProps = {
391
391
  /** Child components of the provider. Variables-using components, such as InputVariables, can be used here. */
392
392
  children: ReactNode;
393
393
  };
394
- declare const DataResourceInputContext: React$1.Context<DynamicInputs | undefined>;
395
- declare const useDataResourceDynamicInputs: () => DynamicInputs | undefined;
396
394
  /**
397
395
  * Wrapper for data resource locations. Provides read-only access to dynamic inputs as if they were variables,
398
396
  * using variables-aware components (i.e. InputVariables). This simplifies building dynamic-input-aware editors,
@@ -1191,6 +1189,54 @@ type ObjectSearchContainerProps = {
1191
1189
  * @example <ObjectSearchContainer searchFilters={<>your component</>} resultList={<>your result list component<>} onSave={yourSaveAction} onCancel={yourCancelAction} /> */
1192
1190
  declare const ObjectSearchContainer: ({ label, enableDynamicInputToResultId, searchFilters, resultList, children, }: ObjectSearchContainerProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
1193
1191
 
1192
+ type ObjectSearchFilterProps = {
1193
+ /** shows or hides the required content type select option */
1194
+ requireContentType?: boolean;
1195
+ /** sets the text for the required content type select option
1196
+ * @default 'All content types'
1197
+ */
1198
+ typeSelectorAllTypesOptionText?: string;
1199
+ /** sets the select input value label text
1200
+ * @default 'Content Type Select'
1201
+ */
1202
+ selectLabel?: string;
1203
+ /** sets the select input options, if empty - only keyword search field will be rendered */
1204
+ selectOptions?: Array<{
1205
+ id?: string;
1206
+ name?: string;
1207
+ label: string;
1208
+ value?: string;
1209
+ }>;
1210
+ /** sets the search input name value
1211
+ * @default 'searchText'
1212
+ */
1213
+ searchInputName?: string;
1214
+ /** sets the search input placeholder text
1215
+ * @default 'Enter keyword to narrow your results'
1216
+ */
1217
+ searchInputPlaceholderText?: string;
1218
+ };
1219
+ /**
1220
+ * @description Object search filter is an opinionated filter that has pre-defined query and setQuery functions
1221
+ * that can be extended with custom functions
1222
+ * @example <ObjectSearchFilter selectOptions={[{ id: 'id value', name: 'name value'}]} /> */
1223
+ declare const ObjectSearchFilter: ({ requireContentType, typeSelectorAllTypesOptionText, searchInputName, searchInputPlaceholderText, selectLabel, selectOptions, }: ObjectSearchFilterProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
1224
+
1225
+ type ObjectSearchFilterContainerProps = {
1226
+ /**
1227
+ * sets the title for the container
1228
+ * @deprecated we recommend setting the label on ObjectSearchContainer instead
1229
+ */
1230
+ label?: string;
1231
+ /** sets child components in an opinionated layout */
1232
+ children?: React.ReactNode;
1233
+ };
1234
+ /**
1235
+ * @description an opinionated layout for search filters
1236
+ * @example <ObjectSearchFilterContainer label="my label"><input type="text" aria-label="my input" /></ObjectSearchFilterContainer>
1237
+ */
1238
+ declare const ObjectSearchFilterContainer: ({ label, children }: ObjectSearchFilterContainerProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
1239
+
1194
1240
  type SearchQueryProps<TExtraFilters = unknown> = {
1195
1241
  /** sets the content type in the search context */
1196
1242
  contentType?: string;
@@ -1198,7 +1244,6 @@ type SearchQueryProps<TExtraFilters = unknown> = {
1198
1244
  keyword?: string;
1199
1245
  /** sets the locale in the search context */
1200
1246
  locale?: string;
1201
- dynamicEntryId?: string;
1202
1247
  } & TExtraFilters;
1203
1248
  type SelectedItemProps<TExtraProps = unknown> = {
1204
1249
  /** sets the id value */
@@ -1268,91 +1313,18 @@ type ObjectSearchContextProps<TExtraFilters = unknown, TExtraItemProps = unknown
1268
1313
  /** current list of results in state */
1269
1314
  list: ItemListProps<TExtraItemProps>;
1270
1315
  /** function that sets the list of items to state */
1271
- onSetList?: (value: ItemListProps) => void;
1316
+ onSetList: (value: ItemListProps) => void;
1272
1317
  /** is multi items selection allowed or not */
1273
1318
  isMulti: boolean;
1274
- localeOptions?: {
1275
- label: string;
1276
- value: string;
1277
- }[];
1278
- enableFilterByLocale?: boolean;
1279
- isListLoading?: boolean;
1280
- isSelectedItemsListLoading?: boolean;
1281
- dynamicEntryId?: string;
1282
1319
  };
1283
- declare const ObjectSearchContext: React$1.Context<ObjectSearchContextProps<unknown, unknown>>;
1284
1320
  type ObjectSearchProviderProps = {
1285
1321
  children: ReactNode;
1286
1322
  currentlySelectedItems?: Array<SelectedItemProps>;
1287
- searchResultList?: Array<SelectedItemProps>;
1288
1323
  isMulti?: boolean;
1289
1324
  defaultQuery?: SearchQueryProps;
1290
1325
  };
1291
1326
  declare const ObjectSearchProvider: ({ currentlySelectedItems, isMulti, children, defaultQuery, }: ObjectSearchProviderProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
1292
1327
  declare function useObjectSearchContext<TExtraSearchFilters = unknown, TExtraItemProps = unknown>(): ObjectSearchContextProps<TExtraSearchFilters, TExtraItemProps>;
1293
- declare function bindQuery(query: SearchQueryProps, inputs: Record<string, unknown>): {
1294
- /** sets the content type in the search context */
1295
- contentType?: string | undefined;
1296
- /** sets the keyword search in the search context */
1297
- keyword?: string | undefined;
1298
- /** sets the locale in the search context */
1299
- locale?: string | undefined;
1300
- dynamicEntryId?: string | undefined;
1301
- };
1302
-
1303
- type ObjectSearchFilterProps = {
1304
- /** shows or hides the required content type select option */
1305
- requireContentType?: boolean;
1306
- /** sets the text for the required content type select option
1307
- * @default 'All content types'
1308
- */
1309
- typeSelectorAllTypesOptionText?: string;
1310
- /** sets the select input value label text
1311
- * @default 'Content Type Select'
1312
- */
1313
- selectLabel?: string;
1314
- /** sets the select input options, if empty - only keyword search field will be rendered */
1315
- selectOptions?: Array<{
1316
- id?: string;
1317
- name?: string;
1318
- label: string;
1319
- value?: string;
1320
- }>;
1321
- /** sets the search input name value
1322
- * @default 'searchText'
1323
- */
1324
- searchInputName?: string;
1325
- /** sets the search input placeholder text
1326
- * @default 'Enter keyword to narrow your results'
1327
- */
1328
- searchInputPlaceholderText?: string;
1329
- /** sets the label for the locale selectbox filter */
1330
- localeFilterLabel?: string;
1331
- /** sets the locale options for the locale selectbox filter */
1332
- localeOptions?: ObjectSearchContextProps['localeOptions'];
1333
- /** enables or disables the locale filter */
1334
- enableFilterByLocale?: ObjectSearchContextProps['enableFilterByLocale'];
1335
- };
1336
- /**
1337
- * @description Object search filter is an opinionated filter that has pre-defined query and setQuery functions
1338
- * that can be extended with custom functions
1339
- * @example <ObjectSearchFilter selectOptions={[{ id: 'id value', name: 'name value'}]} /> */
1340
- declare const ObjectSearchFilter: ({ requireContentType, typeSelectorAllTypesOptionText, searchInputName, searchInputPlaceholderText, selectLabel, localeFilterLabel, selectOptions, }: ObjectSearchFilterProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
1341
-
1342
- type ObjectSearchFilterContainerProps = {
1343
- /**
1344
- * sets the title for the container
1345
- * @deprecated we recommend setting the label on ObjectSearchContainer instead
1346
- */
1347
- label?: string;
1348
- /** sets child components in an opinionated layout */
1349
- children?: React.ReactNode;
1350
- };
1351
- /**
1352
- * @description an opinionated layout for search filters
1353
- * @example <ObjectSearchFilterContainer label="my label"><input type="text" aria-label="my input" /></ObjectSearchFilterContainer>
1354
- */
1355
- declare const ObjectSearchFilterContainer: ({ label, children }: ObjectSearchFilterContainerProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
1356
1328
 
1357
1329
  type ObjectSearchListItemProps = SelectedItemProps & {
1358
1330
  /** sets the content type value, this is normally used for subtitles e.g. Kitchens */
@@ -1558,23 +1530,6 @@ type QueryFilterProps<TSelectOptions extends QueryFilterSelectionOptionProps = Q
1558
1530
  */
1559
1531
  declare const QueryFilter: ({ requireContentType, queryFilterTitle, contentTypeLabel, typeSelectorAllTypesOptionText, contentTypeOptions, searchInputName, searchInputPlaceholderText, searchInputLabel, countLabel, countValue, sortLabel, sortOptions, sortOrderLabel, sortOrderOptions, children, }: QueryFilterProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
1560
1532
 
1561
- type ControlledObjectSearchProviderProps = {
1562
- children: ReactNode;
1563
- selectedItems: Array<SelectedItemProps> | undefined;
1564
- searchResultItems: Array<SelectedItemProps> | undefined;
1565
- selectedItemsLoading?: boolean;
1566
- searchResultItemsLoading?: boolean;
1567
- searchResultListLoading?: boolean;
1568
- onQueryChange: (value: SearchQueryProps) => void;
1569
- onSelectItemsChange: (selectedItems: Array<SelectedItemProps>) => void;
1570
- isMulti?: boolean;
1571
- query: SearchQueryProps;
1572
- localeOptions?: ObjectSearchContextProps['localeOptions'];
1573
- enableFilterByLocale?: ObjectSearchContextProps['enableFilterByLocale'];
1574
- dynamicEntryId?: ObjectSearchContextProps['dynamicEntryId'];
1575
- };
1576
- declare const ControlledObjectSearchProvider: ({ selectedItems, searchResultItems, selectedItemsLoading, searchResultListLoading, searchResultItemsLoading, onQueryChange, onSelectItemsChange, isMulti, children, query, enableFilterByLocale, localeOptions, dynamicEntryId, }: ControlledObjectSearchProviderProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
1577
-
1578
1533
  type ParamTypeDynamicDataProviderProps = {
1579
1534
  /** Child components of the provider. Variables-using components, such as ParameterVariables, can be used here. */
1580
1535
  children: ReactNode;
@@ -1766,4 +1721,4 @@ type ContentDataResourceLocaleInfoProps = {
1766
1721
  };
1767
1722
  declare function useContentDataResourceLocaleInfo({ locale, setLocale, dynamicInputs, }: ContentDataResourceLocaleInfoProps): ContentDataResourceLocaleInfoResult;
1768
1723
 
1769
- export { $createVariableNode, $isVariableNode, type BaseRequestData, type Brand, type ContentDataResourceLocaleInfoProps, type ContentDataResourceLocaleInfoResult, ControlledObjectSearchProvider, type ControlledObjectSearchProviderProps, ControlledValuePlugin, DISCONNECT_VARIABLE_COMMAND, type DamItem, DamSelectedItem, type DamSelectedItemProps, DataRefreshButton, type DataRefreshButtonProps, DataResourceDynamicInputProvider, type DataResourceDynamicInputProviderProps, DataResourceInputContext, type DataResourceVariableRendererProps, DataResourceVariablesList, DataResourceVariablesListExplicit, type DataResourceVariablesListProps, DataSourceEditor, type DataSourceEditorProps, DataTypeEditor, type DataTypeEditorProps, type DataVariableDefinitionWithName, DefaultSearchRow, DefaultSelectedItem, type DisconnectVariableCommandArguments, type DispatchResult, EDIT_VARIABLE_COMMAND, type EditVariableCommandArguments, EntrySearch, type EntrySearchContentType, type EntrySearchProps, type EntrySearchQueryOptions, type EntrySearchResult, type EntrySearchRowProps, type EntrySearchSelectedItemProps, type GetProductOptions, type GetProductsOptions, INSERT_VARIABLE_COMMAND, index as Icons, InputVariables, type InputVariablesProps, type InsertVariableCommandArguments, type ItemListProps, type KnownUndefinedVariableInfo, LinkButton, MeshApp, type MeshAppProps, type MeshDataVariableDefinition, type NoResultsProps, OPEN_INSERT_VARIABLE_COMMAND, ObjectSearchContainer, type ObjectSearchContainerProps, ObjectSearchContext, type ObjectSearchContextProps, ObjectSearchFilter, ObjectSearchFilterContainer, type ObjectSearchFilterContainerProps, type ObjectSearchFilterProps, ObjectSearchListItem, ObjectSearchListItemLoadingSkeleton, type ObjectSearchListItemProps, ObjectSearchProvider, type ObjectSearchProviderProps, ObjectSearchResultItem, ObjectSearchResultItemButton, type ObjectSearchResultItemButtonProps, type ObjectSearchResultItemProps, ObjectSearchResultList, type ObjectSearchResultListProps, ParamTypeDynamicDataProvider, type ParamTypeDynamicDataProviderProps, type ParameterConnectOptions, ParameterConnectionIndicator, type ParameterConnectionIndicatorProps, ParameterOrSingleVariable, type ParameterOrSingleVariableProps, ParameterVariables, type ParameterVariablesProps, type ProductCategory, type ProductDynamicSelectorValue, ProductPreviewList, ProductQuery, type ProductQueryCategory, ProductQueryContext, type ProductQueryContextValue, type ProductQueryProps, ProductSearch, ProductSearchContext, type ProductSearchContextValue, type ProductSearchProps, type ProductSearchResult, type ProductSearchResults, ProductSearchRow, ProductSelectedItem, QueryFilter, type QueryFilterProps, type QueryFilterSearchProps, type RequestAction, RequestBody, type RequestContext, type RequestData, RequestHeaders, RequestMethodSelect, type RequestParameter, RequestParameters, type RequestParametersProps, RequestProvider, type RequestProviderProps, RequestTypeContainer, type RequestTypeContainerProps, RequestUrl, RequestUrlInput, ResolvableLoadingValue, type SearchQueryProps, type SelectedItemProps, SelectionField, type SelectionFieldValue, type SerializedVariableNode, type SetLocationValueDispatch, type SetLocationValueFunction, TextVariableRenderer, type UseVariablesMenu, type UseVariablesMenuInput, VariableEditor, type VariableEditorCompleteEvent, type VariableEditorProps, VariableNode, type VariableNodeState, type VariableSourceGroup, type VariablesAction, type VariablesContext, type VariablesEvents, VariablesList, VariablesPlugin, type VariablesPluginProps, VariablesProvider, type VariablesProviderProps, badgeIcon, bindQuery, convertConnectedDataToVariable, createLocationValidator, damSelectItemImage, damSelectedItemContainer, damSelectedItemCopy, damSelectedItemDetails, damSelectedItemIcon, damSelectedItemInfoBtn, damSelectedItemInner, damSelectedItemLinkBtn, damSelectedItemLinkContainer, damSelectedItemMediaContainer, damSelectedItemPopover, damSelectedItemPopoverLabel, damSelectedItemSmallText, damSelectedItemTitle, draggableContainer, draggableIcon, draggableIconOffset, draggableIconWrapper, entrySearchBtn, entrySearchConfig, entrySearchConfigHidden, entrySearchLoadMoreBtn, entrySearchResultList, entrySearchSelectIcon, entrySearchSelectImg, entrySearchSelectInput, entrySearchSelectOption, entrySearchWrapper, hasReferencedVariables, prettifyBindExpression, productSearchRowActiveIcon, productSearchRowCategory, productSearchRowContainer, productSearchRowContent, productSearchRowContentActive, productSearchRowDetails, productSearchRowTitle, productSelectedItemContainer, productSelectedItemContent, productSelectedItemDetails, productSelectedItemIcon, productSelectedItemImage, productSelectedItemLinkContainer, productedSelectedItemLinkBtn, productedSelectedItemSmallText, searchRowBtn, searchRowContainer, searchRowContainerActive, searchRowContainerWithPopover, searchRowPopover, searchRowText, searchRowTextSmall, selectItemLinkBtn, selectItemLinkContainer, selectItemPopover, selectItemPopoverLabel, selectItemSmallText, selectedItemContainer, selectedItemCopy, selectedItemDetails, selectedItemIcon, selectedItemInner, selectedItemTitle, serializeVariablesEditorState, setVariablesEditorValue, urlEncodeRequestParameter, urlEncodeRequestUrl, useConnectedDataAsVariables, useContentDataResourceLocaleInfo, useDataResourceDynamicInputs, useDynamicInputsAsVariables, useMeshLocation, useObjectSearchContext, useProductQueryContext, useProductSearchContext, useRequest, useRequestHeader, useRequestParameter, useUniformMeshSdk, useVariableEditor, useVariables, useVariablesMenu, variableDefaultTextValue, variablePrefix, variableSuffix, variablesToGroupedList, variablesToList };
1724
+ export { $createVariableNode, $isVariableNode, type BaseRequestData, type Brand, type ContentDataResourceLocaleInfoProps, type ContentDataResourceLocaleInfoResult, ControlledValuePlugin, DISCONNECT_VARIABLE_COMMAND, type DamItem, DamSelectedItem, type DamSelectedItemProps, DataRefreshButton, type DataRefreshButtonProps, DataResourceDynamicInputProvider, type DataResourceDynamicInputProviderProps, type DataResourceVariableRendererProps, DataResourceVariablesList, DataResourceVariablesListExplicit, type DataResourceVariablesListProps, DataSourceEditor, type DataSourceEditorProps, DataTypeEditor, type DataTypeEditorProps, type DataVariableDefinitionWithName, DefaultSearchRow, DefaultSelectedItem, type DisconnectVariableCommandArguments, type DispatchResult, EDIT_VARIABLE_COMMAND, type EditVariableCommandArguments, EntrySearch, type EntrySearchContentType, type EntrySearchProps, type EntrySearchQueryOptions, type EntrySearchResult, type EntrySearchRowProps, type EntrySearchSelectedItemProps, type GetProductOptions, type GetProductsOptions, INSERT_VARIABLE_COMMAND, index as Icons, InputVariables, type InputVariablesProps, type InsertVariableCommandArguments, type ItemListProps, type KnownUndefinedVariableInfo, LinkButton, MeshApp, type MeshAppProps, type MeshDataVariableDefinition, type NoResultsProps, OPEN_INSERT_VARIABLE_COMMAND, ObjectSearchContainer, type ObjectSearchContainerProps, type ObjectSearchContextProps, ObjectSearchFilter, ObjectSearchFilterContainer, type ObjectSearchFilterContainerProps, type ObjectSearchFilterProps, ObjectSearchListItem, ObjectSearchListItemLoadingSkeleton, type ObjectSearchListItemProps, ObjectSearchProvider, type ObjectSearchProviderProps, ObjectSearchResultItem, ObjectSearchResultItemButton, type ObjectSearchResultItemButtonProps, type ObjectSearchResultItemProps, ObjectSearchResultList, type ObjectSearchResultListProps, ParamTypeDynamicDataProvider, type ParamTypeDynamicDataProviderProps, type ParameterConnectOptions, ParameterConnectionIndicator, type ParameterConnectionIndicatorProps, ParameterOrSingleVariable, type ParameterOrSingleVariableProps, ParameterVariables, type ParameterVariablesProps, type ProductCategory, type ProductDynamicSelectorValue, ProductPreviewList, ProductQuery, type ProductQueryCategory, ProductQueryContext, type ProductQueryContextValue, type ProductQueryProps, ProductSearch, ProductSearchContext, type ProductSearchContextValue, type ProductSearchProps, type ProductSearchResult, type ProductSearchResults, ProductSearchRow, ProductSelectedItem, QueryFilter, type QueryFilterProps, type QueryFilterSearchProps, type RequestAction, RequestBody, type RequestContext, type RequestData, RequestHeaders, RequestMethodSelect, type RequestParameter, RequestParameters, type RequestParametersProps, RequestProvider, type RequestProviderProps, RequestTypeContainer, type RequestTypeContainerProps, RequestUrl, RequestUrlInput, ResolvableLoadingValue, type SearchQueryProps, type SelectedItemProps, SelectionField, type SelectionFieldValue, type SerializedVariableNode, type SetLocationValueDispatch, type SetLocationValueFunction, TextVariableRenderer, type UseVariablesMenu, type UseVariablesMenuInput, VariableEditor, type VariableEditorCompleteEvent, type VariableEditorProps, VariableNode, type VariableNodeState, type VariableSourceGroup, type VariablesAction, type VariablesContext, type VariablesEvents, VariablesList, VariablesPlugin, type VariablesPluginProps, VariablesProvider, type VariablesProviderProps, badgeIcon, convertConnectedDataToVariable, createLocationValidator, damSelectItemImage, damSelectedItemContainer, damSelectedItemCopy, damSelectedItemDetails, damSelectedItemIcon, damSelectedItemInfoBtn, damSelectedItemInner, damSelectedItemLinkBtn, damSelectedItemLinkContainer, damSelectedItemMediaContainer, damSelectedItemPopover, damSelectedItemPopoverLabel, damSelectedItemSmallText, damSelectedItemTitle, draggableContainer, draggableIcon, draggableIconOffset, draggableIconWrapper, entrySearchBtn, entrySearchConfig, entrySearchConfigHidden, entrySearchLoadMoreBtn, entrySearchResultList, entrySearchSelectIcon, entrySearchSelectImg, entrySearchSelectInput, entrySearchSelectOption, entrySearchWrapper, hasReferencedVariables, prettifyBindExpression, productSearchRowActiveIcon, productSearchRowCategory, productSearchRowContainer, productSearchRowContent, productSearchRowContentActive, productSearchRowDetails, productSearchRowTitle, productSelectedItemContainer, productSelectedItemContent, productSelectedItemDetails, productSelectedItemIcon, productSelectedItemImage, productSelectedItemLinkContainer, productedSelectedItemLinkBtn, productedSelectedItemSmallText, searchRowBtn, searchRowContainer, searchRowContainerActive, searchRowContainerWithPopover, searchRowPopover, searchRowText, searchRowTextSmall, selectItemLinkBtn, selectItemLinkContainer, selectItemPopover, selectItemPopoverLabel, selectItemSmallText, selectedItemContainer, selectedItemCopy, selectedItemDetails, selectedItemIcon, selectedItemInner, selectedItemTitle, serializeVariablesEditorState, setVariablesEditorValue, urlEncodeRequestParameter, urlEncodeRequestUrl, useConnectedDataAsVariables, useContentDataResourceLocaleInfo, useDynamicInputsAsVariables, useMeshLocation, useObjectSearchContext, useProductQueryContext, useProductSearchContext, useRequest, useRequestHeader, useRequestParameter, useUniformMeshSdk, useVariableEditor, useVariables, useVariablesMenu, variableDefaultTextValue, variablePrefix, variableSuffix, variablesToGroupedList, variablesToList };
package/dist/index.d.ts CHANGED
@@ -391,8 +391,6 @@ type DataResourceDynamicInputProviderProps = {
391
391
  /** Child components of the provider. Variables-using components, such as InputVariables, can be used here. */
392
392
  children: ReactNode;
393
393
  };
394
- declare const DataResourceInputContext: React$1.Context<DynamicInputs | undefined>;
395
- declare const useDataResourceDynamicInputs: () => DynamicInputs | undefined;
396
394
  /**
397
395
  * Wrapper for data resource locations. Provides read-only access to dynamic inputs as if they were variables,
398
396
  * using variables-aware components (i.e. InputVariables). This simplifies building dynamic-input-aware editors,
@@ -1191,6 +1189,54 @@ type ObjectSearchContainerProps = {
1191
1189
  * @example <ObjectSearchContainer searchFilters={<>your component</>} resultList={<>your result list component<>} onSave={yourSaveAction} onCancel={yourCancelAction} /> */
1192
1190
  declare const ObjectSearchContainer: ({ label, enableDynamicInputToResultId, searchFilters, resultList, children, }: ObjectSearchContainerProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
1193
1191
 
1192
+ type ObjectSearchFilterProps = {
1193
+ /** shows or hides the required content type select option */
1194
+ requireContentType?: boolean;
1195
+ /** sets the text for the required content type select option
1196
+ * @default 'All content types'
1197
+ */
1198
+ typeSelectorAllTypesOptionText?: string;
1199
+ /** sets the select input value label text
1200
+ * @default 'Content Type Select'
1201
+ */
1202
+ selectLabel?: string;
1203
+ /** sets the select input options, if empty - only keyword search field will be rendered */
1204
+ selectOptions?: Array<{
1205
+ id?: string;
1206
+ name?: string;
1207
+ label: string;
1208
+ value?: string;
1209
+ }>;
1210
+ /** sets the search input name value
1211
+ * @default 'searchText'
1212
+ */
1213
+ searchInputName?: string;
1214
+ /** sets the search input placeholder text
1215
+ * @default 'Enter keyword to narrow your results'
1216
+ */
1217
+ searchInputPlaceholderText?: string;
1218
+ };
1219
+ /**
1220
+ * @description Object search filter is an opinionated filter that has pre-defined query and setQuery functions
1221
+ * that can be extended with custom functions
1222
+ * @example <ObjectSearchFilter selectOptions={[{ id: 'id value', name: 'name value'}]} /> */
1223
+ declare const ObjectSearchFilter: ({ requireContentType, typeSelectorAllTypesOptionText, searchInputName, searchInputPlaceholderText, selectLabel, selectOptions, }: ObjectSearchFilterProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
1224
+
1225
+ type ObjectSearchFilterContainerProps = {
1226
+ /**
1227
+ * sets the title for the container
1228
+ * @deprecated we recommend setting the label on ObjectSearchContainer instead
1229
+ */
1230
+ label?: string;
1231
+ /** sets child components in an opinionated layout */
1232
+ children?: React.ReactNode;
1233
+ };
1234
+ /**
1235
+ * @description an opinionated layout for search filters
1236
+ * @example <ObjectSearchFilterContainer label="my label"><input type="text" aria-label="my input" /></ObjectSearchFilterContainer>
1237
+ */
1238
+ declare const ObjectSearchFilterContainer: ({ label, children }: ObjectSearchFilterContainerProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
1239
+
1194
1240
  type SearchQueryProps<TExtraFilters = unknown> = {
1195
1241
  /** sets the content type in the search context */
1196
1242
  contentType?: string;
@@ -1198,7 +1244,6 @@ type SearchQueryProps<TExtraFilters = unknown> = {
1198
1244
  keyword?: string;
1199
1245
  /** sets the locale in the search context */
1200
1246
  locale?: string;
1201
- dynamicEntryId?: string;
1202
1247
  } & TExtraFilters;
1203
1248
  type SelectedItemProps<TExtraProps = unknown> = {
1204
1249
  /** sets the id value */
@@ -1268,91 +1313,18 @@ type ObjectSearchContextProps<TExtraFilters = unknown, TExtraItemProps = unknown
1268
1313
  /** current list of results in state */
1269
1314
  list: ItemListProps<TExtraItemProps>;
1270
1315
  /** function that sets the list of items to state */
1271
- onSetList?: (value: ItemListProps) => void;
1316
+ onSetList: (value: ItemListProps) => void;
1272
1317
  /** is multi items selection allowed or not */
1273
1318
  isMulti: boolean;
1274
- localeOptions?: {
1275
- label: string;
1276
- value: string;
1277
- }[];
1278
- enableFilterByLocale?: boolean;
1279
- isListLoading?: boolean;
1280
- isSelectedItemsListLoading?: boolean;
1281
- dynamicEntryId?: string;
1282
1319
  };
1283
- declare const ObjectSearchContext: React$1.Context<ObjectSearchContextProps<unknown, unknown>>;
1284
1320
  type ObjectSearchProviderProps = {
1285
1321
  children: ReactNode;
1286
1322
  currentlySelectedItems?: Array<SelectedItemProps>;
1287
- searchResultList?: Array<SelectedItemProps>;
1288
1323
  isMulti?: boolean;
1289
1324
  defaultQuery?: SearchQueryProps;
1290
1325
  };
1291
1326
  declare const ObjectSearchProvider: ({ currentlySelectedItems, isMulti, children, defaultQuery, }: ObjectSearchProviderProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
1292
1327
  declare function useObjectSearchContext<TExtraSearchFilters = unknown, TExtraItemProps = unknown>(): ObjectSearchContextProps<TExtraSearchFilters, TExtraItemProps>;
1293
- declare function bindQuery(query: SearchQueryProps, inputs: Record<string, unknown>): {
1294
- /** sets the content type in the search context */
1295
- contentType?: string | undefined;
1296
- /** sets the keyword search in the search context */
1297
- keyword?: string | undefined;
1298
- /** sets the locale in the search context */
1299
- locale?: string | undefined;
1300
- dynamicEntryId?: string | undefined;
1301
- };
1302
-
1303
- type ObjectSearchFilterProps = {
1304
- /** shows or hides the required content type select option */
1305
- requireContentType?: boolean;
1306
- /** sets the text for the required content type select option
1307
- * @default 'All content types'
1308
- */
1309
- typeSelectorAllTypesOptionText?: string;
1310
- /** sets the select input value label text
1311
- * @default 'Content Type Select'
1312
- */
1313
- selectLabel?: string;
1314
- /** sets the select input options, if empty - only keyword search field will be rendered */
1315
- selectOptions?: Array<{
1316
- id?: string;
1317
- name?: string;
1318
- label: string;
1319
- value?: string;
1320
- }>;
1321
- /** sets the search input name value
1322
- * @default 'searchText'
1323
- */
1324
- searchInputName?: string;
1325
- /** sets the search input placeholder text
1326
- * @default 'Enter keyword to narrow your results'
1327
- */
1328
- searchInputPlaceholderText?: string;
1329
- /** sets the label for the locale selectbox filter */
1330
- localeFilterLabel?: string;
1331
- /** sets the locale options for the locale selectbox filter */
1332
- localeOptions?: ObjectSearchContextProps['localeOptions'];
1333
- /** enables or disables the locale filter */
1334
- enableFilterByLocale?: ObjectSearchContextProps['enableFilterByLocale'];
1335
- };
1336
- /**
1337
- * @description Object search filter is an opinionated filter that has pre-defined query and setQuery functions
1338
- * that can be extended with custom functions
1339
- * @example <ObjectSearchFilter selectOptions={[{ id: 'id value', name: 'name value'}]} /> */
1340
- declare const ObjectSearchFilter: ({ requireContentType, typeSelectorAllTypesOptionText, searchInputName, searchInputPlaceholderText, selectLabel, localeFilterLabel, selectOptions, }: ObjectSearchFilterProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
1341
-
1342
- type ObjectSearchFilterContainerProps = {
1343
- /**
1344
- * sets the title for the container
1345
- * @deprecated we recommend setting the label on ObjectSearchContainer instead
1346
- */
1347
- label?: string;
1348
- /** sets child components in an opinionated layout */
1349
- children?: React.ReactNode;
1350
- };
1351
- /**
1352
- * @description an opinionated layout for search filters
1353
- * @example <ObjectSearchFilterContainer label="my label"><input type="text" aria-label="my input" /></ObjectSearchFilterContainer>
1354
- */
1355
- declare const ObjectSearchFilterContainer: ({ label, children }: ObjectSearchFilterContainerProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
1356
1328
 
1357
1329
  type ObjectSearchListItemProps = SelectedItemProps & {
1358
1330
  /** sets the content type value, this is normally used for subtitles e.g. Kitchens */
@@ -1558,23 +1530,6 @@ type QueryFilterProps<TSelectOptions extends QueryFilterSelectionOptionProps = Q
1558
1530
  */
1559
1531
  declare const QueryFilter: ({ requireContentType, queryFilterTitle, contentTypeLabel, typeSelectorAllTypesOptionText, contentTypeOptions, searchInputName, searchInputPlaceholderText, searchInputLabel, countLabel, countValue, sortLabel, sortOptions, sortOrderLabel, sortOrderOptions, children, }: QueryFilterProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
1560
1532
 
1561
- type ControlledObjectSearchProviderProps = {
1562
- children: ReactNode;
1563
- selectedItems: Array<SelectedItemProps> | undefined;
1564
- searchResultItems: Array<SelectedItemProps> | undefined;
1565
- selectedItemsLoading?: boolean;
1566
- searchResultItemsLoading?: boolean;
1567
- searchResultListLoading?: boolean;
1568
- onQueryChange: (value: SearchQueryProps) => void;
1569
- onSelectItemsChange: (selectedItems: Array<SelectedItemProps>) => void;
1570
- isMulti?: boolean;
1571
- query: SearchQueryProps;
1572
- localeOptions?: ObjectSearchContextProps['localeOptions'];
1573
- enableFilterByLocale?: ObjectSearchContextProps['enableFilterByLocale'];
1574
- dynamicEntryId?: ObjectSearchContextProps['dynamicEntryId'];
1575
- };
1576
- declare const ControlledObjectSearchProvider: ({ selectedItems, searchResultItems, selectedItemsLoading, searchResultListLoading, searchResultItemsLoading, onQueryChange, onSelectItemsChange, isMulti, children, query, enableFilterByLocale, localeOptions, dynamicEntryId, }: ControlledObjectSearchProviderProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
1577
-
1578
1533
  type ParamTypeDynamicDataProviderProps = {
1579
1534
  /** Child components of the provider. Variables-using components, such as ParameterVariables, can be used here. */
1580
1535
  children: ReactNode;
@@ -1766,4 +1721,4 @@ type ContentDataResourceLocaleInfoProps = {
1766
1721
  };
1767
1722
  declare function useContentDataResourceLocaleInfo({ locale, setLocale, dynamicInputs, }: ContentDataResourceLocaleInfoProps): ContentDataResourceLocaleInfoResult;
1768
1723
 
1769
- export { $createVariableNode, $isVariableNode, type BaseRequestData, type Brand, type ContentDataResourceLocaleInfoProps, type ContentDataResourceLocaleInfoResult, ControlledObjectSearchProvider, type ControlledObjectSearchProviderProps, ControlledValuePlugin, DISCONNECT_VARIABLE_COMMAND, type DamItem, DamSelectedItem, type DamSelectedItemProps, DataRefreshButton, type DataRefreshButtonProps, DataResourceDynamicInputProvider, type DataResourceDynamicInputProviderProps, DataResourceInputContext, type DataResourceVariableRendererProps, DataResourceVariablesList, DataResourceVariablesListExplicit, type DataResourceVariablesListProps, DataSourceEditor, type DataSourceEditorProps, DataTypeEditor, type DataTypeEditorProps, type DataVariableDefinitionWithName, DefaultSearchRow, DefaultSelectedItem, type DisconnectVariableCommandArguments, type DispatchResult, EDIT_VARIABLE_COMMAND, type EditVariableCommandArguments, EntrySearch, type EntrySearchContentType, type EntrySearchProps, type EntrySearchQueryOptions, type EntrySearchResult, type EntrySearchRowProps, type EntrySearchSelectedItemProps, type GetProductOptions, type GetProductsOptions, INSERT_VARIABLE_COMMAND, index as Icons, InputVariables, type InputVariablesProps, type InsertVariableCommandArguments, type ItemListProps, type KnownUndefinedVariableInfo, LinkButton, MeshApp, type MeshAppProps, type MeshDataVariableDefinition, type NoResultsProps, OPEN_INSERT_VARIABLE_COMMAND, ObjectSearchContainer, type ObjectSearchContainerProps, ObjectSearchContext, type ObjectSearchContextProps, ObjectSearchFilter, ObjectSearchFilterContainer, type ObjectSearchFilterContainerProps, type ObjectSearchFilterProps, ObjectSearchListItem, ObjectSearchListItemLoadingSkeleton, type ObjectSearchListItemProps, ObjectSearchProvider, type ObjectSearchProviderProps, ObjectSearchResultItem, ObjectSearchResultItemButton, type ObjectSearchResultItemButtonProps, type ObjectSearchResultItemProps, ObjectSearchResultList, type ObjectSearchResultListProps, ParamTypeDynamicDataProvider, type ParamTypeDynamicDataProviderProps, type ParameterConnectOptions, ParameterConnectionIndicator, type ParameterConnectionIndicatorProps, ParameterOrSingleVariable, type ParameterOrSingleVariableProps, ParameterVariables, type ParameterVariablesProps, type ProductCategory, type ProductDynamicSelectorValue, ProductPreviewList, ProductQuery, type ProductQueryCategory, ProductQueryContext, type ProductQueryContextValue, type ProductQueryProps, ProductSearch, ProductSearchContext, type ProductSearchContextValue, type ProductSearchProps, type ProductSearchResult, type ProductSearchResults, ProductSearchRow, ProductSelectedItem, QueryFilter, type QueryFilterProps, type QueryFilterSearchProps, type RequestAction, RequestBody, type RequestContext, type RequestData, RequestHeaders, RequestMethodSelect, type RequestParameter, RequestParameters, type RequestParametersProps, RequestProvider, type RequestProviderProps, RequestTypeContainer, type RequestTypeContainerProps, RequestUrl, RequestUrlInput, ResolvableLoadingValue, type SearchQueryProps, type SelectedItemProps, SelectionField, type SelectionFieldValue, type SerializedVariableNode, type SetLocationValueDispatch, type SetLocationValueFunction, TextVariableRenderer, type UseVariablesMenu, type UseVariablesMenuInput, VariableEditor, type VariableEditorCompleteEvent, type VariableEditorProps, VariableNode, type VariableNodeState, type VariableSourceGroup, type VariablesAction, type VariablesContext, type VariablesEvents, VariablesList, VariablesPlugin, type VariablesPluginProps, VariablesProvider, type VariablesProviderProps, badgeIcon, bindQuery, convertConnectedDataToVariable, createLocationValidator, damSelectItemImage, damSelectedItemContainer, damSelectedItemCopy, damSelectedItemDetails, damSelectedItemIcon, damSelectedItemInfoBtn, damSelectedItemInner, damSelectedItemLinkBtn, damSelectedItemLinkContainer, damSelectedItemMediaContainer, damSelectedItemPopover, damSelectedItemPopoverLabel, damSelectedItemSmallText, damSelectedItemTitle, draggableContainer, draggableIcon, draggableIconOffset, draggableIconWrapper, entrySearchBtn, entrySearchConfig, entrySearchConfigHidden, entrySearchLoadMoreBtn, entrySearchResultList, entrySearchSelectIcon, entrySearchSelectImg, entrySearchSelectInput, entrySearchSelectOption, entrySearchWrapper, hasReferencedVariables, prettifyBindExpression, productSearchRowActiveIcon, productSearchRowCategory, productSearchRowContainer, productSearchRowContent, productSearchRowContentActive, productSearchRowDetails, productSearchRowTitle, productSelectedItemContainer, productSelectedItemContent, productSelectedItemDetails, productSelectedItemIcon, productSelectedItemImage, productSelectedItemLinkContainer, productedSelectedItemLinkBtn, productedSelectedItemSmallText, searchRowBtn, searchRowContainer, searchRowContainerActive, searchRowContainerWithPopover, searchRowPopover, searchRowText, searchRowTextSmall, selectItemLinkBtn, selectItemLinkContainer, selectItemPopover, selectItemPopoverLabel, selectItemSmallText, selectedItemContainer, selectedItemCopy, selectedItemDetails, selectedItemIcon, selectedItemInner, selectedItemTitle, serializeVariablesEditorState, setVariablesEditorValue, urlEncodeRequestParameter, urlEncodeRequestUrl, useConnectedDataAsVariables, useContentDataResourceLocaleInfo, useDataResourceDynamicInputs, useDynamicInputsAsVariables, useMeshLocation, useObjectSearchContext, useProductQueryContext, useProductSearchContext, useRequest, useRequestHeader, useRequestParameter, useUniformMeshSdk, useVariableEditor, useVariables, useVariablesMenu, variableDefaultTextValue, variablePrefix, variableSuffix, variablesToGroupedList, variablesToList };
1724
+ export { $createVariableNode, $isVariableNode, type BaseRequestData, type Brand, type ContentDataResourceLocaleInfoProps, type ContentDataResourceLocaleInfoResult, ControlledValuePlugin, DISCONNECT_VARIABLE_COMMAND, type DamItem, DamSelectedItem, type DamSelectedItemProps, DataRefreshButton, type DataRefreshButtonProps, DataResourceDynamicInputProvider, type DataResourceDynamicInputProviderProps, type DataResourceVariableRendererProps, DataResourceVariablesList, DataResourceVariablesListExplicit, type DataResourceVariablesListProps, DataSourceEditor, type DataSourceEditorProps, DataTypeEditor, type DataTypeEditorProps, type DataVariableDefinitionWithName, DefaultSearchRow, DefaultSelectedItem, type DisconnectVariableCommandArguments, type DispatchResult, EDIT_VARIABLE_COMMAND, type EditVariableCommandArguments, EntrySearch, type EntrySearchContentType, type EntrySearchProps, type EntrySearchQueryOptions, type EntrySearchResult, type EntrySearchRowProps, type EntrySearchSelectedItemProps, type GetProductOptions, type GetProductsOptions, INSERT_VARIABLE_COMMAND, index as Icons, InputVariables, type InputVariablesProps, type InsertVariableCommandArguments, type ItemListProps, type KnownUndefinedVariableInfo, LinkButton, MeshApp, type MeshAppProps, type MeshDataVariableDefinition, type NoResultsProps, OPEN_INSERT_VARIABLE_COMMAND, ObjectSearchContainer, type ObjectSearchContainerProps, type ObjectSearchContextProps, ObjectSearchFilter, ObjectSearchFilterContainer, type ObjectSearchFilterContainerProps, type ObjectSearchFilterProps, ObjectSearchListItem, ObjectSearchListItemLoadingSkeleton, type ObjectSearchListItemProps, ObjectSearchProvider, type ObjectSearchProviderProps, ObjectSearchResultItem, ObjectSearchResultItemButton, type ObjectSearchResultItemButtonProps, type ObjectSearchResultItemProps, ObjectSearchResultList, type ObjectSearchResultListProps, ParamTypeDynamicDataProvider, type ParamTypeDynamicDataProviderProps, type ParameterConnectOptions, ParameterConnectionIndicator, type ParameterConnectionIndicatorProps, ParameterOrSingleVariable, type ParameterOrSingleVariableProps, ParameterVariables, type ParameterVariablesProps, type ProductCategory, type ProductDynamicSelectorValue, ProductPreviewList, ProductQuery, type ProductQueryCategory, ProductQueryContext, type ProductQueryContextValue, type ProductQueryProps, ProductSearch, ProductSearchContext, type ProductSearchContextValue, type ProductSearchProps, type ProductSearchResult, type ProductSearchResults, ProductSearchRow, ProductSelectedItem, QueryFilter, type QueryFilterProps, type QueryFilterSearchProps, type RequestAction, RequestBody, type RequestContext, type RequestData, RequestHeaders, RequestMethodSelect, type RequestParameter, RequestParameters, type RequestParametersProps, RequestProvider, type RequestProviderProps, RequestTypeContainer, type RequestTypeContainerProps, RequestUrl, RequestUrlInput, ResolvableLoadingValue, type SearchQueryProps, type SelectedItemProps, SelectionField, type SelectionFieldValue, type SerializedVariableNode, type SetLocationValueDispatch, type SetLocationValueFunction, TextVariableRenderer, type UseVariablesMenu, type UseVariablesMenuInput, VariableEditor, type VariableEditorCompleteEvent, type VariableEditorProps, VariableNode, type VariableNodeState, type VariableSourceGroup, type VariablesAction, type VariablesContext, type VariablesEvents, VariablesList, VariablesPlugin, type VariablesPluginProps, VariablesProvider, type VariablesProviderProps, badgeIcon, convertConnectedDataToVariable, createLocationValidator, damSelectItemImage, damSelectedItemContainer, damSelectedItemCopy, damSelectedItemDetails, damSelectedItemIcon, damSelectedItemInfoBtn, damSelectedItemInner, damSelectedItemLinkBtn, damSelectedItemLinkContainer, damSelectedItemMediaContainer, damSelectedItemPopover, damSelectedItemPopoverLabel, damSelectedItemSmallText, damSelectedItemTitle, draggableContainer, draggableIcon, draggableIconOffset, draggableIconWrapper, entrySearchBtn, entrySearchConfig, entrySearchConfigHidden, entrySearchLoadMoreBtn, entrySearchResultList, entrySearchSelectIcon, entrySearchSelectImg, entrySearchSelectInput, entrySearchSelectOption, entrySearchWrapper, hasReferencedVariables, prettifyBindExpression, productSearchRowActiveIcon, productSearchRowCategory, productSearchRowContainer, productSearchRowContent, productSearchRowContentActive, productSearchRowDetails, productSearchRowTitle, productSelectedItemContainer, productSelectedItemContent, productSelectedItemDetails, productSelectedItemIcon, productSelectedItemImage, productSelectedItemLinkContainer, productedSelectedItemLinkBtn, productedSelectedItemSmallText, searchRowBtn, searchRowContainer, searchRowContainerActive, searchRowContainerWithPopover, searchRowPopover, searchRowText, searchRowTextSmall, selectItemLinkBtn, selectItemLinkContainer, selectItemPopover, selectItemPopoverLabel, selectItemSmallText, selectedItemContainer, selectedItemCopy, selectedItemDetails, selectedItemIcon, selectedItemInner, selectedItemTitle, serializeVariablesEditorState, setVariablesEditorValue, urlEncodeRequestParameter, urlEncodeRequestUrl, useConnectedDataAsVariables, useContentDataResourceLocaleInfo, useDynamicInputsAsVariables, useMeshLocation, useObjectSearchContext, useProductQueryContext, useProductSearchContext, useRequest, useRequestHeader, useRequestParameter, useUniformMeshSdk, useVariableEditor, useVariables, useVariablesMenu, variableDefaultTextValue, variablePrefix, variableSuffix, variablesToGroupedList, variablesToList };