@uniformdev/mesh-sdk-react 19.117.0 → 19.117.1-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -391,6 +391,8 @@ 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;
394
396
  /**
395
397
  * Wrapper for data resource locations. Provides read-only access to dynamic inputs as if they were variables,
396
398
  * using variables-aware components (i.e. InputVariables). This simplifies building dynamic-input-aware editors,
@@ -1189,54 +1191,6 @@ type ObjectSearchContainerProps = {
1189
1191
  * @example <ObjectSearchContainer searchFilters={<>your component</>} resultList={<>your result list component<>} onSave={yourSaveAction} onCancel={yourCancelAction} /> */
1190
1192
  declare const ObjectSearchContainer: ({ label, enableDynamicInputToResultId, searchFilters, resultList, children, }: ObjectSearchContainerProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
1191
1193
 
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
-
1240
1194
  type SearchQueryProps<TExtraFilters = unknown> = {
1241
1195
  /** sets the content type in the search context */
1242
1196
  contentType?: string;
@@ -1244,6 +1198,7 @@ type SearchQueryProps<TExtraFilters = unknown> = {
1244
1198
  keyword?: string;
1245
1199
  /** sets the locale in the search context */
1246
1200
  locale?: string;
1201
+ dynamicEntryId?: string;
1247
1202
  } & TExtraFilters;
1248
1203
  type SelectedItemProps<TExtraProps = unknown> = {
1249
1204
  /** sets the id value */
@@ -1313,18 +1268,91 @@ type ObjectSearchContextProps<TExtraFilters = unknown, TExtraItemProps = unknown
1313
1268
  /** current list of results in state */
1314
1269
  list: ItemListProps<TExtraItemProps>;
1315
1270
  /** function that sets the list of items to state */
1316
- onSetList: (value: ItemListProps) => void;
1271
+ onSetList?: (value: ItemListProps) => void;
1317
1272
  /** is multi items selection allowed or not */
1318
1273
  isMulti: boolean;
1274
+ localeOptions?: {
1275
+ label: string;
1276
+ value: string;
1277
+ }[];
1278
+ enableFilterByLocale?: boolean;
1279
+ isListLoading?: boolean;
1280
+ isSelectedItemsListLoading?: boolean;
1281
+ dynamicEntryId?: string;
1319
1282
  };
1283
+ declare const ObjectSearchContext: React$1.Context<ObjectSearchContextProps<unknown, unknown>>;
1320
1284
  type ObjectSearchProviderProps = {
1321
1285
  children: ReactNode;
1322
1286
  currentlySelectedItems?: Array<SelectedItemProps>;
1287
+ searchResultList?: Array<SelectedItemProps>;
1323
1288
  isMulti?: boolean;
1324
1289
  defaultQuery?: SearchQueryProps;
1325
1290
  };
1326
1291
  declare const ObjectSearchProvider: ({ currentlySelectedItems, isMulti, children, defaultQuery, }: ObjectSearchProviderProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
1327
1292
  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;
1328
1356
 
1329
1357
  type ObjectSearchListItemProps = SelectedItemProps & {
1330
1358
  /** sets the content type value, this is normally used for subtitles e.g. Kitchens */
@@ -1530,6 +1558,23 @@ type QueryFilterProps<TSelectOptions extends QueryFilterSelectionOptionProps = Q
1530
1558
  */
1531
1559
  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;
1532
1560
 
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
+
1533
1578
  type ParamTypeDynamicDataProviderProps = {
1534
1579
  /** Child components of the provider. Variables-using components, such as ParameterVariables, can be used here. */
1535
1580
  children: ReactNode;
@@ -1721,4 +1766,4 @@ type ContentDataResourceLocaleInfoProps = {
1721
1766
  };
1722
1767
  declare function useContentDataResourceLocaleInfo({ locale, setLocale, dynamicInputs, }: ContentDataResourceLocaleInfoProps): ContentDataResourceLocaleInfoResult;
1723
1768
 
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 };
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 };
package/dist/index.d.ts CHANGED
@@ -391,6 +391,8 @@ 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;
394
396
  /**
395
397
  * Wrapper for data resource locations. Provides read-only access to dynamic inputs as if they were variables,
396
398
  * using variables-aware components (i.e. InputVariables). This simplifies building dynamic-input-aware editors,
@@ -1189,54 +1191,6 @@ type ObjectSearchContainerProps = {
1189
1191
  * @example <ObjectSearchContainer searchFilters={<>your component</>} resultList={<>your result list component<>} onSave={yourSaveAction} onCancel={yourCancelAction} /> */
1190
1192
  declare const ObjectSearchContainer: ({ label, enableDynamicInputToResultId, searchFilters, resultList, children, }: ObjectSearchContainerProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
1191
1193
 
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
-
1240
1194
  type SearchQueryProps<TExtraFilters = unknown> = {
1241
1195
  /** sets the content type in the search context */
1242
1196
  contentType?: string;
@@ -1244,6 +1198,7 @@ type SearchQueryProps<TExtraFilters = unknown> = {
1244
1198
  keyword?: string;
1245
1199
  /** sets the locale in the search context */
1246
1200
  locale?: string;
1201
+ dynamicEntryId?: string;
1247
1202
  } & TExtraFilters;
1248
1203
  type SelectedItemProps<TExtraProps = unknown> = {
1249
1204
  /** sets the id value */
@@ -1313,18 +1268,91 @@ type ObjectSearchContextProps<TExtraFilters = unknown, TExtraItemProps = unknown
1313
1268
  /** current list of results in state */
1314
1269
  list: ItemListProps<TExtraItemProps>;
1315
1270
  /** function that sets the list of items to state */
1316
- onSetList: (value: ItemListProps) => void;
1271
+ onSetList?: (value: ItemListProps) => void;
1317
1272
  /** is multi items selection allowed or not */
1318
1273
  isMulti: boolean;
1274
+ localeOptions?: {
1275
+ label: string;
1276
+ value: string;
1277
+ }[];
1278
+ enableFilterByLocale?: boolean;
1279
+ isListLoading?: boolean;
1280
+ isSelectedItemsListLoading?: boolean;
1281
+ dynamicEntryId?: string;
1319
1282
  };
1283
+ declare const ObjectSearchContext: React$1.Context<ObjectSearchContextProps<unknown, unknown>>;
1320
1284
  type ObjectSearchProviderProps = {
1321
1285
  children: ReactNode;
1322
1286
  currentlySelectedItems?: Array<SelectedItemProps>;
1287
+ searchResultList?: Array<SelectedItemProps>;
1323
1288
  isMulti?: boolean;
1324
1289
  defaultQuery?: SearchQueryProps;
1325
1290
  };
1326
1291
  declare const ObjectSearchProvider: ({ currentlySelectedItems, isMulti, children, defaultQuery, }: ObjectSearchProviderProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
1327
1292
  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;
1328
1356
 
1329
1357
  type ObjectSearchListItemProps = SelectedItemProps & {
1330
1358
  /** sets the content type value, this is normally used for subtitles e.g. Kitchens */
@@ -1530,6 +1558,23 @@ type QueryFilterProps<TSelectOptions extends QueryFilterSelectionOptionProps = Q
1530
1558
  */
1531
1559
  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;
1532
1560
 
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
+
1533
1578
  type ParamTypeDynamicDataProviderProps = {
1534
1579
  /** Child components of the provider. Variables-using components, such as ParameterVariables, can be used here. */
1535
1580
  children: ReactNode;
@@ -1721,4 +1766,4 @@ type ContentDataResourceLocaleInfoProps = {
1721
1766
  };
1722
1767
  declare function useContentDataResourceLocaleInfo({ locale, setLocale, dynamicInputs, }: ContentDataResourceLocaleInfoProps): ContentDataResourceLocaleInfoResult;
1723
1768
 
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 };
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 };