@uniformdev/mesh-sdk-react 18.34.0 → 18.34.1-alpha.57
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 +352 -13
- package/dist/index.esm.js +761 -23
- package/dist/index.js +798 -47
- package/dist/index.mjs +761 -23
- 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';
|
|
@@ -562,6 +562,345 @@ type MeshAppProps = {
|
|
|
562
562
|
};
|
|
563
563
|
declare const MeshApp: React__default.FC<React__default.PropsWithChildren<MeshAppProps>>;
|
|
564
564
|
|
|
565
|
+
type DataRefreshButtonProps = HTMLAttributes<HTMLButtonElement> & {
|
|
566
|
+
/** sets the button text */
|
|
567
|
+
buttonText: string;
|
|
568
|
+
/** shows or hides the loading indicator when retrieving data */
|
|
569
|
+
isLoading: boolean;
|
|
570
|
+
/** sets the onClick function */
|
|
571
|
+
onRefreshData: () => void;
|
|
572
|
+
};
|
|
573
|
+
/**
|
|
574
|
+
* @description The data refresh button is a UI component to indicate to users a request for data is taking place
|
|
575
|
+
* @example <DataRefreshButton buttonText="my button" isLoading /> */
|
|
576
|
+
declare const DataRefreshButton: ({ buttonText, isLoading, onRefreshData, ...props }: DataRefreshButtonProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
577
|
+
|
|
578
|
+
type ObjectSearchContainerProps = {
|
|
579
|
+
/** a child node that places components within the search location */
|
|
580
|
+
searchFilters: ReactNode;
|
|
581
|
+
/** a child node that places components within a scrollable list location */
|
|
582
|
+
resultList?: ReactNode;
|
|
583
|
+
/** allows any child element */
|
|
584
|
+
children?: ReactNode;
|
|
585
|
+
};
|
|
586
|
+
/**
|
|
587
|
+
* @description Object search container is an opinionated layout for search parameters and retrieved results
|
|
588
|
+
* @example <ObjectSearchContainer searchFilters={<>your component</>} resultList={<>your result list component<>} onSave={yourSaveAction} onCancel={yourCancelAction} /> */
|
|
589
|
+
declare const ObjectSearchContainer: ({ searchFilters, resultList, children, }: ObjectSearchContainerProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
590
|
+
|
|
591
|
+
type ObjectSearchFilterProps = {
|
|
592
|
+
/** shows or hides the required content type select option */
|
|
593
|
+
requireContentType?: boolean;
|
|
594
|
+
/** sets the text for the required content type select option
|
|
595
|
+
* @default 'All content types'
|
|
596
|
+
*/
|
|
597
|
+
typeSelectorAllTypesOptionText?: string;
|
|
598
|
+
/** sets the select input value label text
|
|
599
|
+
* @default 'Content Type Select'
|
|
600
|
+
*/
|
|
601
|
+
selectLabel?: string;
|
|
602
|
+
/** sets the select input options */
|
|
603
|
+
selectOptions: Array<{
|
|
604
|
+
id: string;
|
|
605
|
+
name?: string;
|
|
606
|
+
label: string;
|
|
607
|
+
}>;
|
|
608
|
+
/** sets the search input name value
|
|
609
|
+
* @default 'searchText'
|
|
610
|
+
*/
|
|
611
|
+
searchInputName?: string;
|
|
612
|
+
/** sets the search input placeholder text
|
|
613
|
+
* @default 'Enter keyword to narrow your results'
|
|
614
|
+
*/
|
|
615
|
+
searchInputPlaceholderText?: string;
|
|
616
|
+
};
|
|
617
|
+
/**
|
|
618
|
+
* @description Object search filter is an opinionated filter that has pre-defined query and setQuery functions
|
|
619
|
+
* that can be extended with custom fuctions
|
|
620
|
+
* @example <ObjectSearchFilter selectOptions={[{ id: 'id value', name: 'name value'}]} /> */
|
|
621
|
+
declare const ObjectSearchFilter: ({ requireContentType, typeSelectorAllTypesOptionText, searchInputName, searchInputPlaceholderText, selectLabel, selectOptions, }: ObjectSearchFilterProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
622
|
+
|
|
623
|
+
type ObjectSearchFilterContainerProps = {
|
|
624
|
+
/** sets the title for the container */
|
|
625
|
+
label: string;
|
|
626
|
+
/** sets child components in an opinionated layout */
|
|
627
|
+
children?: React.ReactNode;
|
|
628
|
+
};
|
|
629
|
+
/**
|
|
630
|
+
* @description an opinionated layout for search filters
|
|
631
|
+
* @example <ObjectSearchFilterContainer label="my label"><input type="text" aria-label="my input" /></ObjectSearchFilterContainer>
|
|
632
|
+
*/
|
|
633
|
+
declare const ObjectSearchFilterContainer: ({ label, children }: ObjectSearchFilterContainerProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
634
|
+
|
|
635
|
+
type SearchQueryProps = {
|
|
636
|
+
/** sets the content type in the search context */
|
|
637
|
+
contentType?: string;
|
|
638
|
+
/** sets the keyword search in the search context */
|
|
639
|
+
keyword?: string;
|
|
640
|
+
};
|
|
641
|
+
type SelectedItemExtendedProps = {
|
|
642
|
+
[key: string]: unknown;
|
|
643
|
+
};
|
|
644
|
+
type SelectedItemProps<TProps extends SelectedItemExtendedProps = SelectedItemExtendedProps> = {
|
|
645
|
+
/** sets the id value */
|
|
646
|
+
id: string;
|
|
647
|
+
/** sets the title value */
|
|
648
|
+
title: string;
|
|
649
|
+
/** sets the name valu, sometimes used for products */
|
|
650
|
+
name?: string;
|
|
651
|
+
/** sets the subtitle value */
|
|
652
|
+
subtitle?: string;
|
|
653
|
+
/** sets the content type value */
|
|
654
|
+
contentType?: string | string[];
|
|
655
|
+
/** sets the created date value using TimeAgo to transform the date */
|
|
656
|
+
createdAt?: TDate;
|
|
657
|
+
/** sets the image src */
|
|
658
|
+
imageUrl?: string;
|
|
659
|
+
/** sets the link icon */
|
|
660
|
+
editLinkIcon?: string | React.ComponentType<{
|
|
661
|
+
className?: string;
|
|
662
|
+
}>;
|
|
663
|
+
/** sets the link href value to an external source */
|
|
664
|
+
editLink?: string;
|
|
665
|
+
/** sets the published date value using TimeAgo to transform the date */
|
|
666
|
+
publishedAt?: TDate;
|
|
667
|
+
/** sets the publish status */
|
|
668
|
+
publishStatus?: {
|
|
669
|
+
/** sets the text value of the publish badge */
|
|
670
|
+
text: string;
|
|
671
|
+
/** sets the theme value of the publish badge
|
|
672
|
+
* @default 'unimportant'
|
|
673
|
+
*/
|
|
674
|
+
theme?: BadgeThemeProps;
|
|
675
|
+
};
|
|
676
|
+
/** sets any additional meta data */
|
|
677
|
+
metadata?: Record<string, string>;
|
|
678
|
+
/** allows for child react elements to be nested in the popover */
|
|
679
|
+
popoverData?: ReactNode;
|
|
680
|
+
} & TProps;
|
|
681
|
+
type ItemsProp = Array<SelectedItemProps & Record<string, unknown>>;
|
|
682
|
+
type ItemListProps<TList extends ItemsProp = ItemsProp> = {
|
|
683
|
+
items?: TList;
|
|
684
|
+
[key: string]: unknown;
|
|
685
|
+
};
|
|
686
|
+
type ObjectSearchContextProps = {
|
|
687
|
+
/** function that updates / sets the search query state */
|
|
688
|
+
onSetQuery: (value: SearchQueryProps) => void;
|
|
689
|
+
/** current search query state */
|
|
690
|
+
query: SearchQueryProps;
|
|
691
|
+
/** function that sets the selected items to state */
|
|
692
|
+
onSelectItem: (selectedResult: any) => void;
|
|
693
|
+
/** function that clears all selected items from state */
|
|
694
|
+
onRemoveAllSelectedItems: () => void;
|
|
695
|
+
/** current selected items in state */
|
|
696
|
+
selectedListItems: Array<SelectedItemProps>;
|
|
697
|
+
/** current list of results in state */
|
|
698
|
+
list: ItemListProps;
|
|
699
|
+
/** function that sets the list of items to state */
|
|
700
|
+
onSetList: (value: ItemListProps) => void;
|
|
701
|
+
};
|
|
702
|
+
type ObjectSearchProviderProps = {
|
|
703
|
+
children: ReactNode;
|
|
704
|
+
currentlySelectedItems?: Array<SelectedItemProps>;
|
|
705
|
+
};
|
|
706
|
+
declare const ObjectSearchProvider: ({ currentlySelectedItems, children }: ObjectSearchProviderProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
707
|
+
declare const useObjectSearchContext: () => {
|
|
708
|
+
/** function that updates / sets the search query state */
|
|
709
|
+
onSetQuery: (value: SearchQueryProps) => void;
|
|
710
|
+
/** current search query state */
|
|
711
|
+
query: SearchQueryProps;
|
|
712
|
+
/** function that sets the selected items to state */
|
|
713
|
+
onSelectItem: (selectedResult: any) => void;
|
|
714
|
+
/** function that clears all selected items from state */
|
|
715
|
+
onRemoveAllSelectedItems: () => void;
|
|
716
|
+
/** current selected items in state */
|
|
717
|
+
selectedListItems: Array<SelectedItemProps>;
|
|
718
|
+
/** current list of results in state */
|
|
719
|
+
list: ItemListProps;
|
|
720
|
+
/** function that sets the list of items to state */
|
|
721
|
+
onSetList: (value: ItemListProps) => void;
|
|
722
|
+
};
|
|
723
|
+
|
|
724
|
+
type ObjectSearchListItemProps = SelectedItemProps & {
|
|
725
|
+
/** sets the content type value, this is normally used for subtitles e.g. Kitchens */
|
|
726
|
+
contentType?: string | string[];
|
|
727
|
+
/** sets image parameters */
|
|
728
|
+
image?: {
|
|
729
|
+
/** sets the src valuue */
|
|
730
|
+
src: string;
|
|
731
|
+
/** sets the alt text value */
|
|
732
|
+
alt: string;
|
|
733
|
+
/** set the width attribute of the image
|
|
734
|
+
* if both width and height are set the image loading attribute is set to `lazy`
|
|
735
|
+
*/
|
|
736
|
+
width?: number;
|
|
737
|
+
/** set the height attribute of the image
|
|
738
|
+
* if both width and height are set the image loading attribute is set to `lazy`
|
|
739
|
+
*/
|
|
740
|
+
height?: number;
|
|
741
|
+
};
|
|
742
|
+
/** sets the function call on the role="button" wrapping element */
|
|
743
|
+
onSelect?: (data?: Record<string, unknown>) => void;
|
|
744
|
+
/** allows child components within the popover data */
|
|
745
|
+
popoverData?: React$1.ReactNode;
|
|
746
|
+
/** allows authors to add any child component that is not controlled by Uniform */
|
|
747
|
+
children?: React$1.ReactNode;
|
|
748
|
+
/** sets whether multiple entries can be added to the results list context
|
|
749
|
+
* @default false
|
|
750
|
+
*/
|
|
751
|
+
isMulti?: boolean;
|
|
752
|
+
};
|
|
753
|
+
/**
|
|
754
|
+
* @description entry search list item is an opinionated UI component best used for initial retrieved results
|
|
755
|
+
* @example <ObjectSearchListItem id="my-result-item" title="title" popoverData={<p>some data info</p>}><div>example of uncontrolled content</div></ObjectSearchListItem> */
|
|
756
|
+
declare const ObjectSearchListItem: ({ id, title, contentType, image, popoverData, onSelect, isMulti, children, ...props }: ObjectSearchListItemProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
757
|
+
/**
|
|
758
|
+
* An opinionated loading skeleton component best used with ObjectSearchListItem
|
|
759
|
+
* @example <ObjectSearchListItemLoadingSkeleton />
|
|
760
|
+
*/
|
|
761
|
+
declare const ObjectSearchListItemLoadingSkeleton: () => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
762
|
+
|
|
763
|
+
type ObjectSearchResultItemProps = SelectedItemProps & {
|
|
764
|
+
/** sets additional remove functionality onto of default removal */
|
|
765
|
+
onRemove?: () => void;
|
|
766
|
+
/** sets whether to show or hide the remove button
|
|
767
|
+
* @default false
|
|
768
|
+
*/
|
|
769
|
+
hideRemoveButton?: boolean;
|
|
770
|
+
/** sets user defined child nodes that are uncontrolled by Uniform */
|
|
771
|
+
children?: ReactNode;
|
|
772
|
+
/** disable or enable drag and drop functionality
|
|
773
|
+
* @default false
|
|
774
|
+
*/
|
|
775
|
+
disableDnD?: boolean;
|
|
776
|
+
};
|
|
777
|
+
/**
|
|
778
|
+
* @description An opinionated result item, best used for selected results
|
|
779
|
+
* @example <ObjectSearchResultItem id="my-result" title="title" />
|
|
780
|
+
*/
|
|
781
|
+
declare const ObjectSearchResultItem: ({ id, title, name, contentType, popoverData, publishStatus, editLinkIcon, editLink, imageUrl, onRemove, createdAt, publishedAt, hideRemoveButton, disableDnD, children, }: ObjectSearchResultItemProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
782
|
+
|
|
783
|
+
type ObjectSearchResultItemButtonProps<THtml extends HTMLAttributes<HTMLElement> = HTMLAttributes<HTMLButtonElement>> = {
|
|
784
|
+
/** sets the button or link text value */
|
|
785
|
+
text: string;
|
|
786
|
+
/** sets the button or link icon */
|
|
787
|
+
icon?: string | React.ComponentType<{
|
|
788
|
+
className?: string;
|
|
789
|
+
}>;
|
|
790
|
+
} & THtml;
|
|
791
|
+
/**
|
|
792
|
+
* @description An opinionated button component best used within the ObjectSearchResultItem component
|
|
793
|
+
* @example <ObjectSearchResultItemButton text="button text" icon="/my-image.png" onClick={() => myFunction()} />
|
|
794
|
+
*/
|
|
795
|
+
declare const ObjectSearchResultItemButton: ({ text, icon, ...props }: ObjectSearchResultItemButtonProps<HTMLAttributes<HTMLButtonElement>>) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
796
|
+
/**
|
|
797
|
+
* @description An opinionated link component styled the same of the ObjectSearchResultItemButton component,
|
|
798
|
+
* that automatically sets the target and rel attributes. Best used within the ObjectSearchResultItem component
|
|
799
|
+
* @example <LinkButton text="link text" icon="/my-image.png" />
|
|
800
|
+
*/
|
|
801
|
+
declare const LinkButton: ({ text, icon, ...props }: ObjectSearchResultItemButtonProps<Omit<AnchorHTMLAttributes<HTMLAnchorElement>, 'target' | 'rel'>>) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
802
|
+
|
|
803
|
+
type ObjectSearchResultListProps<TRenderComponent extends SelectedItemProps = SelectedItemProps> = {
|
|
804
|
+
/** sets the result label value
|
|
805
|
+
* @default 'Selected'
|
|
806
|
+
*/
|
|
807
|
+
resultLabelText?: string;
|
|
808
|
+
/** sets the on remove button click action */
|
|
809
|
+
onRemoveAllSelected?: () => void;
|
|
810
|
+
/** sets the remove button text
|
|
811
|
+
* @default 'Remove all'
|
|
812
|
+
*/
|
|
813
|
+
removeButtonText?: string;
|
|
814
|
+
/** sets whether to show or hide the remove button
|
|
815
|
+
* @default false
|
|
816
|
+
*/
|
|
817
|
+
hideRemoveButton?: boolean;
|
|
818
|
+
/** allows additional buttons to be added to the result title group */
|
|
819
|
+
additionalButtons?: React.ReactNode;
|
|
820
|
+
/** allows placing child components within the result list area */
|
|
821
|
+
renderResultComponent?: (value: TRenderComponent) => React.ReactNode;
|
|
822
|
+
/** disable or enable drag and drop functionality
|
|
823
|
+
* @default false
|
|
824
|
+
*/
|
|
825
|
+
disableDnD?: boolean;
|
|
826
|
+
/** sets the draggable id value */
|
|
827
|
+
multiSelectId?: string;
|
|
828
|
+
};
|
|
829
|
+
/**
|
|
830
|
+
* @description An opinionated result list UI component that has built in drag and drop functionality and removal of all selected items from context.
|
|
831
|
+
* The result item component defaults to <ObjectSearchResultItem {...props} />, however this can be overridden with any other UI component and still
|
|
832
|
+
* maintain drag and drop functionality
|
|
833
|
+
* @example <ObjectSearchResultList id="my-id" title="title" renderResultComponent={(values) => <CustomComponent {...values} />} />
|
|
834
|
+
*/
|
|
835
|
+
declare const ObjectSearchResultList: ({ resultLabelText, removeButtonText, onRemoveAllSelected, hideRemoveButton, additionalButtons, renderResultComponent, multiSelectId, disableDnD, }: ObjectSearchResultListProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
836
|
+
|
|
837
|
+
type QueryFilterSearchProps = {
|
|
838
|
+
/** sets the count value */
|
|
839
|
+
count: number;
|
|
840
|
+
/** sets the sortBy filter value */
|
|
841
|
+
sortBy: string;
|
|
842
|
+
/** sets the sortOrder filter value */
|
|
843
|
+
sortOrder: string;
|
|
844
|
+
};
|
|
845
|
+
type QuertFilterSelectionOptionProps = Array<{
|
|
846
|
+
id: string;
|
|
847
|
+
name: string;
|
|
848
|
+
label: string;
|
|
849
|
+
}>;
|
|
850
|
+
type QueryFilterProps<TSelectOptions extends QuertFilterSelectionOptionProps = QuertFilterSelectionOptionProps> = {
|
|
851
|
+
/** sets the query filter title
|
|
852
|
+
* @default 'Configure Query'
|
|
853
|
+
*/
|
|
854
|
+
queryFilterTitle?: string;
|
|
855
|
+
/** sets the content type all selected options label
|
|
856
|
+
* @default 'All content types'
|
|
857
|
+
*/
|
|
858
|
+
typeSelectorAllTypesOptionText?: string;
|
|
859
|
+
/** sets the content type label value
|
|
860
|
+
* @default 'Filter by content type'
|
|
861
|
+
*/
|
|
862
|
+
contentTypeLabel?: string;
|
|
863
|
+
/** sets the content type select options */
|
|
864
|
+
contentTypeOptions: TSelectOptions;
|
|
865
|
+
/** sets whether the content type filter is required */
|
|
866
|
+
requireContentType?: boolean;
|
|
867
|
+
/** sets the count label value
|
|
868
|
+
* @default 'Count'
|
|
869
|
+
*/
|
|
870
|
+
countLabel?: string;
|
|
871
|
+
/** sets the count value or items to show
|
|
872
|
+
* @default 5
|
|
873
|
+
*/
|
|
874
|
+
countValue?: number;
|
|
875
|
+
/** sets the sort label text
|
|
876
|
+
* @default 'Sort'
|
|
877
|
+
*/
|
|
878
|
+
sortLabel?: string;
|
|
879
|
+
/** sets the sort select options value */
|
|
880
|
+
sortOptions: TSelectOptions;
|
|
881
|
+
/** sets the sort order lable value
|
|
882
|
+
* @default 'Sort Order'
|
|
883
|
+
*/
|
|
884
|
+
sortOrderLabel?: string;
|
|
885
|
+
/** sets the sort order select options value */
|
|
886
|
+
sortOrderOptions: TSelectOptions;
|
|
887
|
+
/** sets the search input name value
|
|
888
|
+
* @default 'searchText'
|
|
889
|
+
*/
|
|
890
|
+
searchInputName?: string;
|
|
891
|
+
/** sets the search input placeholder text
|
|
892
|
+
* @default 'Enter keyword to narrow your results'
|
|
893
|
+
*/
|
|
894
|
+
searchInputPlaceholderText?: string;
|
|
895
|
+
/** allows for additional child components, for example more input components */
|
|
896
|
+
children?: ReactNode;
|
|
897
|
+
};
|
|
898
|
+
/**
|
|
899
|
+
* @description An opinionated multi query filter UI component, best used for querying product data or more complex scenarios
|
|
900
|
+
* @example <QueryFilter contentTypeOptions={[{ id: 'id', name: 'name' }]} sortOptions={[{ id: 'id', name: 'name' }]} sortOrderOptions={[{ id: 'id', name: 'name' }]} />
|
|
901
|
+
*/
|
|
902
|
+
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;
|
|
903
|
+
|
|
565
904
|
/** Editor component to let you write a request body for POST requests */
|
|
566
905
|
declare function RequestBody(): _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
567
906
|
|
|
@@ -592,7 +931,7 @@ type RequestData = {
|
|
|
592
931
|
method?: string;
|
|
593
932
|
body?: string;
|
|
594
933
|
};
|
|
595
|
-
type RequestProviderProps = React.PropsWithChildren<{
|
|
934
|
+
type RequestProviderProps = React$1.PropsWithChildren<{
|
|
596
935
|
value: RequestData;
|
|
597
936
|
onChange: (delegate: (oldValue: RequestData) => RequestData) => void;
|
|
598
937
|
}>;
|
|
@@ -629,12 +968,12 @@ type RequestContext = {
|
|
|
629
968
|
declare function RequestProvider({ value, onChange, children }: RequestProviderProps): _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
630
969
|
declare function useRequest(): RequestContext;
|
|
631
970
|
|
|
632
|
-
type RequestTypeContainerProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
971
|
+
type RequestTypeContainerProps = React$1.HTMLAttributes<HTMLDivElement> & {
|
|
633
972
|
/**sets the background color of the container
|
|
634
973
|
* @default 'transparent'
|
|
635
974
|
*/
|
|
636
975
|
bgColor?: 'transparent' | 'var(--gray-100)';
|
|
637
|
-
children: React.ReactNode;
|
|
976
|
+
children: React$1.ReactNode;
|
|
638
977
|
};
|
|
639
978
|
/**
|
|
640
979
|
* @description a container to layout content in a 2 column grid format = 12ch 1fr
|
|
@@ -747,4 +1086,4 @@ declare function useUniformMeshSdk(): _uniformdev_mesh_sdk.UniformMeshSDK;
|
|
|
747
1086
|
*/
|
|
748
1087
|
declare function createLocationValidator<TSetValue>(setValue: SetLocationValueDispatch<TSetValue>, validate: (newValue: TSetValue, currentResult: SetValueOptions | undefined) => SetValueOptions): SetLocationValueDispatch<TSetValue>;
|
|
749
1088
|
|
|
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 };
|
|
1089
|
+
export { BaseRequestData, Brand, DamItem, DamSelectedItem, DamSelectedItemProps, DataRefreshButton, DataRefreshButtonProps, 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, ItemListProps, LinkButton, MeshApp, MeshAppProps, NoResultsProps, ObjectSearchContainer, ObjectSearchContainerProps, ObjectSearchContextProps, ObjectSearchFilter, ObjectSearchFilterContainer, ObjectSearchFilterContainerProps, ObjectSearchFilterProps, ObjectSearchListItem, ObjectSearchListItemLoadingSkeleton, ObjectSearchListItemProps, ObjectSearchProvider, ObjectSearchProviderProps, ObjectSearchResultItem, ObjectSearchResultItemButton, ObjectSearchResultItemButtonProps, ObjectSearchResultItemProps, ObjectSearchResultList, ObjectSearchResultListProps, 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, useInitializeUniformMeshSdk, useMeshLocation, useObjectSearchContext, useProductQueryContext, useProductSearchContext, useRequest, useRequestHeader, useRequestParameter, useUniformMeshLocation, useUniformMeshLocationContext, useUniformMeshSdk, useUniformMeshSdkContext, useVariables, variablesToList };
|