@commercelayer/app-elements 5.5.4 → 5.7.0

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.
Files changed (216) hide show
  1. package/dist/CodeEditorComponent--5lVbv6t.js +720 -0
  2. package/dist/InputDateComponent-NpCZmpgY.js +4887 -0
  3. package/dist/RuleEngineComponent-BbIy4caP.js +1404 -0
  4. package/dist/dictionaries/customers.d.ts +1 -1
  5. package/dist/dictionaries/orders.d.ts +7 -7
  6. package/dist/dictionaries/promotions.d.ts +2 -2
  7. package/dist/dictionaries/returns.d.ts +4 -4
  8. package/dist/dictionaries/shipments.d.ts +4 -4
  9. package/dist/dictionaries/stockTransfers.d.ts +4 -4
  10. package/dist/dictionaries/types.d.ts +2 -2
  11. package/dist/fetchCoreResourcesSuggestions-DLZhtrDX.js +124 -0
  12. package/dist/helpers/appsNavigation.d.ts +2 -2
  13. package/dist/helpers/attachments.d.ts +1 -1
  14. package/dist/helpers/date.d.ts +13 -13
  15. package/dist/helpers/downloadJsonAsFile.d.ts +1 -1
  16. package/dist/helpers/resources.d.ts +4 -4
  17. package/dist/helpers/tracking.d.ts +4 -4
  18. package/dist/hooks/useClickAway.d.ts +1 -1
  19. package/dist/hooks/useEditMetadataOverlay.d.ts +3 -3
  20. package/dist/hooks/useEditTagsOverlay.d.ts +2 -2
  21. package/dist/hooks/useIsChanged.d.ts +1 -1
  22. package/dist/{main-DR-JViDx.js → main-BqlK85T7.js} +26963 -28780
  23. package/dist/main.d.ts +60 -60
  24. package/dist/main.js +1 -1
  25. package/dist/{parseISO-BGAQxnde.js → parseISO-B-bk2SyC.js} +17 -17
  26. package/dist/providers/CoreSdkProvider/CoreSdkProvider.d.ts +1 -1
  27. package/dist/providers/CoreSdkProvider/makeSdkClient.d.ts +1 -1
  28. package/dist/providers/CoreSdkProvider/useCoreApi.d.ts +1 -1
  29. package/dist/providers/GTMProvider.d.ts +1 -1
  30. package/dist/providers/TokenProvider/MockTokenProvider.d.ts +1 -1
  31. package/dist/providers/TokenProvider/TokenProvider.d.ts +1 -1
  32. package/dist/providers/TokenProvider/getAccessTokenFromUrl.d.ts +1 -1
  33. package/dist/providers/TokenProvider/index.d.ts +1 -1
  34. package/dist/providers/TokenProvider/reducer.d.ts +2 -2
  35. package/dist/providers/TokenProvider/storage.d.ts +4 -4
  36. package/dist/providers/TokenProvider/types.d.ts +10 -10
  37. package/dist/providers/TokenProvider/url.d.ts +1 -1
  38. package/dist/providers/TokenProvider/validateToken.d.ts +2 -2
  39. package/dist/providers/createApp.d.ts +1 -1
  40. package/dist/style.css +1 -1
  41. package/dist/tailwind.config.js +141 -142
  42. package/dist/ui/atoms/A.d.ts +1 -1
  43. package/dist/ui/atoms/Alert.d.ts +1 -1
  44. package/dist/ui/atoms/Avatar.d.ts +3 -3
  45. package/dist/ui/atoms/Avatar.utils.d.ts +18 -18
  46. package/dist/ui/atoms/AvatarLetter/colors.d.ts +1 -1
  47. package/dist/ui/atoms/Badge/Badge.d.ts +3 -3
  48. package/dist/ui/atoms/Badge/badgeVariants.d.ts +1 -1
  49. package/dist/ui/atoms/ButtonFilter.d.ts +1 -1
  50. package/dist/ui/atoms/Card.d.ts +15 -11
  51. package/dist/ui/atoms/CodeBlock.d.ts +1 -1
  52. package/dist/ui/atoms/EmptyState.d.ts +1 -1
  53. package/dist/ui/atoms/Grid.d.ts +6 -6
  54. package/dist/ui/atoms/Hint.d.ts +1 -1
  55. package/dist/ui/atoms/Hr.d.ts +2 -2
  56. package/dist/ui/atoms/Icon/Icon.d.ts +2 -2
  57. package/dist/ui/atoms/Icon/icons.d.ts +1 -1
  58. package/dist/ui/atoms/PageHeading/PageHeading.d.ts +3 -3
  59. package/dist/ui/atoms/PageHeading/PageHeadingToolbar.d.ts +2 -2
  60. package/dist/ui/atoms/Progress.d.ts +1 -1
  61. package/dist/ui/atoms/RadialProgress.d.ts +2 -2
  62. package/dist/ui/atoms/Section.d.ts +2 -2
  63. package/dist/ui/atoms/Skeleton.d.ts +1 -1
  64. package/dist/ui/atoms/Spacer.d.ts +3 -3
  65. package/dist/ui/atoms/StatusDot.d.ts +1 -1
  66. package/dist/ui/atoms/StatusIcon.d.ts +2 -2
  67. package/dist/ui/atoms/Table/Table.d.ts +1 -1
  68. package/dist/ui/atoms/Tag.d.ts +3 -3
  69. package/dist/ui/atoms/Text.d.ts +6 -6
  70. package/dist/ui/atoms/Tooltip.d.ts +2 -2
  71. package/dist/ui/composite/ActionButtons/ActionButtons.d.ts +2 -2
  72. package/dist/ui/composite/Address.d.ts +1 -1
  73. package/dist/ui/composite/Dropdown/Dropdown.d.ts +1 -1
  74. package/dist/ui/composite/Dropdown/DropdownItem.d.ts +11 -7
  75. package/dist/ui/composite/Dropdown/DropdownMenu.d.ts +3 -3
  76. package/dist/ui/composite/HomePageLayout.d.ts +3 -3
  77. package/dist/ui/composite/List.d.ts +2 -2
  78. package/dist/ui/composite/ListDetails.d.ts +2 -2
  79. package/dist/ui/composite/ListDetailsItem.d.ts +3 -3
  80. package/dist/ui/composite/ListItem.d.ts +7 -7
  81. package/dist/ui/composite/PageError.d.ts +2 -2
  82. package/dist/ui/composite/PageLayout.d.ts +6 -6
  83. package/dist/ui/composite/Routes/Routes.d.ts +3 -3
  84. package/dist/ui/composite/Routes/index.d.ts +2 -2
  85. package/dist/ui/composite/Routes/utils.d.ts +5 -5
  86. package/dist/ui/composite/SearchBar.d.ts +1 -1
  87. package/dist/ui/composite/Timeline.d.ts +1 -1
  88. package/dist/ui/composite/Toast.d.ts +1 -1
  89. package/dist/ui/composite/Toolbar.d.ts +6 -6
  90. package/dist/ui/forms/CodeEditor/CodeEditorComponent.d.ts +4 -4
  91. package/dist/ui/forms/CodeEditor/HookedCodeEditor.d.ts +1 -1
  92. package/dist/ui/forms/CodeEditor/fetchCoreResourcesSuggestions.d.ts +7 -7
  93. package/dist/ui/forms/CodeEditor/index.d.ts +1 -1
  94. package/dist/ui/forms/Input/Input.d.ts +2 -2
  95. package/dist/ui/forms/InputCheckbox/HookedInputCheckbox.d.ts +1 -1
  96. package/dist/ui/forms/InputCheckbox/InputCheckbox.d.ts +2 -2
  97. package/dist/ui/forms/InputCheckbox/index.d.ts +1 -1
  98. package/dist/ui/forms/InputCheckboxGroup/HookedInputCheckboxGroup.d.ts +1 -1
  99. package/dist/ui/forms/InputCheckboxGroup/InputCheckboxGroupItem.d.ts +2 -2
  100. package/dist/ui/forms/InputCheckboxGroup/index.d.ts +2 -2
  101. package/dist/ui/forms/InputCheckboxGroup/reducer.d.ts +3 -3
  102. package/dist/ui/forms/InputCurrency/HookedInputCurrency.d.ts +1 -1
  103. package/dist/ui/forms/InputCurrency/InputCurrency.d.ts +3 -3
  104. package/dist/ui/forms/InputCurrency/index.d.ts +1 -1
  105. package/dist/ui/forms/InputCurrency/utils.d.ts +1 -1
  106. package/dist/ui/forms/InputCurrencyRange.d.ts +3 -3
  107. package/dist/ui/forms/InputDate/HookedInputDate.d.ts +1 -1
  108. package/dist/ui/forms/InputDateRange/HookedInputDateRange.d.ts +1 -1
  109. package/dist/ui/forms/InputDateRange/InputDateRange.d.ts +5 -5
  110. package/dist/ui/forms/InputDateRange/index.d.ts +1 -1
  111. package/dist/ui/forms/InputFeedback.d.ts +1 -1
  112. package/dist/ui/forms/InputFile.d.ts +1 -1
  113. package/dist/ui/forms/InputJson.d.ts +1 -1
  114. package/dist/ui/forms/InputRadioGroup/HookedInputRadioGroup.d.ts +1 -1
  115. package/dist/ui/forms/InputRadioGroup/index.d.ts +1 -1
  116. package/dist/ui/forms/InputResourceGroup/FullList.d.ts +3 -3
  117. package/dist/ui/forms/InputResourceGroup/HookedInputResourceGroup.d.ts +1 -1
  118. package/dist/ui/forms/InputResourceGroup/InputResourceGroup.d.ts +1 -1
  119. package/dist/ui/forms/InputResourceGroup/index.d.ts +2 -2
  120. package/dist/ui/forms/InputResourceGroup/utils.d.ts +3 -3
  121. package/dist/ui/forms/InputSelect/CreatableComponent.d.ts +1 -1
  122. package/dist/ui/forms/InputSelect/GenericAsyncComponent.d.ts +1 -1
  123. package/dist/ui/forms/InputSelect/HookedInputSelect.d.ts +1 -1
  124. package/dist/ui/forms/InputSelect/InputSelect.d.ts +1 -1
  125. package/dist/ui/forms/InputSelect/SelectComponent.d.ts +1 -1
  126. package/dist/ui/forms/InputSelect/index.d.ts +3 -3
  127. package/dist/ui/forms/InputSelect/styles.d.ts +1 -1
  128. package/dist/ui/forms/InputSelect/utils.d.ts +1 -1
  129. package/dist/ui/forms/InputSimpleSelect/InputSimpleSelect.d.ts +1 -1
  130. package/dist/ui/forms/InputSimpleSelect/index.d.ts +2 -2
  131. package/dist/ui/forms/InputSpinner/HookedInputSpinner.d.ts +1 -1
  132. package/dist/ui/forms/InputSpinner/InputSpinner.d.ts +1 -1
  133. package/dist/ui/forms/InputSpinner/index.d.ts +1 -1
  134. package/dist/ui/forms/InputSwitch/InputSwitch.d.ts +1 -1
  135. package/dist/ui/forms/InputSwitch/index.d.ts +1 -1
  136. package/dist/ui/forms/InputTextArea/index.d.ts +1 -1
  137. package/dist/ui/forms/InputToggleButton/HookedInputToggleButton.d.ts +1 -1
  138. package/dist/ui/forms/InputToggleButton/InputToggleButton.d.ts +4 -4
  139. package/dist/ui/forms/InputToggleButton/index.d.ts +2 -2
  140. package/dist/ui/forms/MarketWithCurrencySelector/HookedMarketWithCurrencySelector.d.ts +2 -2
  141. package/dist/ui/forms/MarketWithCurrencySelector/index.d.ts +1 -1
  142. package/dist/ui/forms/ReactHookForm/HookedValidationApiError.d.ts +1 -1
  143. package/dist/ui/forms/ReactHookForm/setApiFormErrors.d.ts +1 -1
  144. package/dist/ui/forms/ReactHookForm/useValidationFeedback.d.ts +1 -1
  145. package/dist/ui/forms/RuleEngine/Action/ActionListItem.d.ts +1 -1
  146. package/dist/ui/forms/RuleEngine/Action/ActionValue.d.ts +1 -1
  147. package/dist/ui/forms/RuleEngine/Action/index.d.ts +1 -1
  148. package/dist/ui/forms/RuleEngine/Condition/ArrayMatch.d.ts +0 -0
  149. package/dist/ui/forms/RuleEngine/Condition/ConditionListItem.d.ts +1 -1
  150. package/dist/ui/forms/RuleEngine/Condition/ConditionMatcher.d.ts +1 -1
  151. package/dist/ui/forms/RuleEngine/Condition/ConditionValue.d.ts +1 -1
  152. package/dist/ui/forms/RuleEngine/Condition/Connector.d.ts +0 -0
  153. package/dist/ui/forms/RuleEngine/Condition/RangeInputs.d.ts +0 -0
  154. package/dist/ui/forms/RuleEngine/Condition/ValueComponents/InputArrayMatch.d.ts +2 -2
  155. package/dist/ui/forms/RuleEngine/Condition/ValueComponents/InputNumberRange.d.ts +2 -2
  156. package/dist/ui/forms/RuleEngine/Condition/ValueComponents/InputTextRange.d.ts +2 -2
  157. package/dist/ui/forms/RuleEngine/Condition/dictionaries.d.ts +0 -0
  158. package/dist/ui/forms/RuleEngine/Condition/index.d.ts +1 -1
  159. package/dist/ui/forms/RuleEngine/Condition/types.d.ts +0 -0
  160. package/dist/ui/forms/RuleEngine/Condition/utils.d.ts +1 -1
  161. package/dist/ui/forms/RuleEngine/RuleEngineComponent.d.ts +4 -4
  162. package/dist/ui/forms/RuleEngine/RuleEngineContext.d.ts +1 -1
  163. package/dist/ui/forms/RuleEngine/utils.d.ts +6 -6
  164. package/dist/ui/internals/FlexRow.d.ts +1 -1
  165. package/dist/ui/internals/InputWrapper.d.ts +6 -6
  166. package/dist/ui/internals/InteractiveElement.className.d.ts +4 -4
  167. package/dist/ui/internals/Overlay.d.ts +1 -1
  168. package/dist/ui/resources/ResourceAddress/ResourceAddress.d.ts +2 -2
  169. package/dist/ui/resources/ResourceAddress/ResourceAddressFormFields.d.ts +1 -1
  170. package/dist/ui/resources/ResourceAddress/index.d.ts +1 -1
  171. package/dist/ui/resources/ResourceAddress/useResourceAddressOverlay.d.ts +2 -2
  172. package/dist/ui/resources/ResourceAttachments/index.d.ts +1 -1
  173. package/dist/ui/resources/ResourceDetails/useEditDetailsOverlay.d.ts +2 -2
  174. package/dist/ui/resources/ResourceLineItems/index.d.ts +1 -1
  175. package/dist/ui/resources/ResourceListItem/ResourceListItem.d.ts +2 -2
  176. package/dist/ui/resources/ResourceListItem/ResourceListItem.mocks.d.ts +9 -0
  177. package/dist/ui/resources/ResourceListItem/index.d.ts +1 -1
  178. package/dist/ui/resources/ResourceListItem/types.d.ts +3 -3
  179. package/dist/ui/resources/ResourceMetadata/ResourceMetadata.d.ts +2 -2
  180. package/dist/ui/resources/ResourceMetadata/index.d.ts +1 -1
  181. package/dist/ui/resources/ResourceOrderTimeline.d.ts +1 -1
  182. package/dist/ui/resources/ResourcePaymentMethod.d.ts +3 -3
  183. package/dist/ui/resources/ResourceShipmentParcels.mocks.d.ts +2 -2
  184. package/dist/ui/resources/ResourceTags.d.ts +3 -3
  185. package/dist/ui/resources/useResourceFilters/FieldCurrencyRange.d.ts +1 -2
  186. package/dist/ui/resources/useResourceFilters/FiltersForm.d.ts +1 -1
  187. package/dist/ui/resources/useResourceFilters/FiltersNav.d.ts +1 -2
  188. package/dist/ui/resources/useResourceFilters/FiltersSearchBar.d.ts +3 -3
  189. package/dist/ui/resources/useResourceFilters/adaptFormValuesToSdk.d.ts +1 -1
  190. package/dist/ui/resources/useResourceFilters/adaptFormValuesToUrlQuery.d.ts +1 -1
  191. package/dist/ui/resources/useResourceFilters/adaptSdkToMetrics.d.ts +4 -4
  192. package/dist/ui/resources/useResourceFilters/adaptSdkToUrlQuery.d.ts +2 -2
  193. package/dist/ui/resources/useResourceFilters/adaptUrlQueryToFormValues.d.ts +1 -1
  194. package/dist/ui/resources/useResourceFilters/adaptUrlQueryToSdk.d.ts +1 -1
  195. package/dist/ui/resources/useResourceFilters/adaptUrlQueryToUrlQuery.d.ts +1 -1
  196. package/dist/ui/resources/useResourceFilters/adapters.types.d.ts +8 -8
  197. package/dist/ui/resources/useResourceFilters/timeUtils.d.ts +1 -1
  198. package/dist/ui/resources/useResourceFilters/types.d.ts +18 -18
  199. package/dist/ui/resources/useResourceFilters/useResourceFilters.d.ts +10 -11
  200. package/dist/ui/resources/useResourceFilters/utils.d.ts +2 -2
  201. package/dist/ui/resources/useResourceList/adaptMetricsOrderToCore.d.ts +1 -1
  202. package/dist/ui/resources/useResourceList/index.d.ts +1 -1
  203. package/dist/ui/resources/useResourceList/infiniteFetcher.d.ts +5 -5
  204. package/dist/ui/resources/useResourceList/metricsApiClient.d.ts +4 -4
  205. package/dist/ui/resources/useResourceList/reducer.d.ts +5 -5
  206. package/dist/ui/resources/useResourceList/useResourceList.d.ts +10 -10
  207. package/dist/ui/resources/useResourceList/utils.d.ts +1 -1
  208. package/dist/utils/array.d.ts +1 -1
  209. package/dist/utils/htmltags.d.ts +1 -1
  210. package/dist/utils/pagination.d.ts +4 -4
  211. package/dist/vendor.css +1 -1
  212. package/package.json +32 -35
  213. package/dist/CodeEditorComponent-BTinRSNU.js +0 -739
  214. package/dist/InputDateComponent-DbOIWLmQ.js +0 -4964
  215. package/dist/RuleEngineComponent-BTMemWTZ.js +0 -1389
  216. package/dist/fetchCoreResourcesSuggestions-CZkDwjO2.js +0 -126
@@ -1,22 +1,22 @@
1
- import { InputWrapperBaseProps } from '../../internals/InputWrapper';
2
1
  import { JSX } from 'react';
3
2
  import { Simplify } from 'type-fest';
3
+ import { InputWrapperBaseProps } from '../../internals/InputWrapper';
4
4
  type ToggleButtonValue = string | boolean | number;
5
5
  interface ToggleButtonOption {
6
6
  label: string;
7
7
  value: ToggleButtonValue;
8
8
  isDisabled?: boolean;
9
9
  }
10
- interface BaseProps extends InputWrapperBaseProps, Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange'> {
10
+ interface BaseProps extends InputWrapperBaseProps, Omit<React.HTMLAttributes<HTMLDivElement>, "onChange"> {
11
11
  options: ToggleButtonOption[];
12
12
  }
13
13
  interface SingleValueProps {
14
- mode: 'single';
14
+ mode: "single";
15
15
  value?: ToggleButtonValue;
16
16
  onChange: (value: ToggleButtonValue | null) => void;
17
17
  }
18
18
  interface MultiValuesProps {
19
- mode: 'multi';
19
+ mode: "multi";
20
20
  value?: ToggleButtonValue[];
21
21
  onChange: (values: ToggleButtonValue[]) => void;
22
22
  }
@@ -1,2 +1,2 @@
1
- export { HookedInputToggleButton, type HookedInputToggleButtonProps } from './HookedInputToggleButton';
2
- export { InputToggleButton, type InputToggleButtonProps } from './InputToggleButton';
1
+ export { HookedInputToggleButton, type HookedInputToggleButtonProps, } from './HookedInputToggleButton';
2
+ export { InputToggleButton, type InputToggleButtonProps, } from './InputToggleButton';
@@ -1,6 +1,6 @@
1
- import { InputSelectProps } from '../InputSelect';
2
1
  import { FC } from 'react';
3
- export interface HookedMarketWithCurrencySelectorProps extends Pick<InputSelectProps, 'hint' | 'label' | 'isDisabled'> {
2
+ import { InputSelectProps } from '../InputSelect';
3
+ export interface HookedMarketWithCurrencySelectorProps extends Pick<InputSelectProps, "hint" | "label" | "isDisabled"> {
4
4
  /**
5
5
  * Market input name where market ID is stored.
6
6
  * Must match the field name in your form state/schema.
@@ -1 +1 @@
1
- export { HookedMarketWithCurrencySelector, type HookedMarketWithCurrencySelectorProps } from './HookedMarketWithCurrencySelector';
1
+ export { HookedMarketWithCurrencySelector, type HookedMarketWithCurrencySelectorProps, } from './HookedMarketWithCurrencySelector';
@@ -15,7 +15,7 @@ interface ValidationApiErrorProps {
15
15
  */
16
16
  fieldMap?: Record<string, string>;
17
17
  }
18
- export declare function HookedValidationApiError({ apiError, fieldMap }: ValidationApiErrorProps): JSX.Element;
18
+ export declare function HookedValidationApiError({ apiError, fieldMap, }: ValidationApiErrorProps): JSX.Element;
19
19
  export declare namespace HookedValidationApiError {
20
20
  var displayName: string;
21
21
  }
@@ -1,5 +1,5 @@
1
1
  import { UseFormSetError } from 'react-hook-form';
2
- export declare function setApiFormErrors({ apiError, setError, fieldMap, formFields }: {
2
+ export declare function setApiFormErrors({ apiError, setError, fieldMap, formFields, }: {
3
3
  /**
4
4
  * Error response from API
5
5
  */
@@ -1,4 +1,4 @@
1
1
  import { InputFeedbackProps } from '../InputFeedback';
2
- type MaybeFeedback = Omit<InputFeedbackProps, 'className'> | undefined;
2
+ type MaybeFeedback = Omit<InputFeedbackProps, "className"> | undefined;
3
3
  export declare function useValidationFeedback(name: string): MaybeFeedback;
4
4
  export {};
@@ -1,5 +1,5 @@
1
1
  import { SchemaActionItem } from '../utils';
2
- export declare function ActionListItem({ item, index, onDelete }: {
2
+ export declare function ActionListItem({ item, index, onDelete, }: {
3
3
  item: SchemaActionItem | null;
4
4
  index: number;
5
5
  onDelete?: () => void;
@@ -1,5 +1,5 @@
1
1
  import { SchemaActionItem } from '../utils';
2
- export declare function ActionValue({ item, pathPrefix }: {
2
+ export declare function ActionValue({ item, pathPrefix, }: {
3
3
  item: SchemaActionItem | null;
4
4
  pathPrefix: string;
5
5
  }): React.ReactNode;
@@ -1,4 +1,4 @@
1
1
  import { SchemaActionItem } from '../utils';
2
- export declare function Action({ actions }: {
2
+ export declare function Action({ actions, }: {
3
3
  actions?: SchemaActionItem[];
4
4
  }): React.JSX.Element;
@@ -1,6 +1,6 @@
1
1
  import { default as React } from 'react';
2
2
  import { SchemaConditionItem } from '../utils';
3
- export declare function ConditionListItem({ item, nestingLevel, pathPrefix, onDelete }: {
3
+ export declare function ConditionListItem({ item, nestingLevel, pathPrefix, onDelete, }: {
4
4
  item: SchemaConditionItem | null;
5
5
  nestingLevel: number;
6
6
  pathPrefix: string;
@@ -1,6 +1,6 @@
1
1
  import { default as React } from 'react';
2
2
  import { SchemaConditionItem } from '../utils';
3
- export declare function ConditionMatcher({ item, pathPrefix }: {
3
+ export declare function ConditionMatcher({ item, pathPrefix, }: {
4
4
  item: SchemaConditionItem | null;
5
5
  pathPrefix: string;
6
6
  }): React.ReactNode;
@@ -6,7 +6,7 @@ import { SchemaConditionItem } from '../utils';
6
6
  * > // TODO: **NOTE** the kind of Component depends on the matcher used and the field used. For example, if the matcher is `eq` and the field is `email`, then it should be an email input. Or if the matcher is `gt` and the field is `created_at`, then it should be a date input.
7
7
  * > https://docs.commercelayer.io/rules-engine/matchers#value-required
8
8
  */
9
- export declare function ConditionValue({ item, pathPrefix }: {
9
+ export declare function ConditionValue({ item, pathPrefix, }: {
10
10
  item: SchemaConditionItem | null;
11
11
  pathPrefix: string;
12
12
  }): React.ReactNode;
@@ -1,6 +1,6 @@
1
1
  import { default as React } from 'react';
2
2
  import { ItemWithValue } from '../../utils';
3
- export declare function InputArrayMatch({ value, pathPrefix }: {
4
- value: ItemWithValue['value'];
3
+ export declare function InputArrayMatch({ value, pathPrefix, }: {
4
+ value: ItemWithValue["value"];
5
5
  pathPrefix: string;
6
6
  }): React.JSX.Element;
@@ -1,6 +1,6 @@
1
1
  import { default as React } from 'react';
2
2
  import { ItemWithValue } from '../../utils';
3
- export declare function InputNumberRange({ value, onChange }: {
4
- value: ItemWithValue['value'];
3
+ export declare function InputNumberRange({ value, onChange, }: {
4
+ value: ItemWithValue["value"];
5
5
  onChange: (value: [number | null, number | null]) => void;
6
6
  }): React.JSX.Element;
@@ -1,6 +1,6 @@
1
1
  import { default as React } from 'react';
2
2
  import { ItemWithValue } from '../../utils';
3
- export declare function InputTextRange({ value, onChange }: {
4
- value: ItemWithValue['value'];
3
+ export declare function InputTextRange({ value, onChange, }: {
4
+ value: ItemWithValue["value"];
5
5
  onChange: (value: [string | null, string | null]) => void;
6
6
  }): React.JSX.Element;
@@ -1,6 +1,6 @@
1
1
  import { default as React } from 'react';
2
2
  import { SchemaCondition } from '../utils';
3
- export declare function Condition({ item, children, nestingLevel, pathPrefix }: {
3
+ export declare function Condition({ item, children, nestingLevel, pathPrefix, }: {
4
4
  item?: SchemaCondition;
5
5
  nestingLevel?: number;
6
6
  children?: React.JSX.Element;
File without changes
@@ -1,3 +1,3 @@
1
1
  import { atPath } from '../../CodeEditor/fetchCoreResourcesSuggestions';
2
2
  import { ItemWithValue } from '../utils';
3
- export declare function guessFieldType(value: ItemWithValue['value'] | undefined): NonNullable<Awaited<ReturnType<typeof atPath>>['field']>['type'];
3
+ export declare function guessFieldType(value: ItemWithValue["value"] | undefined): NonNullable<Awaited<ReturnType<typeof atPath>>["field"]>["type"];
@@ -1,10 +1,10 @@
1
- import { CodeEditorProps } from '../CodeEditor';
2
- import { InputWrapperBaseProps } from '../../internals/InputWrapper';
3
1
  import { default as React } from 'react';
4
2
  import { SetOptional, SetRequired } from 'type-fest';
3
+ import { CodeEditorProps } from '../CodeEditor';
4
+ import { InputWrapperBaseProps } from '../../internals/InputWrapper';
5
5
  import { RulesForOrderContext } from './schema.order_rules';
6
- type Schema = SetRequired<RulesForOrderContext, 'rules'>;
7
- export interface RuleEngineProps extends Omit<InputWrapperBaseProps, 'label' | 'inline'>, SetOptional<Pick<HTMLInputElement, 'id' | 'name'>, 'id' | 'name'>, Pick<CodeEditorProps, 'defaultValue' | 'value'> {
6
+ type Schema = SetRequired<RulesForOrderContext, "rules">;
7
+ export interface RuleEngineProps extends Omit<InputWrapperBaseProps, "label" | "inline">, SetOptional<Pick<HTMLInputElement, "id" | "name">, "id" | "name">, Pick<CodeEditorProps, "defaultValue" | "value"> {
8
8
  /**
9
9
  * Default value for the CodeEditor visibility.
10
10
  * If not provided, the CodeEditor will be hidden by default.
@@ -10,7 +10,7 @@ interface RuleEngineContextType {
10
10
  setSelectedRuleIndex: (index: number) => void;
11
11
  setValue: (value: Schema) => void;
12
12
  }
13
- export declare function RuleEngineProvider({ children, initialValue }: {
13
+ export declare function RuleEngineProvider({ children, initialValue, }: {
14
14
  children: React.ReactNode;
15
15
  initialValue: Schema;
16
16
  }): React.JSX.Element;
@@ -1,17 +1,17 @@
1
1
  import { SetRequired } from 'type-fest';
2
2
  import { RulesForOrderContext } from './schema.order_rules';
3
- export type Schema = SetRequired<RulesForOrderContext, 'rules'>;
4
- type SchemaRule = Schema['rules'][number];
5
- export type SchemaCondition = NonNullable<SchemaRule['conditions'][number]['nested']>;
6
- export type SchemaActionItem = NonNullable<SchemaRule['actions']>[number];
7
- export type SchemaConditionItem = NonNullable<SchemaCondition['conditions']>[number];
3
+ export type Schema = SetRequired<RulesForOrderContext, "rules">;
4
+ type SchemaRule = Schema["rules"][number];
5
+ export type SchemaCondition = NonNullable<SchemaRule["conditions"][number]["nested"]>;
6
+ export type SchemaActionItem = NonNullable<SchemaRule["actions"]>[number];
7
+ export type SchemaConditionItem = NonNullable<SchemaCondition["conditions"]>[number];
8
8
  export interface SetPath {
9
9
  (path: string): SetPath;
10
10
  (path: string, pathValue: unknown, shouldForceUpdate?: boolean): Schema;
11
11
  }
12
12
  export type ConditionMatchersWithoutValue = Exclude<SchemaConditionItem, {
13
13
  value: any;
14
- }>['matcher'];
14
+ }>["matcher"];
15
15
  export declare const conditionMatchersWithoutValue: ["blank", "present", "null", "not_null"];
16
16
  export type ItemWithValue = Exclude<SchemaConditionItem, {
17
17
  matcher: ConditionMatchersWithoutValue;
@@ -1,5 +1,5 @@
1
1
  import { JSX, ReactNode } from 'react';
2
- export type FlexRowAlignItems = 'top' | 'bottom' | 'center';
2
+ export type FlexRowAlignItems = "top" | "bottom" | "center";
3
3
  export interface FlexRowProps extends React.HTMLAttributes<HTMLDivElement> {
4
4
  children: ReactNode;
5
5
  /**
@@ -9,13 +9,13 @@ export interface InputWrapperBaseProps {
9
9
  * Optional hint to be rendered below
10
10
  */
11
11
  hint?: {
12
- icon?: HintProps['icon'];
13
- text: HintProps['children'];
12
+ icon?: HintProps["icon"];
13
+ text: HintProps["children"];
14
14
  };
15
15
  /**
16
16
  * Optional hint to be rendered below
17
17
  */
18
- feedback?: Omit<InputFeedbackProps, 'className'>;
18
+ feedback?: Omit<InputFeedbackProps, "className">;
19
19
  /**
20
20
  * Show label and input on the same line
21
21
  * @default false
@@ -59,9 +59,9 @@ export declare const InputWrapper: import('../atoms/SkeletonTemplate').SkeletonT
59
59
  delayMs?: number | undefined;
60
60
  isLoading?: boolean | undefined;
61
61
  }>;
62
- export declare function getFeedbackStyle(feedback?: Omit<InputFeedbackProps, 'className'>): Record<string, boolean>;
63
- export declare function getFeedbackCssInJs(variant?: InputFeedbackProps['variant']): Pick<CSSStyleDeclaration, 'boxShadow'> & {
64
- '&:focus-within': {
62
+ export declare function getFeedbackStyle(feedback?: Omit<InputFeedbackProps, "className">): Record<string, boolean>;
63
+ export declare function getFeedbackCssInJs(variant?: InputFeedbackProps["variant"]): Pick<CSSStyleDeclaration, "boxShadow"> & {
64
+ "&:focus-within": {
65
65
  boxShadow: string;
66
66
  };
67
67
  };
@@ -1,5 +1,5 @@
1
- type Variant = 'primary' | 'secondary' | 'danger' | 'link' | 'circle' | 'relationship' | 'input';
2
- type Size = 'mini' | 'small' | 'regular' | 'large';
1
+ type Variant = "primary" | "secondary" | "danger" | "link" | "circle" | "relationship" | "input";
2
+ type Size = "mini" | "small" | "regular" | "large";
3
3
  export interface InteractiveElementProps {
4
4
  children: React.ReactNode;
5
5
  /**
@@ -17,11 +17,11 @@ export interface InteractiveElementProps {
17
17
  /**
18
18
  * Flex content alignment with a standard gap
19
19
  */
20
- alignItems?: 'center';
20
+ alignItems?: "center";
21
21
  /**
22
22
  * When element is disabled, the user cannot interact with it
23
23
  */
24
24
  disabled?: boolean | undefined;
25
25
  }
26
- export declare function getInteractiveElementClassName({ alignItems, children, disabled, fullWidth, size, variant }: InteractiveElementProps): string;
26
+ export declare function getInteractiveElementClassName({ alignItems, children, disabled, fullWidth, size, variant, }: InteractiveElementProps): string;
27
27
  export {};
@@ -10,7 +10,7 @@ export interface OverlayProps {
10
10
  /**
11
11
  * Set a gray background color
12
12
  */
13
- backgroundColor?: 'light';
13
+ backgroundColor?: "light";
14
14
  /**
15
15
  * Set the overlay to full width
16
16
  * @default false
@@ -1,6 +1,6 @@
1
- import { AddressProps } from '../../composite/Address';
2
1
  import { Address as AddressType } from '@commercelayer/sdk';
3
- export type ResourceAddressProps = Pick<AddressProps, 'showBillingInfo' | 'showNotes' | 'title'> & {
2
+ import { AddressProps } from '../../composite/Address';
3
+ export type ResourceAddressProps = Pick<AddressProps, "showBillingInfo" | "showNotes" | "title"> & {
4
4
  /**
5
5
  * Resource of type `Address`
6
6
  */
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
2
  import { ResourceAddressProps } from './ResourceAddress';
3
- export declare const getResourceAddressFormFieldsSchema: ({ requiresBillingInfo }?: Pick<ResourceAddressProps, "requiresBillingInfo">) => z.ZodEffects<z.ZodObject<{
3
+ export declare const getResourceAddressFormFieldsSchema: ({ requiresBillingInfo, }?: Pick<ResourceAddressProps, "requiresBillingInfo">) => z.ZodEffects<z.ZodObject<{
4
4
  business: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodBoolean>>>;
5
5
  first_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6
6
  last_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -1,3 +1,3 @@
1
1
  export { ResourceAddress, type ResourceAddressProps } from './ResourceAddress';
2
- export { ResourceAddressFormFields, getResourceAddressFormFieldsSchema, type ResourceAddressFormFieldsProps } from './ResourceAddressFormFields';
2
+ export { getResourceAddressFormFieldsSchema, ResourceAddressFormFields, type ResourceAddressFormFieldsProps, } from './ResourceAddressFormFields';
3
3
  export { useResourceAddressOverlay } from './useResourceAddressOverlay';
@@ -1,6 +1,6 @@
1
1
  import { ResourceAddressProps } from './ResourceAddress';
2
- type Props = Omit<ResourceAddressProps, 'editable'>;
3
- export declare const useResourceAddressOverlay: ({ title, address, showBillingInfo, requiresBillingInfo, showNotes, onUpdate, onCreate }: Props) => {
2
+ type Props = Omit<ResourceAddressProps, "editable">;
3
+ export declare const useResourceAddressOverlay: ({ title, address, showBillingInfo, requiresBillingInfo, showNotes, onUpdate, onCreate, }: Props) => {
4
4
  ResourceAddressOverlay: () => false | import("react/jsx-runtime").JSX.Element;
5
5
  openAddressOverlay: () => void;
6
6
  };
@@ -1 +1 @@
1
- export { ResourceAttachments, type ResourceAttachmentsProps } from './ResourceAttachments';
1
+ export { ResourceAttachments, type ResourceAttachmentsProps, } from './ResourceAttachments';
@@ -5,8 +5,8 @@ export interface EditDetailsOverlayProps {
5
5
  * Optional title shown as first line in edit overlay heading
6
6
  */
7
7
  title?: string;
8
- resource: ResourceDetailsProps['resource'];
9
- onUpdated: ResourceDetailsProps['onUpdated'];
8
+ resource: ResourceDetailsProps["resource"];
9
+ onUpdated: ResourceDetailsProps["onUpdated"];
10
10
  }
11
11
  interface DetailsOverlayHook {
12
12
  show: () => void;
@@ -1 +1 @@
1
- export { ResourceLineItems, type ResourceLineItemsProps } from './ResourceLineItems';
1
+ export { ResourceLineItems, type ResourceLineItemsProps, } from './ResourceLineItems';
@@ -8,11 +8,11 @@ export interface ResourceListItemProps {
8
8
  /**
9
9
  * Optional href
10
10
  */
11
- href?: ListItemProps['href'];
11
+ href?: ListItemProps["href"];
12
12
  /**
13
13
  * Optional onClick function
14
14
  */
15
- onClick?: ListItemProps['onClick'];
15
+ onClick?: ListItemProps["onClick"];
16
16
  /**
17
17
  * Optional setting to show right content, if available, instead of right arrow
18
18
  */
@@ -544,6 +544,7 @@ export declare const presetResourceListItem: {
544
544
  readonly price_amount_cents: 0;
545
545
  readonly created_at: "";
546
546
  readonly updated_at: "";
547
+ readonly shared_secret: "";
547
548
  };
548
549
  };
549
550
  shipmentPicking: {
@@ -567,6 +568,7 @@ export declare const presetResourceListItem: {
567
568
  readonly price_amount_cents: 0;
568
569
  readonly created_at: "";
569
570
  readonly updated_at: "";
571
+ readonly shared_secret: "";
570
572
  };
571
573
  };
572
574
  shipmentPacking: {
@@ -590,6 +592,7 @@ export declare const presetResourceListItem: {
590
592
  readonly price_amount_cents: 0;
591
593
  readonly created_at: "";
592
594
  readonly updated_at: "";
595
+ readonly shared_secret: "";
593
596
  };
594
597
  };
595
598
  shipmentReadyToShip: {
@@ -613,6 +616,7 @@ export declare const presetResourceListItem: {
613
616
  readonly price_amount_cents: 0;
614
617
  readonly created_at: "";
615
618
  readonly updated_at: "";
619
+ readonly shared_secret: "";
616
620
  };
617
621
  };
618
622
  shipmentOnHold: {
@@ -636,6 +640,7 @@ export declare const presetResourceListItem: {
636
640
  readonly price_amount_cents: 0;
637
641
  readonly created_at: "";
638
642
  readonly updated_at: "";
643
+ readonly shared_secret: "";
639
644
  };
640
645
  };
641
646
  shipmentShipped: {
@@ -659,6 +664,7 @@ export declare const presetResourceListItem: {
659
664
  readonly price_amount_cents: 0;
660
665
  readonly created_at: "";
661
666
  readonly updated_at: "";
667
+ readonly shared_secret: "";
662
668
  };
663
669
  };
664
670
  shipmentDelivered: {
@@ -682,6 +688,7 @@ export declare const presetResourceListItem: {
682
688
  readonly price_amount_cents: 0;
683
689
  readonly created_at: "";
684
690
  readonly updated_at: "";
691
+ readonly shared_secret: "";
685
692
  };
686
693
  };
687
694
  shipmentWithReference: {
@@ -706,6 +713,7 @@ export declare const presetResourceListItem: {
706
713
  readonly price_amount_cents: 0;
707
714
  readonly created_at: "";
708
715
  readonly updated_at: "";
716
+ readonly shared_secret: "";
709
717
  };
710
718
  };
711
719
  shipmentWithStockTransfer: {
@@ -729,6 +737,7 @@ export declare const presetResourceListItem: {
729
737
  readonly price_amount_cents: 0;
730
738
  readonly created_at: "";
731
739
  readonly updated_at: "";
740
+ readonly shared_secret: "";
732
741
  };
733
742
  stock_transfers: {
734
743
  readonly type: "stock_transfers";
@@ -1 +1 @@
1
- export { ResourceListItem, type ResourceListItemProps } from './ResourceListItem';
1
+ export { ResourceListItem, type ResourceListItemProps, } from './ResourceListItem';
@@ -1,8 +1,8 @@
1
- import { TokenProviderAuthUser } from '../../../providers/TokenProvider/types';
2
- import { ListItemProps } from '../../composite/ListItem';
3
1
  import { BuyXPayYPromotion, Customer, ExternalPromotion, FixedAmountPromotion, FixedPricePromotion, FlexPromotion, FreeGiftPromotion, FreeShippingPromotion, Order, PercentageDiscountPromotion, Return, Shipment, SkuListItem, StockTransfer } from '@commercelayer/sdk';
4
2
  import { t } from 'i18next';
5
3
  import { JSX } from 'react';
4
+ import { TokenProviderAuthUser } from '../../../providers/TokenProvider/types';
5
+ import { ListItemProps } from '../../composite/ListItem';
6
6
  export type ResourceListItemType = Order | Return | Customer | StockTransfer | SkuListItem | Shipment | BuyXPayYPromotion | ExternalPromotion | FixedAmountPromotion | FixedPricePromotion | FreeGiftPromotion | FreeShippingPromotion | PercentageDiscountPromotion | FlexPromotion;
7
7
  export interface ResourceListItemComponentProps {
8
8
  name: React.ReactNode;
@@ -10,7 +10,7 @@ export interface ResourceListItemComponentProps {
10
10
  icon: JSX.Element;
11
11
  rightContent?: JSX.Element;
12
12
  invertNameDescription?: boolean;
13
- alignItems?: ListItemProps['alignItems'];
13
+ alignItems?: ListItemProps["alignItems"];
14
14
  }
15
15
  export type ResourceToProps<Resource> = (options: {
16
16
  resource: Resource;
@@ -1,6 +1,6 @@
1
- import { EditMetadataOverlayProps } from '../../../hooks/useEditMetadataOverlay';
2
1
  import { ListableResourceType } from '@commercelayer/sdk';
3
- interface MetadataOverlay extends Omit<EditMetadataOverlayProps, 'resourceId' | 'resourceType'> {
2
+ import { EditMetadataOverlayProps } from '../../../hooks/useEditMetadataOverlay';
3
+ interface MetadataOverlay extends Omit<EditMetadataOverlayProps, "resourceId" | "resourceType"> {
4
4
  }
5
5
  export interface ResourceMetadataProps {
6
6
  resourceType: ListableResourceType;
@@ -1 +1 @@
1
- export { ResourceMetadata, type ResourceMetadataProps } from './ResourceMetadata';
1
+ export { ResourceMetadata, type ResourceMetadataProps, } from './ResourceMetadata';
@@ -1,5 +1,5 @@
1
- import { referenceOrigins } from '../../helpers/attachments';
2
1
  import { Attachment } from '@commercelayer/sdk';
2
+ import { referenceOrigins } from '../../helpers/attachments';
3
3
  export interface ResourceOrderTimelineProps {
4
4
  orderId?: string;
5
5
  refresh?: boolean;
@@ -6,7 +6,7 @@ export interface ResourcePaymentMethodProps {
6
6
  * Any resource that has `payment_source` or `payment_method` properties is actually eligible.
7
7
  * But we are only interested in `Order` and `CustomerPaymentSource` resources.
8
8
  */
9
- resource: SetRequired<SetNonNullable<Partial<Order>, 'payment_method'>, 'payment_method'> | SetRequired<SetNonNullable<CustomerPaymentSource, 'payment_source'>, 'payment_source'>;
9
+ resource: SetRequired<SetNonNullable<Partial<Order>, "payment_method">, "payment_method"> | SetRequired<SetNonNullable<CustomerPaymentSource, "payment_source">, "payment_source">;
10
10
  /**
11
11
  * When true and if `payment_source.payment_response` is present, enables the expandable content to show more details on the transaction.
12
12
  */
@@ -14,7 +14,7 @@ export interface ResourcePaymentMethodProps {
14
14
  /**
15
15
  * Defines the style of the component. Default is `boxed`, with a light gray background and rounded corners.
16
16
  */
17
- variant?: 'plain' | 'boxed';
17
+ variant?: "plain" | "boxed";
18
18
  /**
19
19
  * This will render a button on the right side of the row.
20
20
  */
@@ -27,4 +27,4 @@ export declare const ResourcePaymentMethod: FC<ResourcePaymentMethodProps>;
27
27
  /**
28
28
  * Retrieve the logo URL based on the payment source type.
29
29
  */
30
- export declare function getPaymentMethodLogoSrc(type?: PaymentMethod['payment_source_type']): string;
30
+ export declare function getPaymentMethodLogoSrc(type?: PaymentMethod["payment_source_type"]): string;
@@ -1,6 +1,6 @@
1
1
  import { ResourceShipmentParcels } from './ResourceShipmentParcels';
2
- type Shipment = Parameters<typeof ResourceShipmentParcels>[0]['shipment'];
3
- type Parcel = NonNullable<Shipment['parcels']>[number];
2
+ type Shipment = Parameters<typeof ResourceShipmentParcels>[0]["shipment"];
3
+ type Parcel = NonNullable<Shipment["parcels"]>[number];
4
4
  export declare const parcelWithoutTracking1: import('@commercelayer/sdk').Parcel;
5
5
  export declare const parcelWithoutTracking2: import('@commercelayer/sdk').Parcel;
6
6
  export declare const parcelWithTracking1: import('@commercelayer/sdk').Parcel;
@@ -1,7 +1,7 @@
1
- import { EditTagsOverlayProps } from '../../hooks/useEditTagsOverlay';
2
1
  import { ListableResourceType } from '@commercelayer/sdk';
3
- type TaggableResource = Extract<ListableResourceType, 'addresses' | 'bundles' | 'coupons' | 'customers' | 'gift_cards' | 'line_items' | 'line_item_options' | 'order_subscriptions' | 'orders' | 'buy_x_pay_y_promotions' | 'external_promotions' | 'fixed_amount_promotions' | 'fixed_price_promotions' | 'flex_promotions' | 'free_gift_promotions' | 'free_shipping_promotions' | 'percentage_discount_promotions' | 'returns' | 'shipments' | 'sku_options' | 'skus'>;
4
- interface TagsOverlay extends Omit<EditTagsOverlayProps, 'resourceId' | 'resourceType'> {
2
+ import { EditTagsOverlayProps } from '../../hooks/useEditTagsOverlay';
3
+ type TaggableResource = Extract<ListableResourceType, "addresses" | "bundles" | "coupons" | "customers" | "gift_cards" | "line_items" | "line_item_options" | "order_subscriptions" | "orders" | "buy_x_pay_y_promotions" | "external_promotions" | "fixed_amount_promotions" | "fixed_price_promotions" | "flex_promotions" | "free_gift_promotions" | "free_shipping_promotions" | "percentage_discount_promotions" | "returns" | "shipments" | "sku_options" | "skus">;
4
+ interface TagsOverlay extends Omit<EditTagsOverlayProps, "resourceId" | "resourceType"> {
5
5
  }
6
6
  export interface ResourceTagsProps {
7
7
  resourceType: TaggableResource;
@@ -1,7 +1,6 @@
1
- import { JSX } from 'react';
2
1
  import { FilterItemCurrencyRange } from './types';
3
2
  interface FieldCurrencyRangeProps {
4
3
  item: FilterItemCurrencyRange;
5
4
  }
6
- export declare function FieldCurrencyRange({ item }: FieldCurrencyRangeProps): JSX.Element;
5
+ export declare function FieldCurrencyRange({ item, }: FieldCurrencyRangeProps): React.ReactNode;
7
6
  export {};
@@ -23,7 +23,7 @@ export interface FiltersFormProps {
23
23
  */
24
24
  predicateWhitelist: string[];
25
25
  }
26
- declare function FiltersForm({ instructions, predicateWhitelist, onSubmit }: FiltersFormProps): JSX.Element;
26
+ declare function FiltersForm({ instructions, predicateWhitelist, onSubmit, }: FiltersFormProps): JSX.Element;
27
27
  declare namespace FiltersForm {
28
28
  var displayName: string;
29
29
  }
@@ -1,4 +1,3 @@
1
- import { JSX } from 'react';
2
1
  import { FiltersInstructions } from './types';
3
2
  export interface FiltersNavProps {
4
3
  /**
@@ -35,4 +34,4 @@ export interface FiltersNavProps {
35
34
  */
36
35
  predicateWhitelist: string[];
37
36
  }
38
- export declare function FiltersNav({ instructions, onFilterClick: onBtnLabelClick, onUpdate, queryString, predicateWhitelist }: FiltersNavProps): JSX.Element;
37
+ export declare function FiltersNav({ instructions, onFilterClick: onBtnLabelClick, onUpdate, queryString, predicateWhitelist, }: FiltersNavProps): React.ReactNode;
@@ -1,7 +1,7 @@
1
- import { SearchBarProps } from '../../composite/SearchBar';
2
1
  import { JSX } from 'react';
2
+ import { SearchBarProps } from '../../composite/SearchBar';
3
3
  import { FiltersInstructions } from './types';
4
- export interface FilterSearchBarProps extends Pick<SearchBarProps, 'placeholder' | 'debounceMs'> {
4
+ export interface FilterSearchBarProps extends Pick<SearchBarProps, "placeholder" | "debounceMs"> {
5
5
  /**
6
6
  * Array of instruction items to build the filters behaviors
7
7
  */
@@ -31,7 +31,7 @@ export interface FilterSearchBarProps extends Pick<SearchBarProps, 'placeholder'
31
31
  */
32
32
  predicateWhitelist: string[];
33
33
  }
34
- declare function FiltersSearchBar({ instructions, placeholder, onUpdate, queryString, predicateWhitelist, debounceMs }: FilterSearchBarProps): JSX.Element;
34
+ declare function FiltersSearchBar({ instructions, placeholder, onUpdate, queryString, predicateWhitelist, debounceMs, }: FilterSearchBarProps): JSX.Element;
35
35
  declare namespace FiltersSearchBar {
36
36
  var displayName: string;
37
37
  }
@@ -11,7 +11,7 @@ export interface AdaptFormValuesToSdkParams<FilterFormValues> {
11
11
  * @param formValues a valid FilterFormValues object
12
12
  * @returns an object of type QueryFilter to be used in the SDK stripping out empty or undefined values
13
13
  */
14
- export declare function adaptFormValuesToSdk<FilterFormValues extends Record<UiFilterName, UiFilterValue | CurrencyRangeFieldValue>>({ formValues, instructions, timezone, predicateWhitelist }: AdaptFormValuesToSdkParams<FilterFormValues>): QueryFilter;
14
+ export declare function adaptFormValuesToSdk<FilterFormValues extends Record<UiFilterName, UiFilterValue | CurrencyRangeFieldValue>>({ formValues, instructions, timezone, predicateWhitelist, }: AdaptFormValuesToSdkParams<FilterFormValues>): QueryFilter;
15
15
  export declare function extractEnforcedValues(instructions: FiltersInstructions): QueryFilter;
16
16
  /**
17
17
  * Be sure to have all the default values