@uniformdev/mesh-sdk-react 18.29.0 → 18.30.1-alpha.16
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 +348 -13
- package/dist/index.esm.js +769 -34
- package/dist/index.js +808 -59
- package/dist/index.mjs +769 -34
- package/package.json +5 -5
package/dist/index.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import * as _emotion_react_types_jsx_namespace from '@emotion/react/types/jsx-namespace';
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
import React__default, { SVGProps, ComponentType, PropsWithChildren } from 'react';
|
|
2
|
+
import * as React$1 from 'react';
|
|
3
|
+
import React__default, { SVGProps, ComponentType, PropsWithChildren, HTMLAttributes, ReactNode, AnchorHTMLAttributes } from 'react';
|
|
4
4
|
import { TDate } from 'timeago.js';
|
|
5
5
|
import * as _emotion_react from '@emotion/react';
|
|
6
6
|
import { DataVariableDefinition, DataResourceVariables } from '@uniformdev/canvas';
|
|
7
7
|
import * as _uniformdev_mesh_sdk from '@uniformdev/mesh-sdk';
|
|
8
8
|
import { MeshLocation, SetValueOptions, DataSourceLocationValue, DataTypeLocationValue, UniformMeshSDK, MeshLocationCore } from '@uniformdev/mesh-sdk';
|
|
9
9
|
export * from '@uniformdev/mesh-sdk';
|
|
10
|
-
import { InputSelectProps } from '@uniformdev/design-system';
|
|
10
|
+
import { BadgeThemeProps, InputSelectProps } from '@uniformdev/design-system';
|
|
11
11
|
export { AddListButton, AddListButtonProps, Button, ButtonProps, Callout, CalloutProps, Heading, HeadingProps, Input, InputComboBox, InputComboBoxProps, InputKeywordSearch, InputProps, InputSelect, InputToggle, InputToggleProps, InputKeywordSearch as KeywordSearchInput, Label, LabelProps, LoadingIndicator, LoadingOverlay, Menu, MenuItem, MenuItemProps, MenuProps, ParameterGroup, ParameterGroupProps, ParameterImage, ParameterImageInner, ParameterImageProps, ParameterInput, ParameterInputInner, ParameterInputProps, ParameterLabel, ParameterLabelProps, ParameterMenuButton, ParameterMenuButtonProps, ParameterSelect, ParameterSelectInner, ParameterSelectProps, ParameterShell, ParameterShellContext, ParameterShellProps, ParameterTextarea, ParameterTextareaInner, ParameterTextareaProps, ParameterToggle, ParameterToggleInner, ParameterToggleProps, ScrollableList, ScrollableListItem, ScrollableListItemProps, ScrollableListProps, Switch, SwitchProps, Textarea, TextareaProps, Theme, ThemeProps, useParameterShell } from '@uniformdev/design-system';
|
|
12
12
|
|
|
13
13
|
declare const SvgCaution: (props: SVGProps<SVGSVGElement>) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
@@ -77,20 +77,20 @@ type EntrySearchProps<TResult extends EntrySearchResult = EntrySearchResult> = {
|
|
|
77
77
|
cursor?: string;
|
|
78
78
|
contentTypes?: EntrySearchContentType[];
|
|
79
79
|
selectedItems: TResult[] | undefined;
|
|
80
|
-
logoIcon: string | React.ComponentType<{
|
|
80
|
+
logoIcon: string | React$1.ComponentType<{
|
|
81
81
|
className?: string;
|
|
82
82
|
}>;
|
|
83
83
|
select: (items: TResult[], selectedContentType?: string) => void;
|
|
84
84
|
requireContentType?: boolean;
|
|
85
85
|
multiSelectId?: string;
|
|
86
86
|
multiSelect?: boolean;
|
|
87
|
-
rowComponent?: React.FC<EntrySearchRowProps<TResult>>;
|
|
88
|
-
selectedItemComponent?: React.FC<EntrySearchSelectedItemProps<TResult>>;
|
|
87
|
+
rowComponent?: React$1.FC<EntrySearchRowProps<TResult>>;
|
|
88
|
+
selectedItemComponent?: React$1.FC<EntrySearchSelectedItemProps<TResult>>;
|
|
89
89
|
onAddNew?: (type: EntrySearchContentType) => void;
|
|
90
90
|
onEditClosed?: (item: EntrySearchResult) => void;
|
|
91
91
|
onCancel?: () => void;
|
|
92
92
|
resultsLoading?: boolean;
|
|
93
|
-
noResultsComponent?: React.FC<{
|
|
93
|
+
noResultsComponent?: React$1.FC<{
|
|
94
94
|
searchText?: string;
|
|
95
95
|
selectedContentType?: string;
|
|
96
96
|
}>;
|
|
@@ -470,10 +470,10 @@ declare function VariableEditor({ variable, onSubmit, onCancel }: VariableEditor
|
|
|
470
470
|
|
|
471
471
|
declare function VariablesList(): _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
472
472
|
|
|
473
|
-
type VariablesProviderProps = React.PropsWithChildren<{
|
|
473
|
+
type VariablesProviderProps = React$1.PropsWithChildren<{
|
|
474
474
|
value: Record<string, DataVariableDefinition>;
|
|
475
475
|
onChange: (newValue: Record<string, DataVariableDefinition>) => void;
|
|
476
|
-
editVariableComponent?: React.ComponentType<VariableEditorProps>;
|
|
476
|
+
editVariableComponent?: React$1.ComponentType<VariableEditorProps>;
|
|
477
477
|
}>;
|
|
478
478
|
type VariablesAction = {
|
|
479
479
|
type: 'edit';
|
|
@@ -554,6 +554,341 @@ type DataTypeEditorProps = PropsWithChildren<{
|
|
|
554
554
|
*/
|
|
555
555
|
declare function DataTypeEditor({ onChange, children, editVariableComponent }: DataTypeEditorProps): _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
556
556
|
|
|
557
|
+
type DataRefreshButtonProps = HTMLAttributes<HTMLButtonElement> & {
|
|
558
|
+
/** sets the button text */
|
|
559
|
+
buttonText: string;
|
|
560
|
+
/** shows or hides the loading indicator when retrieving data */
|
|
561
|
+
isLoading: boolean;
|
|
562
|
+
/** sets the onClick function */
|
|
563
|
+
onRefreshData: () => void;
|
|
564
|
+
};
|
|
565
|
+
/**
|
|
566
|
+
* @description The data refresh button is a UI component to indicate to users a request for data is taking place
|
|
567
|
+
* @example <DataRefreshButton buttonText="my button" isLoading /> */
|
|
568
|
+
declare const DataRefreshButton: ({ buttonText, isLoading, onRefreshData, ...props }: DataRefreshButtonProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
569
|
+
|
|
570
|
+
type EntrySearchContainerProps = {
|
|
571
|
+
/** a child node that places components within the search location */
|
|
572
|
+
searchFilters: ReactNode;
|
|
573
|
+
/** a child node that places components within a scrollable list location */
|
|
574
|
+
resultList?: ReactNode;
|
|
575
|
+
/** allows any child element */
|
|
576
|
+
children?: ReactNode;
|
|
577
|
+
/** function for the save action */
|
|
578
|
+
onSave?: () => void;
|
|
579
|
+
/** function fort he cancel action */
|
|
580
|
+
onCancel?: () => void;
|
|
581
|
+
};
|
|
582
|
+
/**
|
|
583
|
+
* @description Entry search container is an opinionated layout for search parameters and retrieved results
|
|
584
|
+
* @example <EntrySearchContainer searchFilters={<>your component</>} resultList={<>your result list component<>} onSave={yourSaveAction} onCancel={yourCancelAction} /> */
|
|
585
|
+
declare const EntrySearchContainer: ({ searchFilters, resultList, onSave, onCancel, children, }: EntrySearchContainerProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
586
|
+
|
|
587
|
+
type EntrySearchFilterProps = {
|
|
588
|
+
/** shows or hides the required content type select option */
|
|
589
|
+
requireContentType?: boolean;
|
|
590
|
+
/** sets the text for the required content type select option
|
|
591
|
+
* @default 'All content types'
|
|
592
|
+
*/
|
|
593
|
+
typeSelectorAllTypesOptionText?: string;
|
|
594
|
+
/** sets the select input value label text
|
|
595
|
+
* @default 'Content Type Select'
|
|
596
|
+
*/
|
|
597
|
+
selectLabel?: string;
|
|
598
|
+
/** sets the select input options */
|
|
599
|
+
selectOptions: Array<{
|
|
600
|
+
id: string;
|
|
601
|
+
name?: string;
|
|
602
|
+
label: string;
|
|
603
|
+
}>;
|
|
604
|
+
/** sets the search input name value
|
|
605
|
+
* @default 'searchText'
|
|
606
|
+
*/
|
|
607
|
+
searchInputName?: string;
|
|
608
|
+
/** sets the search input placeholder text
|
|
609
|
+
* @default 'Enter keyword to narrow your results'
|
|
610
|
+
*/
|
|
611
|
+
searchInputPlaceholderText?: string;
|
|
612
|
+
};
|
|
613
|
+
/**
|
|
614
|
+
* @description Entry search filter is an opinionated filter that has pre-defined query and setQuery functions
|
|
615
|
+
* that can be extended with custom fuctions
|
|
616
|
+
* @example <EntrySearchFilter selectOptions={[{ id: 'id value', name: 'name value'}]} /> */
|
|
617
|
+
declare const EntrySearchFilter: ({ requireContentType, typeSelectorAllTypesOptionText, searchInputName, searchInputPlaceholderText, selectLabel, selectOptions, }: EntrySearchFilterProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
618
|
+
|
|
619
|
+
type EntrySearchFilterContainerProps = {
|
|
620
|
+
/** sets the title for the container */
|
|
621
|
+
label: string;
|
|
622
|
+
/** sets child components in an opinionated layout */
|
|
623
|
+
children?: React.ReactNode;
|
|
624
|
+
};
|
|
625
|
+
/**
|
|
626
|
+
* @description an opinionated layout for search filters
|
|
627
|
+
* @example <EntrySearchFilterContainer label="my label"><input type="text" aria-label="my input" /></EntrySearchFilterContainer>
|
|
628
|
+
*/
|
|
629
|
+
declare const EntrySearchFilterContainer: ({ label, children }: EntrySearchFilterContainerProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
630
|
+
|
|
631
|
+
type SearchQueryProps = {
|
|
632
|
+
/** sets the content type in the search context */
|
|
633
|
+
contentType: string | undefined;
|
|
634
|
+
/** sets the keyword search in the search context */
|
|
635
|
+
keyword?: string;
|
|
636
|
+
};
|
|
637
|
+
type SelectedItemProps = {
|
|
638
|
+
/** sets the id value */
|
|
639
|
+
id: string;
|
|
640
|
+
/** sets the title value */
|
|
641
|
+
title: string;
|
|
642
|
+
/** sets the name valu, sometimes used for products */
|
|
643
|
+
name?: string;
|
|
644
|
+
/** sets the subtitle value */
|
|
645
|
+
subtitle?: string;
|
|
646
|
+
/** sets the content type value */
|
|
647
|
+
contentType?: string;
|
|
648
|
+
/** sets the created date value using TimeAgo to transform the date */
|
|
649
|
+
createdAt?: TDate;
|
|
650
|
+
/** sets the image src */
|
|
651
|
+
imageUrl?: string;
|
|
652
|
+
/** sets the link icon */
|
|
653
|
+
editLinkIcon?: string | React.ComponentType<{
|
|
654
|
+
className?: string;
|
|
655
|
+
}>;
|
|
656
|
+
/** sets the link href value to an external source */
|
|
657
|
+
editLink?: string;
|
|
658
|
+
/** sets the published date value using TimeAgo to transform the date */
|
|
659
|
+
publishedAt?: TDate;
|
|
660
|
+
/** sets the publish status */
|
|
661
|
+
publishStatus?: {
|
|
662
|
+
/** sets the text value of the publish badge */
|
|
663
|
+
text: string;
|
|
664
|
+
/** sets the theme value of the publish badge
|
|
665
|
+
* @default 'unimportant'
|
|
666
|
+
*/
|
|
667
|
+
theme?: BadgeThemeProps;
|
|
668
|
+
};
|
|
669
|
+
/** sets any additional meta data */
|
|
670
|
+
metadata?: Record<string, string>;
|
|
671
|
+
/** allows for child react elements to be nested in the popover */
|
|
672
|
+
popoverData?: ReactNode;
|
|
673
|
+
};
|
|
674
|
+
type ItemsProp = Array<SelectedItemProps & Record<string, unknown>>;
|
|
675
|
+
type ItemListProps<TList extends ItemsProp = ItemsProp> = {
|
|
676
|
+
items?: TList;
|
|
677
|
+
[key: string]: unknown;
|
|
678
|
+
};
|
|
679
|
+
type EntrySearchContextProps = {
|
|
680
|
+
/** function that updates / sets the search query state */
|
|
681
|
+
onSetQuery: (value: SearchQueryProps) => void;
|
|
682
|
+
/** current search query state */
|
|
683
|
+
query: SearchQueryProps;
|
|
684
|
+
/** function that sets the selected items to state */
|
|
685
|
+
onSelectItem: (selectedResult: any) => void;
|
|
686
|
+
/** function that clears all selected items from state */
|
|
687
|
+
onRemoveAllSelectedItems: () => void;
|
|
688
|
+
/** current selected items in state */
|
|
689
|
+
selectedListItems: Array<SelectedItemProps>;
|
|
690
|
+
/** current list of results in state */
|
|
691
|
+
list: ItemListProps;
|
|
692
|
+
/** function that sets the list of items to state */
|
|
693
|
+
onSetList: (value: ItemListProps) => void;
|
|
694
|
+
};
|
|
695
|
+
declare const EntrySearchContext: React$1.Context<EntrySearchContextProps>;
|
|
696
|
+
type EntrySearchProviderProps = {
|
|
697
|
+
children: ReactNode;
|
|
698
|
+
currentlySelectedItems?: Array<SelectedItemProps>;
|
|
699
|
+
};
|
|
700
|
+
declare const EntrySearchProvider: ({ currentlySelectedItems, children }: EntrySearchProviderProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
701
|
+
declare const useEntrySearchContext: () => {
|
|
702
|
+
/** function that updates / sets the search query state */
|
|
703
|
+
onSetQuery: (value: SearchQueryProps) => void;
|
|
704
|
+
/** current search query state */
|
|
705
|
+
query: SearchQueryProps;
|
|
706
|
+
/** function that sets the selected items to state */
|
|
707
|
+
onSelectItem: (selectedResult: any) => void;
|
|
708
|
+
/** function that clears all selected items from state */
|
|
709
|
+
onRemoveAllSelectedItems: () => void;
|
|
710
|
+
/** current selected items in state */
|
|
711
|
+
selectedListItems: Array<SelectedItemProps>;
|
|
712
|
+
/** current list of results in state */
|
|
713
|
+
list: ItemListProps;
|
|
714
|
+
/** function that sets the list of items to state */
|
|
715
|
+
onSetList: (value: ItemListProps) => void;
|
|
716
|
+
};
|
|
717
|
+
|
|
718
|
+
type EntrySearchListItemProps = SelectedItemProps & {
|
|
719
|
+
/** sets the content type value, this is normally used for subtitles e.g. Kitchens */
|
|
720
|
+
contentType?: string | string[];
|
|
721
|
+
/** sets image parameters */
|
|
722
|
+
image?: {
|
|
723
|
+
/** sets the src valuue */
|
|
724
|
+
src: string;
|
|
725
|
+
/** sets the alt text value */
|
|
726
|
+
alt: string;
|
|
727
|
+
/** set the width attribute of the image
|
|
728
|
+
* if both width and height are set the image loading attribute is set to `lazy`
|
|
729
|
+
*/
|
|
730
|
+
width?: number;
|
|
731
|
+
/** set the height attribute of the image
|
|
732
|
+
* if both width and height are set the image loading attribute is set to `lazy`
|
|
733
|
+
*/
|
|
734
|
+
height?: number;
|
|
735
|
+
};
|
|
736
|
+
/** sets the function call on the role="button" wrapping element */
|
|
737
|
+
onSelect?: (data?: Record<string, unknown>) => void;
|
|
738
|
+
/** allows child components within the popover data */
|
|
739
|
+
popoverData?: React$1.ReactNode;
|
|
740
|
+
/** allows authors to add any child component that is not controlled by Uniform */
|
|
741
|
+
children?: React$1.ReactNode;
|
|
742
|
+
/** sets whether multiple entries can be added to the results list context
|
|
743
|
+
* @default false
|
|
744
|
+
*/
|
|
745
|
+
isMulti?: boolean;
|
|
746
|
+
};
|
|
747
|
+
/**
|
|
748
|
+
* @description entry search list item is an opinionated UI component best used for initial retrieved results
|
|
749
|
+
* @example <EntrySearchListItem id="my-result-item" title="title" popoverData={<p>some data info</p>}><div>example of uncontrolled content</div></EntrySearchListItem> */
|
|
750
|
+
declare const EntrySearchListItem: ({ id, title, contentType, image, popoverData, onSelect, isMulti, children, ...props }: EntrySearchListItemProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
751
|
+
/**
|
|
752
|
+
* An opinionated loading skeleton component best used with EntrySearchListItem
|
|
753
|
+
* @example <EntrySearchListItemLoadingSkeleton />
|
|
754
|
+
*/
|
|
755
|
+
declare const EntrySearchListItemLoadingSkeleton: () => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
756
|
+
|
|
757
|
+
type EntrySearchResultItemProps = SelectedItemProps & {
|
|
758
|
+
/** sets additional remove functionality onto of default removal */
|
|
759
|
+
onRemove?: () => void;
|
|
760
|
+
/** sets whether to show or hide the remove button
|
|
761
|
+
* @default false
|
|
762
|
+
*/
|
|
763
|
+
hideRemoveButton?: boolean;
|
|
764
|
+
/** sets user defined child nodes that are uncontrolled by Uniform */
|
|
765
|
+
children?: ReactNode;
|
|
766
|
+
};
|
|
767
|
+
/**
|
|
768
|
+
* @description An opinionated result item, best used for selected results
|
|
769
|
+
* @example <EntrySearchResultItem id="my-result" title="title" />
|
|
770
|
+
*/
|
|
771
|
+
declare const EntrySearchResultItem: ({ id, title, name, contentType, popoverData, publishStatus, editLinkIcon, editLink, imageUrl, onRemove, createdAt, publishedAt, hideRemoveButton, children, }: EntrySearchResultItemProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
772
|
+
|
|
773
|
+
type EntrySearchResultItemButtonProps<THtml extends HTMLAttributes<HTMLElement> = HTMLAttributes<HTMLButtonElement>> = {
|
|
774
|
+
/** sets the button or link text value */
|
|
775
|
+
text: string;
|
|
776
|
+
/** sets the button or link icon */
|
|
777
|
+
icon?: string | React.ComponentType<{
|
|
778
|
+
className?: string;
|
|
779
|
+
}>;
|
|
780
|
+
} & THtml;
|
|
781
|
+
/**
|
|
782
|
+
* @description An opinionated button component best used within the EntrySearchResultItem component
|
|
783
|
+
* @example <EntrySearchResultItemButton text="button text" icon="/my-image.png" onClick={() => myFunction()} />
|
|
784
|
+
*/
|
|
785
|
+
declare const EntrySearchResultItemButton: ({ text, icon, ...props }: EntrySearchResultItemButtonProps<HTMLAttributes<HTMLButtonElement>>) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
786
|
+
/**
|
|
787
|
+
* @description An opinionated link component styled the same of the EntrySearchResultItemButton component,
|
|
788
|
+
* that automatically sets the target and rel attributes. Best used within the EntrySearchResultItem component
|
|
789
|
+
* @example <LinkButton text="link text" icon="/my-image.png" />
|
|
790
|
+
*/
|
|
791
|
+
declare const LinkButton: ({ text, icon, ...props }: EntrySearchResultItemButtonProps<Omit<AnchorHTMLAttributes<HTMLAnchorElement>, 'target' | 'rel'>>) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
792
|
+
|
|
793
|
+
type EntrySearchResultListProps<TRenderComponent extends SelectedItemProps = SelectedItemProps> = {
|
|
794
|
+
/** sets the result label value
|
|
795
|
+
* @default 'Selected'
|
|
796
|
+
*/
|
|
797
|
+
resultLabelText?: string;
|
|
798
|
+
/** sets the on remove button click action */
|
|
799
|
+
onRemoveAllSelected?: () => void;
|
|
800
|
+
/** sets the remove button text
|
|
801
|
+
* @default 'Remove all'
|
|
802
|
+
*/
|
|
803
|
+
removeButtonText?: string;
|
|
804
|
+
/** sets whether to show or hide the remove button
|
|
805
|
+
* @default false
|
|
806
|
+
*/
|
|
807
|
+
hideRemoveButton?: boolean;
|
|
808
|
+
/** allows additional buttons to be added to the result title group */
|
|
809
|
+
additionalButtons?: React.ReactNode;
|
|
810
|
+
/** allows placing child components within the result list area */
|
|
811
|
+
renderResultComponent?: (value: TRenderComponent) => React.ReactNode;
|
|
812
|
+
/** disable or enable drag and drop functionality
|
|
813
|
+
* @default false
|
|
814
|
+
*/
|
|
815
|
+
disableDnD?: boolean;
|
|
816
|
+
};
|
|
817
|
+
/**
|
|
818
|
+
* @description An opinionated result list UI component that has built in drag and drop functionality and removal of all selected items from context.
|
|
819
|
+
* The result item component defaults to <EntrySearchResultItem {...props} />, however this can be overridden with any other UI component and still
|
|
820
|
+
* maintain drag and drop functionality
|
|
821
|
+
* @example <EntrySearchResultList id="my-id" title="title" renderResultComponent={(values) => <CustomComponent {...values} />} />
|
|
822
|
+
*/
|
|
823
|
+
declare const EntrySearchResultList: ({ resultLabelText, removeButtonText, onRemoveAllSelected, hideRemoveButton, additionalButtons, renderResultComponent, disableDnD, }: EntrySearchResultListProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
824
|
+
|
|
825
|
+
type QueryFilterSearchProps = {
|
|
826
|
+
/** sets the count value */
|
|
827
|
+
count: number;
|
|
828
|
+
/** sets the sortBy filter value */
|
|
829
|
+
sortBy: string;
|
|
830
|
+
/** sets the sortOrder filter value */
|
|
831
|
+
sortOrder: string;
|
|
832
|
+
};
|
|
833
|
+
type QuertFilterSelectionOptionProps = Array<{
|
|
834
|
+
id: string;
|
|
835
|
+
name: string;
|
|
836
|
+
label: string;
|
|
837
|
+
}>;
|
|
838
|
+
type QueryFilterProps<TSelectOptions extends QuertFilterSelectionOptionProps = QuertFilterSelectionOptionProps> = {
|
|
839
|
+
/** sets the query filter title
|
|
840
|
+
* @default 'Configure Query'
|
|
841
|
+
*/
|
|
842
|
+
queryFilterTitle?: string;
|
|
843
|
+
/** sets the content type all selected options label
|
|
844
|
+
* @default 'All content types'
|
|
845
|
+
*/
|
|
846
|
+
typeSelectorAllTypesOptionText?: string;
|
|
847
|
+
/** sets the content type label value
|
|
848
|
+
* @default 'Filter by content type'
|
|
849
|
+
*/
|
|
850
|
+
contentTypeLabel?: string;
|
|
851
|
+
/** sets the content type select options */
|
|
852
|
+
contentTypeOptions: TSelectOptions;
|
|
853
|
+
/** sets whether the content type filter is required */
|
|
854
|
+
requireContentType?: boolean;
|
|
855
|
+
/** sets the count label value
|
|
856
|
+
* @default 'Count'
|
|
857
|
+
*/
|
|
858
|
+
countLabel?: string;
|
|
859
|
+
/** sets the count value or items to show
|
|
860
|
+
* @default 5
|
|
861
|
+
*/
|
|
862
|
+
countValue?: number;
|
|
863
|
+
/** sets the sort label text
|
|
864
|
+
* @default 'Sort'
|
|
865
|
+
*/
|
|
866
|
+
sortLabel?: string;
|
|
867
|
+
/** sets the sort select options value */
|
|
868
|
+
sortOptions: TSelectOptions;
|
|
869
|
+
/** sets the sort order lable value
|
|
870
|
+
* @default 'Sort Order'
|
|
871
|
+
*/
|
|
872
|
+
sortOrderLabel?: string;
|
|
873
|
+
/** sets the sort order select options value */
|
|
874
|
+
sortOrderOptions: TSelectOptions;
|
|
875
|
+
/** sets the search input name value
|
|
876
|
+
* @default 'searchText'
|
|
877
|
+
*/
|
|
878
|
+
searchInputName?: string;
|
|
879
|
+
/** sets the search input placeholder text
|
|
880
|
+
* @default 'Enter keyword to narrow your results'
|
|
881
|
+
*/
|
|
882
|
+
searchInputPlaceholderText?: string;
|
|
883
|
+
/** allows for additional child components, for example more input components */
|
|
884
|
+
children?: ReactNode;
|
|
885
|
+
};
|
|
886
|
+
/**
|
|
887
|
+
* @description An opinionated multi query filter UI component, best used for querying product data or more complex scenarios
|
|
888
|
+
* @example <QueryFilter contentTypeOptions={[{ id: 'id', name: 'name' }]} sortOptions={[{ id: 'id', name: 'name' }]} sortOrderOptions={[{ id: 'id', name: 'name' }]} />
|
|
889
|
+
*/
|
|
890
|
+
declare const QueryFilter: ({ requireContentType, queryFilterTitle, contentTypeLabel, typeSelectorAllTypesOptionText, contentTypeOptions, searchInputName, searchInputPlaceholderText, countLabel, countValue, sortLabel, sortOptions, sortOrderLabel, sortOrderOptions, children, }: QueryFilterProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
891
|
+
|
|
557
892
|
type MeshAppProps = {
|
|
558
893
|
loadingComponent?: React__default.ComponentType;
|
|
559
894
|
errorComponent?: React__default.ComponentType<{
|
|
@@ -592,7 +927,7 @@ type RequestData = {
|
|
|
592
927
|
method?: string;
|
|
593
928
|
body?: string;
|
|
594
929
|
};
|
|
595
|
-
type RequestProviderProps = React.PropsWithChildren<{
|
|
930
|
+
type RequestProviderProps = React$1.PropsWithChildren<{
|
|
596
931
|
value: RequestData;
|
|
597
932
|
onChange: (delegate: (oldValue: RequestData) => RequestData) => void;
|
|
598
933
|
}>;
|
|
@@ -629,12 +964,12 @@ type RequestContext = {
|
|
|
629
964
|
declare function RequestProvider({ value, onChange, children }: RequestProviderProps): _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
630
965
|
declare function useRequest(): RequestContext;
|
|
631
966
|
|
|
632
|
-
type RequestTypeContainerProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
967
|
+
type RequestTypeContainerProps = React$1.HTMLAttributes<HTMLDivElement> & {
|
|
633
968
|
/**sets the background color of the container
|
|
634
969
|
* @default 'transparent'
|
|
635
970
|
*/
|
|
636
971
|
bgColor?: 'transparent' | 'var(--gray-100)';
|
|
637
|
-
children: React.ReactNode;
|
|
972
|
+
children: React$1.ReactNode;
|
|
638
973
|
};
|
|
639
974
|
/**
|
|
640
975
|
* @description a container to layout content in a 2 column grid format = 12ch 1fr
|
|
@@ -747,4 +1082,4 @@ declare function useUniformMeshSdk(): _uniformdev_mesh_sdk.UniformMeshSDK;
|
|
|
747
1082
|
*/
|
|
748
1083
|
declare function createLocationValidator<TSetValue>(setValue: SetLocationValueDispatch<TSetValue>, validate: (newValue: TSetValue, currentResult: SetValueOptions | undefined) => SetValueOptions): SetLocationValueDispatch<TSetValue>;
|
|
749
1084
|
|
|
750
|
-
export { BaseRequestData, Brand, DamItem, DamSelectedItem, DamSelectedItemProps, DataResourceVariableRendererProps, DataResourceVariablesList, DataResourceVariablesListProps, DataSourceEditor, DataSourceEditorProps, DataTypeEditor, DataTypeEditorProps, DataVariableDefinitionWithName, DefaultSearchRow, DefaultSelectedItem, DispatchResult, EntrySearch, EntrySearchContentType, EntrySearchProps, EntrySearchQueryOptions, EntrySearchResult, EntrySearchRowProps, EntrySearchSelectedItemProps, GetProductOptions, GetProductsOptions, index as Icons, InputToken, InputVariables, InputVariablesProps, MeshApp, MeshAppProps, NoResultsProps, ProductCategory, ProductDynamicSelectorValue, ProductPreviewList, ProductQuery, ProductQueryCategory, ProductQueryContext, ProductQueryContextValue, ProductQueryProps, ProductSearch, ProductSearchContext, ProductSearchContextValue, ProductSearchProps, ProductSearchResult, ProductSearchResults, ProductSearchRow, ProductSelectedItem, RequestAction, RequestBody, RequestContext, RequestData, RequestHeaders, RequestMethodSelect, RequestParameter, RequestParameters, RequestParametersProps, RequestProvider, RequestProviderProps, RequestTypeContainer, RequestTypeContainerProps, RequestUrl, RequestUrlInput, ResolvableLoadingValue, SelectionField, SelectionFieldValue, SetLocationValueDispatch, SetLocationValueFunction, TextVariableRenderer, UniformMeshLocationContext, UniformMeshLocationContextProvider, UniformMeshLocationContextValue, UniformMeshSdkContext, UniformMeshSdkContextProvider, UniformMeshSdkContextValue, UseUniformMeshSdkOptions, VariableEditor, VariableEditorProps, VariablesAction, VariablesContext, VariablesList, VariablesProvider, VariablesProviderProps, badgeIcon, 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, 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, urlEncodeRequestParameter, urlEncodeRequestUrl, useInitializeUniformMeshSdk, useMeshLocation, useProductQueryContext, useProductSearchContext, useRequest, useRequestHeader, useRequestParameter, useUniformMeshLocation, useUniformMeshLocationContext, useUniformMeshSdk, useUniformMeshSdkContext, useVariables, variablesToList };
|
|
1085
|
+
export { BaseRequestData, Brand, DamItem, DamSelectedItem, DamSelectedItemProps, DataRefreshButton, DataRefreshButtonProps, DataResourceVariableRendererProps, DataResourceVariablesList, DataResourceVariablesListProps, DataSourceEditor, DataSourceEditorProps, DataTypeEditor, DataTypeEditorProps, DataVariableDefinitionWithName, DefaultSearchRow, DefaultSelectedItem, DispatchResult, EntrySearch, EntrySearchContainer, EntrySearchContainerProps, EntrySearchContentType, EntrySearchContext, EntrySearchContextProps, EntrySearchFilter, EntrySearchFilterContainer, EntrySearchFilterContainerProps, EntrySearchFilterProps, EntrySearchListItem, EntrySearchListItemLoadingSkeleton, EntrySearchListItemProps, EntrySearchProps, EntrySearchProvider, EntrySearchProviderProps, EntrySearchQueryOptions, EntrySearchResult, EntrySearchResultItem, EntrySearchResultItemButton, EntrySearchResultItemButtonProps, EntrySearchResultItemProps, EntrySearchResultList, EntrySearchResultListProps, EntrySearchRowProps, EntrySearchSelectedItemProps, GetProductOptions, GetProductsOptions, index as Icons, InputToken, InputVariables, InputVariablesProps, ItemListProps, LinkButton, MeshApp, MeshAppProps, NoResultsProps, ProductCategory, ProductDynamicSelectorValue, ProductPreviewList, ProductQuery, ProductQueryCategory, ProductQueryContext, ProductQueryContextValue, ProductQueryProps, ProductSearch, ProductSearchContext, ProductSearchContextValue, ProductSearchProps, ProductSearchResult, ProductSearchResults, ProductSearchRow, ProductSelectedItem, QueryFilter, QueryFilterProps, QueryFilterSearchProps, RequestAction, RequestBody, RequestContext, RequestData, RequestHeaders, RequestMethodSelect, RequestParameter, RequestParameters, RequestParametersProps, RequestProvider, RequestProviderProps, RequestTypeContainer, RequestTypeContainerProps, RequestUrl, RequestUrlInput, ResolvableLoadingValue, SearchQueryProps, SelectedItemProps, SelectionField, SelectionFieldValue, SetLocationValueDispatch, SetLocationValueFunction, TextVariableRenderer, UniformMeshLocationContext, UniformMeshLocationContextProvider, UniformMeshLocationContextValue, UniformMeshSdkContext, UniformMeshSdkContextProvider, UniformMeshSdkContextValue, UseUniformMeshSdkOptions, VariableEditor, VariableEditorProps, VariablesAction, VariablesContext, VariablesList, VariablesProvider, VariablesProviderProps, badgeIcon, 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, 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, urlEncodeRequestParameter, urlEncodeRequestUrl, useEntrySearchContext, useInitializeUniformMeshSdk, useMeshLocation, useProductQueryContext, useProductSearchContext, useRequest, useRequestHeader, useRequestParameter, useUniformMeshLocation, useUniformMeshLocationContext, useUniformMeshSdk, useUniformMeshSdkContext, useVariables, variablesToList };
|