@mercurjs/dashboard-shared 2.3.2-canary.0 → 2.3.2-canary.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +392 -61
- package/dist/index.js +8115 -6037
- package/package.json +9 -8
package/dist/index.d.ts
CHANGED
|
@@ -1,20 +1,23 @@
|
|
|
1
|
-
import { QueryKey, UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
-
import { ProductChangeActionDTO, HttpTypes, AttributeType, ProductAttributeBatchInput, ProductAttributeDTO, OfferDTO } from '@mercurjs/types';
|
|
1
|
+
import { QueryKey, UseQueryOptions, QueryClient } from '@tanstack/react-query';
|
|
2
|
+
import { ProductChangeActionDTO, HttpTypes as HttpTypes$1, AttributeType, ProductAttributeBatchInput, ProductAttributeDTO, OfferDTO } from '@mercurjs/types';
|
|
3
|
+
import { HttpTypes } from '@medusajs/types';
|
|
4
|
+
import { z, ZodObject } from 'zod';
|
|
3
5
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
6
|
import * as React$1 from 'react';
|
|
5
|
-
import React__default, { ReactNode, PropsWithChildren, ComponentPropsWithoutRef, CSSProperties, ComponentType, Ref, RefCallback } from 'react';
|
|
6
|
-
import { Tooltip, Heading, Text, DataTableColumnDef, DataTableFilter, DataTableCommand, DataTableEmptyStateProps, DataTableRowSelectionState, DataTableRow, Drawer, FocusModal, ProgressStatus } from '@medusajs/ui';
|
|
7
|
+
import React__default, { ReactNode, PropsWithChildren, ComponentPropsWithoutRef, CSSProperties, ComponentType, ComponentProps, ForwardRefExoticComponent, Ref, RefAttributes, RefCallback } from 'react';
|
|
8
|
+
import { Tooltip, Heading, Text, DataTableColumnDef, DataTableFilter, DataTableCommand, DataTableEmptyStateProps, DataTableRowSelectionState, DataTableRow, Select, Input, Table, Drawer, FocusModal, ProgressStatus } from '@medusajs/ui';
|
|
7
9
|
import * as react_hook_form from 'react-hook-form';
|
|
8
10
|
import { FieldValues, FieldPath, ControllerProps, UseFormReturn, Control, UseFormProps } from 'react-hook-form';
|
|
9
11
|
import { Label, Slot } from 'radix-ui';
|
|
10
12
|
import { Link, Path } from 'react-router-dom';
|
|
11
13
|
import { UniqueIdentifier } from '@dnd-kit/core';
|
|
12
14
|
import * as _tanstack_react_table from '@tanstack/react-table';
|
|
13
|
-
import { CellContext, Row, ColumnDef, ColumnDefTemplate, HeaderContext, Table, RowSelectionState, OnChangeFn } from '@tanstack/react-table';
|
|
15
|
+
import { CellContext, Row, ColumnDef, ColumnDefTemplate, HeaderContext, Table as Table$1, RowSelectionState, OnChangeFn } from '@tanstack/react-table';
|
|
14
16
|
import { TFunction } from 'i18next';
|
|
15
|
-
import { z, ZodObject } from 'zod';
|
|
16
17
|
import { ClientError } from '@mercurjs/client';
|
|
17
|
-
import
|
|
18
|
+
import * as react_currency_input_field from 'react-currency-input-field';
|
|
19
|
+
import * as _mercurjs_dashboard_sdk from '@mercurjs/dashboard-sdk';
|
|
20
|
+
import { PermissionsContextValue, UserPolicy, PermissionsRequirementsContextValue, Permission, PermissionResource, PermissionOperation, CustomFieldsConfig, NavItemOverride, CustomFormField, CustomDisplayField, SectionAction, CustomListExtension } from '@mercurjs/dashboard-sdk';
|
|
18
21
|
|
|
19
22
|
type TQueryKey<TKey, TListQuery = any, TDetailQuery = string> = {
|
|
20
23
|
all: readonly [TKey];
|
|
@@ -93,6 +96,130 @@ declare const formatFieldValue: (value: unknown, field?: string, booleanLabels?:
|
|
|
93
96
|
declare const buildProductChangeView: (actions: ProductChangeActionDTO[]) => ProductChangeView;
|
|
94
97
|
declare const productChangeViewHasContent: (view: ProductChangeView) => boolean;
|
|
95
98
|
|
|
99
|
+
declare const isSameAddress: (a?: HttpTypes.AdminOrderAddress | null, b?: HttpTypes.AdminOrderAddress | null) => boolean;
|
|
100
|
+
declare const getFormattedAddress: ({ address, }: {
|
|
101
|
+
address?: {
|
|
102
|
+
first_name?: string | null;
|
|
103
|
+
last_name?: string | null;
|
|
104
|
+
company?: string | null;
|
|
105
|
+
address_1?: string | null;
|
|
106
|
+
address_2?: string | null;
|
|
107
|
+
city?: string | null;
|
|
108
|
+
postal_code?: string | null;
|
|
109
|
+
province?: string | null;
|
|
110
|
+
country_code?: string | null;
|
|
111
|
+
country?: {
|
|
112
|
+
display_name?: string | null;
|
|
113
|
+
} | null;
|
|
114
|
+
} | null;
|
|
115
|
+
}) => string[];
|
|
116
|
+
declare const getFormattedCountry: (countryCode: string | null | undefined) => string;
|
|
117
|
+
|
|
118
|
+
interface StaticCountry extends Required<Omit<HttpTypes.AdminRegionCountry, "id">> {
|
|
119
|
+
}
|
|
120
|
+
declare function getCountryByIso2(iso2: string | null): StaticCountry | undefined;
|
|
121
|
+
declare const countries: StaticCountry[];
|
|
122
|
+
|
|
123
|
+
/** This file is auto-generated. Do not modify it manually. */
|
|
124
|
+
type CurrencyInfo = {
|
|
125
|
+
code: string;
|
|
126
|
+
name: string;
|
|
127
|
+
symbol_native: string;
|
|
128
|
+
decimal_digits: number;
|
|
129
|
+
};
|
|
130
|
+
declare const currencies: Record<string, CurrencyInfo>;
|
|
131
|
+
declare function getCurrencySymbol(code: string): string;
|
|
132
|
+
|
|
133
|
+
declare const getDecimalDigits: (currency: string) => number;
|
|
134
|
+
/**
|
|
135
|
+
* Returns a formatted amount based on the currency code using the browser's locale
|
|
136
|
+
* @param amount - The amount to format
|
|
137
|
+
* @param currencyCode - The currency code to format the amount in
|
|
138
|
+
* @returns - The formatted amount
|
|
139
|
+
*
|
|
140
|
+
* @example
|
|
141
|
+
* getFormattedAmount(10, "usd") // '$10.00' if the browser's locale is en-US
|
|
142
|
+
* getFormattedAmount(10, "usd") // '10,00 $' if the browser's locale is fr-FR
|
|
143
|
+
*/
|
|
144
|
+
declare const getLocaleAmount: (amount: number, currencyCode: string) => string;
|
|
145
|
+
declare const getNativeSymbol: (currencyCode: string) => string;
|
|
146
|
+
/**
|
|
147
|
+
* In some cases we want to display the amount with the currency code and symbol,
|
|
148
|
+
* in the format of "symbol amount currencyCode". This breaks from the
|
|
149
|
+
* user's locale and is only used in cases where we want to display the
|
|
150
|
+
* currency code and symbol explicitly, e.g. for totals.
|
|
151
|
+
*/
|
|
152
|
+
declare const getStylizedAmount: (amount: number, currencyCode: string) => string;
|
|
153
|
+
/**
|
|
154
|
+
* Returns true if the amount is less than the rounding error for the currency
|
|
155
|
+
* @param amount - The amount to check
|
|
156
|
+
* @param currencyCode - The currency code to check the amount in
|
|
157
|
+
* @returns - True if the amount is less than the rounding error, false otherwise
|
|
158
|
+
*
|
|
159
|
+
* For example returns true if amount is < 0.005 for a USD | EUR etc.
|
|
160
|
+
*/
|
|
161
|
+
declare const isAmountLessThenRoundingError: (amount: number, currencyCode: string) => boolean;
|
|
162
|
+
|
|
163
|
+
declare const queryClient: QueryClient;
|
|
164
|
+
|
|
165
|
+
declare const AddressSchema: z.ZodObject<{
|
|
166
|
+
first_name: z.ZodString;
|
|
167
|
+
last_name: z.ZodString;
|
|
168
|
+
company: z.ZodOptional<z.ZodString>;
|
|
169
|
+
address_1: z.ZodString;
|
|
170
|
+
address_2: z.ZodOptional<z.ZodString>;
|
|
171
|
+
city: z.ZodString;
|
|
172
|
+
postal_code: z.ZodString;
|
|
173
|
+
province: z.ZodOptional<z.ZodString>;
|
|
174
|
+
country_code: z.ZodString;
|
|
175
|
+
phone: z.ZodOptional<z.ZodString>;
|
|
176
|
+
}, "strip", z.ZodTypeAny, {
|
|
177
|
+
first_name: string;
|
|
178
|
+
last_name: string;
|
|
179
|
+
address_1: string;
|
|
180
|
+
city: string;
|
|
181
|
+
postal_code: string;
|
|
182
|
+
country_code: string;
|
|
183
|
+
address_2?: string | undefined;
|
|
184
|
+
province?: string | undefined;
|
|
185
|
+
company?: string | undefined;
|
|
186
|
+
phone?: string | undefined;
|
|
187
|
+
}, {
|
|
188
|
+
first_name: string;
|
|
189
|
+
last_name: string;
|
|
190
|
+
address_1: string;
|
|
191
|
+
city: string;
|
|
192
|
+
postal_code: string;
|
|
193
|
+
country_code: string;
|
|
194
|
+
address_2?: string | undefined;
|
|
195
|
+
province?: string | undefined;
|
|
196
|
+
company?: string | undefined;
|
|
197
|
+
phone?: string | undefined;
|
|
198
|
+
}>;
|
|
199
|
+
declare const EmailSchema: z.ZodObject<{
|
|
200
|
+
email: z.ZodString;
|
|
201
|
+
}, "strip", z.ZodTypeAny, {
|
|
202
|
+
email: string;
|
|
203
|
+
}, {
|
|
204
|
+
email: string;
|
|
205
|
+
}>;
|
|
206
|
+
declare const TransferOwnershipSchema: z.ZodEffects<z.ZodObject<{
|
|
207
|
+
current_owner_id: z.ZodString;
|
|
208
|
+
new_owner_id: z.ZodString;
|
|
209
|
+
}, "strip", z.ZodTypeAny, {
|
|
210
|
+
current_owner_id: string;
|
|
211
|
+
new_owner_id: string;
|
|
212
|
+
}, {
|
|
213
|
+
current_owner_id: string;
|
|
214
|
+
new_owner_id: string;
|
|
215
|
+
}>, {
|
|
216
|
+
current_owner_id: string;
|
|
217
|
+
new_owner_id: string;
|
|
218
|
+
}, {
|
|
219
|
+
current_owner_id: string;
|
|
220
|
+
new_owner_id: string;
|
|
221
|
+
}>;
|
|
222
|
+
|
|
96
223
|
type Action = {
|
|
97
224
|
icon: ReactNode;
|
|
98
225
|
label: string;
|
|
@@ -212,16 +339,16 @@ declare const ConfirmPrompt: ({ open, onOpenChange, variant, title, description,
|
|
|
212
339
|
|
|
213
340
|
declare const CustomerInfo: {
|
|
214
341
|
ID: ({ data }: {
|
|
215
|
-
data: HttpTypes.AdminOrder;
|
|
342
|
+
data: HttpTypes$1.AdminOrder;
|
|
216
343
|
}) => react_jsx_runtime.JSX.Element;
|
|
217
344
|
Company: ({ data }: {
|
|
218
|
-
data: HttpTypes.AdminOrder;
|
|
345
|
+
data: HttpTypes$1.AdminOrder;
|
|
219
346
|
}) => react_jsx_runtime.JSX.Element | null;
|
|
220
347
|
Contact: ({ data }: {
|
|
221
|
-
data: HttpTypes.AdminOrder;
|
|
348
|
+
data: HttpTypes$1.AdminOrder;
|
|
222
349
|
}) => react_jsx_runtime.JSX.Element;
|
|
223
350
|
Addresses: ({ data }: {
|
|
224
|
-
data: HttpTypes.AdminOrder;
|
|
351
|
+
data: HttpTypes$1.AdminOrder;
|
|
225
352
|
}) => react_jsx_runtime.JSX.Element;
|
|
226
353
|
};
|
|
227
354
|
|
|
@@ -709,8 +836,8 @@ declare function createDataGridHelper<TData, TFieldValues extends FieldValues>()
|
|
|
709
836
|
|
|
710
837
|
type CreateDataGridPriceColumnsProps<TData, TFieldValues extends FieldValues> = {
|
|
711
838
|
currencies?: string[];
|
|
712
|
-
regions?: HttpTypes.AdminRegion[];
|
|
713
|
-
pricePreferences?: HttpTypes.AdminPricePreference[];
|
|
839
|
+
regions?: HttpTypes$1.AdminRegion[];
|
|
840
|
+
pricePreferences?: HttpTypes$1.AdminPricePreference[];
|
|
714
841
|
isReadyOnly?: (context: FieldContext<TData>) => boolean;
|
|
715
842
|
getFieldName: (context: FieldContext<TData>, value: string) => FieldPath<TFieldValues> | null;
|
|
716
843
|
t: TFunction;
|
|
@@ -802,52 +929,10 @@ type QueryProps = {
|
|
|
802
929
|
};
|
|
803
930
|
declare const Query: ({ placeholder }: QueryProps) => react_jsx_runtime.JSX.Element;
|
|
804
931
|
|
|
805
|
-
declare const AddressSchema: z.ZodObject<{
|
|
806
|
-
first_name: z.ZodString;
|
|
807
|
-
last_name: z.ZodString;
|
|
808
|
-
company: z.ZodOptional<z.ZodString>;
|
|
809
|
-
address_1: z.ZodString;
|
|
810
|
-
address_2: z.ZodOptional<z.ZodString>;
|
|
811
|
-
city: z.ZodString;
|
|
812
|
-
postal_code: z.ZodString;
|
|
813
|
-
province: z.ZodOptional<z.ZodString>;
|
|
814
|
-
country_code: z.ZodString;
|
|
815
|
-
phone: z.ZodOptional<z.ZodString>;
|
|
816
|
-
}, "strip", z.ZodTypeAny, {
|
|
817
|
-
first_name: string;
|
|
818
|
-
last_name: string;
|
|
819
|
-
address_1: string;
|
|
820
|
-
city: string;
|
|
821
|
-
postal_code: string;
|
|
822
|
-
country_code: string;
|
|
823
|
-
company?: string | undefined;
|
|
824
|
-
address_2?: string | undefined;
|
|
825
|
-
province?: string | undefined;
|
|
826
|
-
phone?: string | undefined;
|
|
827
|
-
}, {
|
|
828
|
-
first_name: string;
|
|
829
|
-
last_name: string;
|
|
830
|
-
address_1: string;
|
|
831
|
-
city: string;
|
|
832
|
-
postal_code: string;
|
|
833
|
-
country_code: string;
|
|
834
|
-
company?: string | undefined;
|
|
835
|
-
address_2?: string | undefined;
|
|
836
|
-
province?: string | undefined;
|
|
837
|
-
phone?: string | undefined;
|
|
838
|
-
}>;
|
|
839
|
-
declare const EmailSchema: z.ZodObject<{
|
|
840
|
-
email: z.ZodString;
|
|
841
|
-
}, "strip", z.ZodTypeAny, {
|
|
842
|
-
email: string;
|
|
843
|
-
}, {
|
|
844
|
-
email: string;
|
|
845
|
-
}>;
|
|
846
|
-
|
|
847
932
|
type AddressFieldValues = z.infer<typeof AddressSchema>;
|
|
848
933
|
type AddressFormProps = {
|
|
849
934
|
control: Control<AddressFieldValues>;
|
|
850
|
-
countries?: HttpTypes.AdminRegionCountry[];
|
|
935
|
+
countries?: HttpTypes$1.AdminRegionCountry[];
|
|
851
936
|
layout: "grid" | "stack";
|
|
852
937
|
};
|
|
853
938
|
declare const AddressForm: ({ control, countries, layout, }: AddressFormProps) => react_jsx_runtime.JSX.Element;
|
|
@@ -914,6 +999,93 @@ type AttributeValueInputProps = {
|
|
|
914
999
|
};
|
|
915
1000
|
declare const AttributeValueInput: ({ type, value, onChange, availableValues, placeholder, }: AttributeValueInputProps) => react_jsx_runtime.JSX.Element;
|
|
916
1001
|
|
|
1002
|
+
type ChipInputProps = {
|
|
1003
|
+
value?: string[];
|
|
1004
|
+
onChange?: (value: string[]) => void;
|
|
1005
|
+
onBlur?: () => void;
|
|
1006
|
+
name?: string;
|
|
1007
|
+
disabled?: boolean;
|
|
1008
|
+
allowDuplicates?: boolean;
|
|
1009
|
+
showRemove?: boolean;
|
|
1010
|
+
variant?: "base" | "contrast";
|
|
1011
|
+
placeholder?: string;
|
|
1012
|
+
className?: string;
|
|
1013
|
+
};
|
|
1014
|
+
declare const ChipInput: React$1.ForwardRefExoticComponent<ChipInputProps & React$1.RefAttributes<HTMLInputElement>>;
|
|
1015
|
+
|
|
1016
|
+
type ComboboxOption = {
|
|
1017
|
+
value: string;
|
|
1018
|
+
label: string;
|
|
1019
|
+
disabled?: boolean;
|
|
1020
|
+
};
|
|
1021
|
+
type Value = string[] | string;
|
|
1022
|
+
interface ComboboxProps<T extends Value = Value> extends Omit<ComponentPropsWithoutRef<"input">, "onChange" | "value"> {
|
|
1023
|
+
value?: T;
|
|
1024
|
+
onChange?: (value?: T) => void;
|
|
1025
|
+
searchValue?: string;
|
|
1026
|
+
onSearchValueChange?: (value: string) => void;
|
|
1027
|
+
options: ComboboxOption[];
|
|
1028
|
+
fetchNextPage?: () => void;
|
|
1029
|
+
isFetchingNextPage?: boolean;
|
|
1030
|
+
onCreateOption?: (value: string) => void;
|
|
1031
|
+
noResultsPlaceholder?: ReactNode;
|
|
1032
|
+
allowClear?: boolean;
|
|
1033
|
+
forceHideInput?: boolean;
|
|
1034
|
+
}
|
|
1035
|
+
declare const Combobox: <T extends Value = string>(props: ComboboxProps<T> & React$1.RefAttributes<HTMLInputElement>) => ReactNode;
|
|
1036
|
+
|
|
1037
|
+
type CountrySelectProps = ComponentPropsWithoutRef<typeof Select> & {
|
|
1038
|
+
placeholder?: string;
|
|
1039
|
+
defaultValue?: string;
|
|
1040
|
+
onChange?: (value: string) => void;
|
|
1041
|
+
};
|
|
1042
|
+
declare const CountrySelect: ComponentType<CountrySelectProps>;
|
|
1043
|
+
|
|
1044
|
+
type HandleInputProps = ComponentProps<typeof Input> & {
|
|
1045
|
+
prefix?: string;
|
|
1046
|
+
};
|
|
1047
|
+
declare const HandleInput: ComponentType<HandleInputProps>;
|
|
1048
|
+
|
|
1049
|
+
type InputProps = ComponentProps<typeof Input>;
|
|
1050
|
+
declare const DeprecatedPercentageInput: ForwardRefExoticComponent<InputProps>;
|
|
1051
|
+
declare const PercentageInput: ForwardRefExoticComponent<Omit<Pick<Omit<React$1.DetailedHTMLProps<React$1.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & {
|
|
1052
|
+
ref?: React$1.RefObject<HTMLInputElement> | ((instance: HTMLInputElement | null) => void | React$1.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React$1.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | null | undefined;
|
|
1053
|
+
}, "list" | "title" | "name" | "is" | "style" | "type" | "ref" | "content" | "onClick" | "form" | "slot" | "pattern" | "key" | "defaultChecked" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "hidden" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "exportparts" | "part" | "children" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "size" | "autoComplete" | "minLength" | "readOnly" | "required" | "multiple" | "accept" | "src" | "alt" | "height" | "max" | "min" | "width" | "capture" | "checked"> & {
|
|
1054
|
+
allowDecimals?: boolean;
|
|
1055
|
+
allowNegativeValue?: boolean;
|
|
1056
|
+
id?: string;
|
|
1057
|
+
maxLength?: number;
|
|
1058
|
+
className?: string;
|
|
1059
|
+
customInput?: React$1.ElementType;
|
|
1060
|
+
decimalsLimit?: number;
|
|
1061
|
+
decimalScale?: number;
|
|
1062
|
+
defaultValue?: number | string;
|
|
1063
|
+
disabled?: boolean;
|
|
1064
|
+
fixedDecimalLength?: number;
|
|
1065
|
+
onValueChange?: (value: string | undefined, name?: string | undefined, values?: react_currency_input_field.CurrencyInputOnChangeValues) => void;
|
|
1066
|
+
placeholder?: string;
|
|
1067
|
+
prefix?: string;
|
|
1068
|
+
suffix?: string;
|
|
1069
|
+
step?: number;
|
|
1070
|
+
decimalSeparator?: string;
|
|
1071
|
+
groupSeparator?: string;
|
|
1072
|
+
disableGroupSeparators?: boolean;
|
|
1073
|
+
disableAbbreviations?: boolean;
|
|
1074
|
+
intlConfig?: react_currency_input_field.IntlConfig;
|
|
1075
|
+
transformRawValue?: (rawValue: string) => string;
|
|
1076
|
+
formatValueOnBlur?: boolean;
|
|
1077
|
+
value?: string | number;
|
|
1078
|
+
}, "ref"> & React$1.RefAttributes<HTMLInputElement>>;
|
|
1079
|
+
|
|
1080
|
+
type ProvinceSelectProps = ComponentPropsWithoutRef<typeof Select> & {
|
|
1081
|
+
placeholder?: string;
|
|
1082
|
+
defaultValue?: string;
|
|
1083
|
+
country_code: string;
|
|
1084
|
+
valueAs?: "iso_2" | "name";
|
|
1085
|
+
onChange?: (value: string) => void;
|
|
1086
|
+
};
|
|
1087
|
+
declare const ProvinceSelect: ComponentType<ProvinceSelectProps>;
|
|
1088
|
+
|
|
917
1089
|
interface PageProps<TData> {
|
|
918
1090
|
children: ReactNode;
|
|
919
1091
|
data?: TData;
|
|
@@ -931,6 +1103,9 @@ declare const TwoColumnPage: (<TData>({ children, data, showJSON, showMetadata,
|
|
|
931
1103
|
Sidebar: ({ children, className, ...props }: ComponentPropsWithoutRef<"div">) => react_jsx_runtime.JSX.Element;
|
|
932
1104
|
};
|
|
933
1105
|
|
|
1106
|
+
type LocalizedTablePaginationProps = Omit<ComponentPropsWithoutRef<typeof Table.Pagination>, "translations">;
|
|
1107
|
+
declare const LocalizedTablePagination: React$1.ForwardRefExoticComponent<LocalizedTablePaginationProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1108
|
+
|
|
934
1109
|
type RouteModalFormProps<TFieldValues extends FieldValues> = PropsWithChildren<{
|
|
935
1110
|
form: UseFormReturn<TFieldValues>;
|
|
936
1111
|
blockSearchParams?: boolean;
|
|
@@ -1123,7 +1298,7 @@ interface DataTableRootProps<TData> {
|
|
|
1123
1298
|
/**
|
|
1124
1299
|
* The table instance to render
|
|
1125
1300
|
*/
|
|
1126
|
-
table: Table<TData>;
|
|
1301
|
+
table: Table$1<TData>;
|
|
1127
1302
|
/**
|
|
1128
1303
|
* The columns to render
|
|
1129
1304
|
*/
|
|
@@ -1261,6 +1436,17 @@ type HeaderProps = {
|
|
|
1261
1436
|
declare const TextCell: ({ text, align, maxWidth }: CellProps) => react_jsx_runtime.JSX.Element;
|
|
1262
1437
|
declare const TextHeader: ({ text, align }: HeaderProps) => react_jsx_runtime.JSX.Element;
|
|
1263
1438
|
|
|
1439
|
+
declare const ErrorBoundary: () => react_jsx_runtime.JSX.Element;
|
|
1440
|
+
|
|
1441
|
+
declare function genericForwardRef<T, P = {}>(render: (props: P, ref: Ref<T>) => ReactNode): (props: P & RefAttributes<T>) => ReactNode;
|
|
1442
|
+
|
|
1443
|
+
/**
|
|
1444
|
+
* A form that can only be submitted when using the meta or control key.
|
|
1445
|
+
*/
|
|
1446
|
+
declare const KeyboundForm: React__default.ForwardRefExoticComponent<React__default.FormHTMLAttributes<HTMLFormElement> & React__default.RefAttributes<HTMLFormElement>>;
|
|
1447
|
+
|
|
1448
|
+
declare const VisuallyHidden: ({ children }: PropsWithChildren) => react_jsx_runtime.JSX.Element;
|
|
1449
|
+
|
|
1264
1450
|
declare const useCombinedRefs: <T>(...refs: (Ref<T> | undefined)[]) => RefCallback<T>;
|
|
1265
1451
|
|
|
1266
1452
|
/**
|
|
@@ -1323,6 +1509,151 @@ type QueryParams<T extends string> = {
|
|
|
1323
1509
|
};
|
|
1324
1510
|
declare function useQueryParams<T extends string>(keys: T[], prefix?: string): QueryParams<T>;
|
|
1325
1511
|
|
|
1512
|
+
declare const PermissionsContext: React$1.Context<PermissionsContextValue | null>;
|
|
1513
|
+
|
|
1514
|
+
interface PermissionsProviderProps extends PropsWithChildren {
|
|
1515
|
+
policy: UserPolicy | null;
|
|
1516
|
+
isLoading?: boolean;
|
|
1517
|
+
/**
|
|
1518
|
+
* Whether the RBAC feature flag is enabled. When `false`, every permission
|
|
1519
|
+
* check resolves to `true`.
|
|
1520
|
+
*/
|
|
1521
|
+
isRbacEnabled?: boolean;
|
|
1522
|
+
}
|
|
1523
|
+
declare const PermissionsProvider: ({ policy, isLoading, isRbacEnabled, children, }: PermissionsProviderProps) => react_jsx_runtime.JSX.Element;
|
|
1524
|
+
|
|
1525
|
+
declare const PermissionsRequirementsContext: React$1.Context<PermissionsRequirementsContextValue | null>;
|
|
1526
|
+
|
|
1527
|
+
/**
|
|
1528
|
+
* Collects the permission requirements declared by descendant guards so a
|
|
1529
|
+
* page can surface them (see `RequiredPermissionsSection`). Mount it around a
|
|
1530
|
+
* page body; guards work fine without it.
|
|
1531
|
+
*/
|
|
1532
|
+
declare const PermissionsRequirementsProvider: ({ children, }: PropsWithChildren) => react_jsx_runtime.JSX.Element;
|
|
1533
|
+
|
|
1534
|
+
interface BasePermissionProps {
|
|
1535
|
+
source?: string;
|
|
1536
|
+
enabled?: boolean;
|
|
1537
|
+
}
|
|
1538
|
+
interface WithPermission extends BasePermissionProps {
|
|
1539
|
+
permission: Permission;
|
|
1540
|
+
permissions?: never;
|
|
1541
|
+
resource?: never;
|
|
1542
|
+
operation?: never;
|
|
1543
|
+
requireAll?: never;
|
|
1544
|
+
}
|
|
1545
|
+
interface WithPermissions extends BasePermissionProps {
|
|
1546
|
+
permissions: Permission[];
|
|
1547
|
+
/** If true, ALL permissions are required. Defaults to ANY. */
|
|
1548
|
+
requireAll?: boolean;
|
|
1549
|
+
permission?: never;
|
|
1550
|
+
resource?: never;
|
|
1551
|
+
operation?: never;
|
|
1552
|
+
}
|
|
1553
|
+
interface WithResourceOperation extends BasePermissionProps {
|
|
1554
|
+
resource: PermissionResource;
|
|
1555
|
+
operation: PermissionOperation;
|
|
1556
|
+
permission?: never;
|
|
1557
|
+
permissions?: never;
|
|
1558
|
+
requireAll?: never;
|
|
1559
|
+
}
|
|
1560
|
+
type PermissionProps = WithPermission | WithPermissions | WithResourceOperation;
|
|
1561
|
+
declare const resolvePermissionProps: (props: PermissionProps) => {
|
|
1562
|
+
permissions: Permission[] | null;
|
|
1563
|
+
requireAll: boolean;
|
|
1564
|
+
};
|
|
1565
|
+
|
|
1566
|
+
type PermissionsRequirementProps = PropsWithChildren<PermissionProps>;
|
|
1567
|
+
/**
|
|
1568
|
+
* Declares a permission requirement for the surrounding subtree without
|
|
1569
|
+
* gating it. Use `PermissionGuard` when the children should be hidden.
|
|
1570
|
+
*/
|
|
1571
|
+
declare const PermissionsRequirement: ({ children, source, enabled, ...props }: PermissionsRequirementProps) => react_jsx_runtime.JSX.Element;
|
|
1572
|
+
|
|
1573
|
+
type PermissionGuardProps = PropsWithChildren<PermissionProps & {
|
|
1574
|
+
/** Rendered when access is denied. Nothing renders when omitted. */
|
|
1575
|
+
fallback?: ReactNode;
|
|
1576
|
+
showLoading?: boolean;
|
|
1577
|
+
loadingComponent?: ReactNode;
|
|
1578
|
+
}>;
|
|
1579
|
+
/**
|
|
1580
|
+
* Hides its children unless the actor holds the declared permission, and
|
|
1581
|
+
* registers the requirement so the page can surface what is missing.
|
|
1582
|
+
*
|
|
1583
|
+
* @example
|
|
1584
|
+
* ```tsx
|
|
1585
|
+
* <PermissionGuard resource="product" operation="create">
|
|
1586
|
+
* <Button>Create</Button>
|
|
1587
|
+
* </PermissionGuard>
|
|
1588
|
+
* ```
|
|
1589
|
+
*/
|
|
1590
|
+
declare const PermissionGuard: ({ children, fallback, showLoading, loadingComponent, source, enabled, ...props }: PermissionGuardProps) => react_jsx_runtime.JSX.Element;
|
|
1591
|
+
|
|
1592
|
+
/**
|
|
1593
|
+
* Route-level guard. Mount as a route's `element` and declare the requirement
|
|
1594
|
+
* on the route's `handle`. Unlike `PermissionGuard`, `requireAll` defaults to
|
|
1595
|
+
* `true` here.
|
|
1596
|
+
*
|
|
1597
|
+
* @example
|
|
1598
|
+
* ```tsx
|
|
1599
|
+
* {
|
|
1600
|
+
* path: "roles",
|
|
1601
|
+
* element: <RoutePermissionGuard />,
|
|
1602
|
+
* handle: { permissions: "rbac_role:read" },
|
|
1603
|
+
* children: [...],
|
|
1604
|
+
* }
|
|
1605
|
+
* ```
|
|
1606
|
+
*/
|
|
1607
|
+
declare const RoutePermissionGuard: () => react_jsx_runtime.JSX.Element;
|
|
1608
|
+
|
|
1609
|
+
/**
|
|
1610
|
+
* Renders the requirements that descendant guards registered with the nearest
|
|
1611
|
+
* `PermissionsRequirementsProvider`. Renders nothing when RBAC is off.
|
|
1612
|
+
*/
|
|
1613
|
+
declare const RequiredPermissionsSection: () => react_jsx_runtime.JSX.Element | null;
|
|
1614
|
+
|
|
1615
|
+
/**
|
|
1616
|
+
* @example
|
|
1617
|
+
* ```tsx
|
|
1618
|
+
* const { can, hasPermission } = usePermissions()
|
|
1619
|
+
*
|
|
1620
|
+
* if (can("customer", "create")) { ... }
|
|
1621
|
+
* if (hasPermission("customer:read")) { ... }
|
|
1622
|
+
* ```
|
|
1623
|
+
*/
|
|
1624
|
+
declare const usePermissions: () => _mercurjs_dashboard_sdk.PermissionsContextValue;
|
|
1625
|
+
|
|
1626
|
+
interface UseRegisterPermissionsOptions {
|
|
1627
|
+
/** If true, ALL permissions are required. Defaults to ANY. */
|
|
1628
|
+
requireAll?: boolean;
|
|
1629
|
+
source?: string;
|
|
1630
|
+
enabled?: boolean;
|
|
1631
|
+
}
|
|
1632
|
+
/**
|
|
1633
|
+
* Declares what the calling subtree needs. No-ops when there is no
|
|
1634
|
+
* `PermissionsRequirementsProvider` above it.
|
|
1635
|
+
*/
|
|
1636
|
+
declare const useRegisterPermissions: (permissions: Permission[] | null | undefined, options?: UseRegisterPermissionsOptions) => void;
|
|
1637
|
+
|
|
1638
|
+
declare const useRequiredPermissions: () => _mercurjs_dashboard_sdk.PermissionRequirement[];
|
|
1639
|
+
|
|
1640
|
+
/**
|
|
1641
|
+
* @example
|
|
1642
|
+
* ```tsx
|
|
1643
|
+
* const { canCreate } = useResourcePermissions("product")
|
|
1644
|
+
* {canCreate && <Button>Create</Button>}
|
|
1645
|
+
* ```
|
|
1646
|
+
*/
|
|
1647
|
+
declare const useResourcePermissions: (resource: PermissionResource) => {
|
|
1648
|
+
canRead: boolean;
|
|
1649
|
+
canCreate: boolean;
|
|
1650
|
+
canUpdate: boolean;
|
|
1651
|
+
canDelete: boolean;
|
|
1652
|
+
can: (operation: "read" | "create" | "update" | "delete") => boolean;
|
|
1653
|
+
resource: PermissionResource;
|
|
1654
|
+
isLoading: boolean;
|
|
1655
|
+
};
|
|
1656
|
+
|
|
1326
1657
|
type WidgetPlacement = "before" | "after";
|
|
1327
1658
|
type Widget = {
|
|
1328
1659
|
Component: ComponentType<{
|
|
@@ -1685,12 +2016,12 @@ declare const buildOfferGridData: (offers: OfferDTO[], products: ProductWithVari
|
|
|
1685
2016
|
variantIdByOffer: Record<string, string>;
|
|
1686
2017
|
};
|
|
1687
2018
|
|
|
1688
|
-
declare const getPriceListStatus: (t: TFunction<"translation">, priceList: HttpTypes.AdminPriceList) => {
|
|
2019
|
+
declare const getPriceListStatus: (t: TFunction<"translation">, priceList: HttpTypes$1.AdminPriceList) => {
|
|
1689
2020
|
color: "green" | "grey" | "orange" | "red";
|
|
1690
2021
|
text: string;
|
|
1691
2022
|
status: string;
|
|
1692
2023
|
};
|
|
1693
|
-
declare const isProductRow: (row: HttpTypes.AdminProduct | HttpTypes.AdminProductVariant) => row is HttpTypes.AdminProduct;
|
|
2024
|
+
declare const isProductRow: (row: HttpTypes$1.AdminProduct | HttpTypes$1.AdminProductVariant) => row is HttpTypes$1.AdminProduct;
|
|
1694
2025
|
type OfferCurrencyPrice = {
|
|
1695
2026
|
amount?: string | number;
|
|
1696
2027
|
};
|
|
@@ -1705,7 +2036,7 @@ type ExtractableOffers = Record<string, ExtractableOffer>;
|
|
|
1705
2036
|
* carries its `offer_id` rule so the override is scoped to that seller's offer
|
|
1706
2037
|
* and never leaks onto another seller's offer of the same variant.
|
|
1707
2038
|
*/
|
|
1708
|
-
declare const extractPricesFromOffers: (offers: ExtractableOffers, regions: HttpTypes.AdminRegion[]) => {
|
|
2039
|
+
declare const extractPricesFromOffers: (offers: ExtractableOffers, regions: HttpTypes$1.AdminRegion[]) => {
|
|
1709
2040
|
amount: number;
|
|
1710
2041
|
rules: {
|
|
1711
2042
|
region_id?: string | undefined;
|
|
@@ -1715,4 +2046,4 @@ declare const extractPricesFromOffers: (offers: ExtractableOffers, regions: Http
|
|
|
1715
2046
|
variant_id: string;
|
|
1716
2047
|
}[];
|
|
1717
2048
|
|
|
1718
|
-
export { type Action, type ActionGroup, ActionMenu, AddressForm, type AttributeChange, type AttributeChangeKind, AttributeValueInput, BadgeListSummary, ChipGroup, CodeCell, CodeHeader, type Command, ConditionalTooltip, ConfirmPrompt, type ConfirmPromptProps, type CoreNavItem, CreatedAtCell, CreatedAtHeader, type CustomFieldsModule, CustomerInfo, DataGrid, DataTable, DateCell, DateHeader, DateRangeDisplay, DisplayExtensionZone, type DisplayExtensionZoneProps, DisplayField, type DisplayFieldProps, DisplaySection, type DisplaySectionField, type DisplaySectionProps, type EditAttributeAttribute, EditAttributeForm, type EditAttributeFormProps, EmailCell, EmailForm, EmailHeader, type ExtendableTable, ExtensionProvider, type ExtensionProviderProps, ExtensionRegistry, type ExtractableOffer, type ExtractableOffers, type FieldDiff, FilePreview, type FileType, FileUpload, type FileUploadProps, type Filter, FilterGroup, Form, FormExtensionZone, type FormExtensionZoneProps, GeneralSectionSkeleton, HeadingSkeleton, IconAvatar, IconButtonSkeleton, ImageAvatar, type ImageRef, IncludesTaxTooltip, InfiniteList, JsonViewSection, JsonViewSectionSkeleton, LinkButton, ListBadge, ListSummary, Listicle, type ListicleProps, type MediaDiff, MetadataForm, MetadataSection, MoneyAmountCell, NameCell, NameHeader, type NavigationModule, NoRecords, type NoRecordsProps, NoResults, type NoResultsProps, OrderBy, PlaceholderCell, PriceListDateStatus, type PriceListGridGroupRow, type PriceListGridOfferRow, type PriceListGridRow, PriceListStatus, PriceListType, type ProductAttributeBatchPayload, ProductAttributeSection, type ProductAttributeSectionProps, type ProductChangeAttribute, ProductChangePanel, type ProductChangePanelProps, type ProductChangeProduct, type ProductChangeResolvers, type ProductChangeVariant, type ProductChangeView, ProgressBar, Query, REFERENCE_FIELDS, type ReferenceField, type ResolvedAttribute, type ResolvedDisplays, type ResolvedFormField, RouteDrawer, RouteFocusModal, SectionRow, type SectionRowProps, SegmentedControl, type SegmentedControlOption, SidebarLink, type SidebarLinkProps, SingleColumnPage, SingleColumnPageSkeleton, Skeleton, SortableList, SortableTree, StackedDrawer, StackedFocusModal, StatusCell, SwitchBox, type TQueryKey, type TabDefinition, TabbedForm, TableFooterSkeleton, TableSectionSkeleton, TableSkeleton, TextCell, TextHeader, TextSkeleton, Thumbnail, TwoColumnPage, TwoColumnPageSkeleton, type UseExtendableFormProps, type UseExtendableTableProps, type UseQueryOptionsWrapper, type VariantGroup, type Widget, type WidgetModule, type WidgetPlacement, WidgetZone, type WidgetZoneProps, type ZoneWidgets, _DataTable, applyNavOverrides, buildAdditionalDataDefaults, buildAdditionalDataSchema, buildOfferGridData, buildProductChangeView, createDataGridHelper, createDataGridPriceColumns, createFormHelper, extractPricesFromOffers, extractReferenceIds, formatFieldValue, getExtensionRegistry, getLinkQuery, getPriceListStatus, humanizeFieldName, isImageList, isPriceListGroupRow, isProductRow, isReferenceField, linkFields, productChangeViewHasContent, queryKeysFactory, useCombinedRefs, useCommandHistory, useDataTable, useDate, useDisplayFieldOverride, useDocumentDirection, useExtendableForm, useExtendableTable, useExtension, useLinkQuery, useQueryParams, useRouteModal, useStackedModal, useTabManagement, useTabbedForm, withLinkFields };
|
|
2049
|
+
export { type Action, type ActionGroup, ActionMenu, AddressForm, AddressSchema, type AttributeChange, type AttributeChangeKind, AttributeValueInput, BadgeListSummary, ChipGroup, ChipInput, CodeCell, CodeHeader, Combobox, type Command, ConditionalTooltip, ConfirmPrompt, type ConfirmPromptProps, type CoreNavItem, CountrySelect, CreatedAtCell, CreatedAtHeader, type CurrencyInfo, type CustomFieldsModule, CustomerInfo, DataGrid, DataTable, DateCell, DateHeader, DateRangeDisplay, DeprecatedPercentageInput, DisplayExtensionZone, type DisplayExtensionZoneProps, DisplayField, type DisplayFieldProps, DisplaySection, type DisplaySectionField, type DisplaySectionProps, type EditAttributeAttribute, EditAttributeForm, type EditAttributeFormProps, EmailCell, EmailForm, EmailHeader, EmailSchema, ErrorBoundary, type ExtendableTable, ExtensionProvider, type ExtensionProviderProps, ExtensionRegistry, type ExtractableOffer, type ExtractableOffers, type FieldDiff, FilePreview, type FileType, FileUpload, type FileUploadProps, type Filter, FilterGroup, Form, FormExtensionZone, type FormExtensionZoneProps, GeneralSectionSkeleton, HandleInput, HeadingSkeleton, IconAvatar, IconButtonSkeleton, ImageAvatar, type ImageRef, IncludesTaxTooltip, InfiniteList, JsonViewSection, JsonViewSectionSkeleton, KeyboundForm, LinkButton, ListBadge, ListSummary, Listicle, type ListicleProps, LocalizedTablePagination, type MediaDiff, MetadataForm, MetadataSection, MoneyAmountCell, NameCell, NameHeader, type NavigationModule, NoRecords, type NoRecordsProps, NoResults, type NoResultsProps, OrderBy, PercentageInput, PermissionGuard, type PermissionGuardProps, type PermissionProps, PermissionsContext, PermissionsProvider, type PermissionsProviderProps, PermissionsRequirement, type PermissionsRequirementProps, PermissionsRequirementsContext, PermissionsRequirementsProvider, PlaceholderCell, PriceListDateStatus, type PriceListGridGroupRow, type PriceListGridOfferRow, type PriceListGridRow, PriceListStatus, PriceListType, type ProductAttributeBatchPayload, ProductAttributeSection, type ProductAttributeSectionProps, type ProductChangeAttribute, ProductChangePanel, type ProductChangePanelProps, type ProductChangeProduct, type ProductChangeResolvers, type ProductChangeVariant, type ProductChangeView, ProgressBar, ProvinceSelect, Query, REFERENCE_FIELDS, type ReferenceField, RequiredPermissionsSection, type ResolvedAttribute, type ResolvedDisplays, type ResolvedFormField, RouteDrawer, RouteFocusModal, RoutePermissionGuard, SectionRow, type SectionRowProps, SegmentedControl, type SegmentedControlOption, SidebarLink, type SidebarLinkProps, SingleColumnPage, SingleColumnPageSkeleton, Skeleton, SortableList, SortableTree, StackedDrawer, StackedFocusModal, type StaticCountry, StatusCell, SwitchBox, type TQueryKey, type TabDefinition, TabbedForm, TableFooterSkeleton, TableSectionSkeleton, TableSkeleton, TextCell, TextHeader, TextSkeleton, Thumbnail, TransferOwnershipSchema, TwoColumnPage, TwoColumnPageSkeleton, type UseExtendableFormProps, type UseExtendableTableProps, type UseQueryOptionsWrapper, type UseRegisterPermissionsOptions, type VariantGroup, VisuallyHidden, type Widget, type WidgetModule, type WidgetPlacement, WidgetZone, type WidgetZoneProps, type ZoneWidgets, _DataTable, applyNavOverrides, buildAdditionalDataDefaults, buildAdditionalDataSchema, buildOfferGridData, buildProductChangeView, countries, createDataGridHelper, createDataGridPriceColumns, createFormHelper, currencies, extractPricesFromOffers, extractReferenceIds, formatFieldValue, genericForwardRef, getCountryByIso2, getCurrencySymbol, getDecimalDigits, getExtensionRegistry, getFormattedAddress, getFormattedCountry, getLinkQuery, getLocaleAmount, getNativeSymbol, getPriceListStatus, getStylizedAmount, humanizeFieldName, isAmountLessThenRoundingError, isImageList, isPriceListGroupRow, isProductRow, isReferenceField, isSameAddress, linkFields, productChangeViewHasContent, queryClient, queryKeysFactory, resolvePermissionProps, useCombinedRefs, useCommandHistory, useDataTable, useDate, useDisplayFieldOverride, useDocumentDirection, useExtendableForm, useExtendableTable, useExtension, useLinkQuery, usePermissions, useQueryParams, useRegisterPermissions, useRequiredPermissions, useResourcePermissions, useRouteModal, useStackedModal, useTabManagement, useTabbedForm, withLinkFields };
|