@mercurjs/dashboard-shared 2.3.9-canary.4 → 2.3.9-canary.5

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 CHANGED
@@ -579,8 +579,9 @@ interface SidebarLinkProps {
579
579
  labelKey: string;
580
580
  descriptionKey: string;
581
581
  icon: ReactNode;
582
+ dataTestid?: string;
582
583
  }
583
- declare const SidebarLink: ({ to, labelKey, descriptionKey, icon, }: SidebarLinkProps) => react_jsx_runtime.JSX.Element;
584
+ declare const SidebarLink: ({ to, labelKey, descriptionKey, icon, dataTestid, }: SidebarLinkProps) => react_jsx_runtime.JSX.Element;
584
585
 
585
586
  type SkeletonProps = {
586
587
  className?: string;
@@ -2568,4 +2569,6 @@ declare const RICH_TEXT_ALLOWED_ATTRIBUTES: string[];
2568
2569
  declare const isHtml: (value?: string | null) => boolean;
2569
2570
  declare const plainTextToHtml: (value?: string | null) => string;
2570
2571
 
2571
- export { type Action, type ActionGroup, ActionMenu, type AdditionalDataScope, AddressForm, AddressSchema, type AttributeChange, type AttributeChangeKind, AttributeValueInput, BadgeListSummary, CORE_ENTRY_PREFIX, CORE_LAYOUTS, 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, type DetailPageDefaultsOptions, type DisplayEntry, DisplayExtensionZone, type DisplayExtensionZoneProps, DisplayField, type DisplayFieldProps, DisplaySection, type DisplaySectionField, type DisplaySectionProps, type EditAttributeAttribute, EditAttributeForm, type EditAttributeFormProps, EmailCell, EmailForm, EmailHeader, EmailSchema, type EntryRenderer, ErrorBoundary, ExtendableFormField, type ExtendableFormFieldProps, type ExtendableTable, type ExtensionGridColumnArgs, ExtensionProvider, type ExtensionProviderProps, ExtensionRegistry, type ExtractableOffer, type ExtractableOffers, type FieldDiff, FilePreview, type FileType, FileUpload, type FileUploadProps, type Filter, FilterGroup, Form, FormExtensionZone, type FormExtensionZoneProps, type FormFieldInputType, type FormFieldOverride, GeneralSectionSkeleton, type GridFieldName, HandleInput, HeadingSkeleton, IconAvatar, IconButtonSkeleton, ImageAvatar, type ImageRef, IncludesTaxTooltip, InfiniteList, JsonViewSection, JsonViewSectionSkeleton, KeyboundForm, LayoutComposer, type LayoutComposerProps, LayoutEntry, type LayoutEntryProps, type LayoutModule, LinkButton, ListBadge, ListSummary, Listicle, type ListicleProps, LocalizedTablePagination, type MediaDiff, MetadataForm, MetadataSection, MoneyAmountCell, NameCell, NameHeader, type NavGroup, type NavGroupItem, type NavItemGroup, type NavigationModule, NoRecords, type NoRecordsProps, NoResults, type NoResultsProps, type OnboardingStep, type OnboardingStepDefault, OrderBy, PercentageInput, PermissionAction, type PermissionActionProps, PermissionGuard, type PermissionGuardProps, type PermissionedCommand, PermissionsContext, PermissionsProvider, type PermissionsProviderProps, PlaceholderCell, type PreferenceModule, 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, RICH_TEXT_ALLOWED_ATTRIBUTES, RICH_TEXT_ALLOWED_TAGS, type RawEntry, type ReferenceField, type RenderDefaultProps, type ResolvedAttribute, type ResolvedDisplays, type ResolvedFormField, RichText, RichTextEditor, type RichTextEditorProps, RouteDrawer, RouteFocusModal, RoutePermissionGuard, SIDEBAR_MENU_CONTENT, SIDEBAR_RAIL_FADE, SectionNoAccess, SectionRow, type SectionRowProps, type SectionWidget, type SectionWidgetMap, SegmentedControl, type SegmentedControlOption, SidebarContext, type SidebarContextValue, SidebarLink, type SidebarLinkProps, SidebarProvider, type SidebarState, SingleColumnLayoutComponent, SingleColumnPage, SingleColumnPageSkeleton, Skeleton, SortableList, SortableTree, StackedDrawer, StackedFocusModal, type StaticCountry, StatusCell, SwitchBox, type TQueryKey, type TabDefinition, TabbedForm, TableFooterSkeleton, TableSectionSkeleton, TableSkeleton, TextCell, TextHeader, TextSkeleton, Thumbnail, TransferOwnershipSchema, TwoColumnLayoutComponent, TwoColumnPage, TwoColumnPageSkeleton, type UseExtendableFormProps, type UseExtendableGridProps, type UseExtendableTableProps, type UseQueryOptionsWrapper, type VariantGroup, VisuallyHidden, type Widget, type WidgetModule, type WidgetPlacement, type WidgetTab, type WidgetTabs, WidgetZone, type WidgetZoneProps, type ZoneWidgets, _DataTable, applyActionPermissions, applyNavGroups, applyNavOverrides, applyReplacements, buildAdditionalDataDefaults, buildAdditionalDataSchema, buildCoreEntries, buildDisplayEntries, buildOfferGridData, buildProductChangeView, buildScopedAdditionalData, buildWidgetEntries, countries, createDataGridHelper, createDataGridPriceColumns, createFormHelper, createWithPermission, currencies, detailPageDefaultEntries, extractPricesFromOffers, extractReferenceIds, extractSectionElements, filterCommandsByPermission, formatFieldValue, genericForwardRef, getCountryByIso2, getCurrencySymbol, getDecimalDigits, getExtensionRegistry, getFormattedAddress, getFormattedCountry, getLinkQuery, getLocaleAmount, getNativeSymbol, getPriceListStatus, getStylizedAmount, groupNavItems, humanizeFieldName, isAmountLessThenRoundingError, isForbidden, isHtml, isImageList, isOrderActionable, isOrderAwaitingAction, isPermitted, isPriceListGroupRow, isProductRow, isReferenceField, isSameAddress, linkFields, mergeLayoutPreferences, mergeListFilters, navOverridesFromPreferences, permissionMapAllows, plainTextToHtml, productChangeViewHasContent, queryClient, queryKeysFactory, refineAdditionalData, resolveFormFieldType, resolveRouteOverrides, richTextContentClasses, sanitizeRichText, toPermissionList, useActionLocks, useCan, useCollapsedSidebar, useCombinedRefs, useCommandHistory, useDataTable, useDate, useDisplayFieldOverride, useDocumentDirection, useExpandedSidebar, useExtendableForm, useExtendableGrid, useExtendableTable, useExtension, useExtensionActivity, useLinkQuery, usePermissionGate, usePermissions, usePermittedCommands, useQueryParams, useResourcePermissions, useRouteModal, useSidebar, useSidebarMenuPlacement, useStackedModal, useTabManagement, useTabbedForm, useWidgetTabs, withLinkFields };
2572
+ declare const getListInitialData: <TData>(queryParams: Record<string, string | undefined>, loaderData: TData | undefined) => TData | undefined;
2573
+
2574
+ export { type Action, type ActionGroup, ActionMenu, type AdditionalDataScope, AddressForm, AddressSchema, type AttributeChange, type AttributeChangeKind, AttributeValueInput, BadgeListSummary, CORE_ENTRY_PREFIX, CORE_LAYOUTS, 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, type DetailPageDefaultsOptions, type DisplayEntry, DisplayExtensionZone, type DisplayExtensionZoneProps, DisplayField, type DisplayFieldProps, DisplaySection, type DisplaySectionField, type DisplaySectionProps, type EditAttributeAttribute, EditAttributeForm, type EditAttributeFormProps, EmailCell, EmailForm, EmailHeader, EmailSchema, type EntryRenderer, ErrorBoundary, ExtendableFormField, type ExtendableFormFieldProps, type ExtendableTable, type ExtensionGridColumnArgs, ExtensionProvider, type ExtensionProviderProps, ExtensionRegistry, type ExtractableOffer, type ExtractableOffers, type FieldDiff, FilePreview, type FileType, FileUpload, type FileUploadProps, type Filter, FilterGroup, Form, FormExtensionZone, type FormExtensionZoneProps, type FormFieldInputType, type FormFieldOverride, GeneralSectionSkeleton, type GridFieldName, HandleInput, HeadingSkeleton, IconAvatar, IconButtonSkeleton, ImageAvatar, type ImageRef, IncludesTaxTooltip, InfiniteList, JsonViewSection, JsonViewSectionSkeleton, KeyboundForm, LayoutComposer, type LayoutComposerProps, LayoutEntry, type LayoutEntryProps, type LayoutModule, LinkButton, ListBadge, ListSummary, Listicle, type ListicleProps, LocalizedTablePagination, type MediaDiff, MetadataForm, MetadataSection, MoneyAmountCell, NameCell, NameHeader, type NavGroup, type NavGroupItem, type NavItemGroup, type NavigationModule, NoRecords, type NoRecordsProps, NoResults, type NoResultsProps, type OnboardingStep, type OnboardingStepDefault, OrderBy, PercentageInput, PermissionAction, type PermissionActionProps, PermissionGuard, type PermissionGuardProps, type PermissionedCommand, PermissionsContext, PermissionsProvider, type PermissionsProviderProps, PlaceholderCell, type PreferenceModule, 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, RICH_TEXT_ALLOWED_ATTRIBUTES, RICH_TEXT_ALLOWED_TAGS, type RawEntry, type ReferenceField, type RenderDefaultProps, type ResolvedAttribute, type ResolvedDisplays, type ResolvedFormField, RichText, RichTextEditor, type RichTextEditorProps, RouteDrawer, RouteFocusModal, RoutePermissionGuard, SIDEBAR_MENU_CONTENT, SIDEBAR_RAIL_FADE, SectionNoAccess, SectionRow, type SectionRowProps, type SectionWidget, type SectionWidgetMap, SegmentedControl, type SegmentedControlOption, SidebarContext, type SidebarContextValue, SidebarLink, type SidebarLinkProps, SidebarProvider, type SidebarState, SingleColumnLayoutComponent, SingleColumnPage, SingleColumnPageSkeleton, Skeleton, SortableList, SortableTree, StackedDrawer, StackedFocusModal, type StaticCountry, StatusCell, SwitchBox, type TQueryKey, type TabDefinition, TabbedForm, TableFooterSkeleton, TableSectionSkeleton, TableSkeleton, TextCell, TextHeader, TextSkeleton, Thumbnail, TransferOwnershipSchema, TwoColumnLayoutComponent, TwoColumnPage, TwoColumnPageSkeleton, type UseExtendableFormProps, type UseExtendableGridProps, type UseExtendableTableProps, type UseQueryOptionsWrapper, type VariantGroup, VisuallyHidden, type Widget, type WidgetModule, type WidgetPlacement, type WidgetTab, type WidgetTabs, WidgetZone, type WidgetZoneProps, type ZoneWidgets, _DataTable, applyActionPermissions, applyNavGroups, applyNavOverrides, applyReplacements, buildAdditionalDataDefaults, buildAdditionalDataSchema, buildCoreEntries, buildDisplayEntries, buildOfferGridData, buildProductChangeView, buildScopedAdditionalData, buildWidgetEntries, countries, createDataGridHelper, createDataGridPriceColumns, createFormHelper, createWithPermission, currencies, detailPageDefaultEntries, extractPricesFromOffers, extractReferenceIds, extractSectionElements, filterCommandsByPermission, formatFieldValue, genericForwardRef, getCountryByIso2, getCurrencySymbol, getDecimalDigits, getExtensionRegistry, getFormattedAddress, getFormattedCountry, getLinkQuery, getListInitialData, getLocaleAmount, getNativeSymbol, getPriceListStatus, getStylizedAmount, groupNavItems, humanizeFieldName, isAmountLessThenRoundingError, isForbidden, isHtml, isImageList, isOrderActionable, isOrderAwaitingAction, isPermitted, isPriceListGroupRow, isProductRow, isReferenceField, isSameAddress, linkFields, mergeLayoutPreferences, mergeListFilters, navOverridesFromPreferences, permissionMapAllows, plainTextToHtml, productChangeViewHasContent, queryClient, queryKeysFactory, refineAdditionalData, resolveFormFieldType, resolveRouteOverrides, richTextContentClasses, sanitizeRichText, toPermissionList, useActionLocks, useCan, useCollapsedSidebar, useCombinedRefs, useCommandHistory, useDataTable, useDate, useDisplayFieldOverride, useDocumentDirection, useExpandedSidebar, useExtendableForm, useExtendableGrid, useExtendableTable, useExtension, useExtensionActivity, useLinkQuery, usePermissionGate, usePermissions, usePermittedCommands, useQueryParams, useResourcePermissions, useRouteModal, useSidebar, useSidebarMenuPlacement, useStackedModal, useTabManagement, useTabbedForm, useWidgetTabs, withLinkFields };
package/dist/index.js CHANGED
@@ -10010,7 +10010,8 @@ var require_common40 = __commonJS({
10010
10010
  "../types/dist/payout/common.js"(exports) {
10011
10011
  "use strict";
10012
10012
  Object.defineProperty(exports, "__esModule", { value: true });
10013
- exports.PAYOUT_MODULE_OPTION_DEFAULTS = exports.PayoutEvents = exports.PayoutStatus = exports.PayoutAccountStatus = void 0;
10013
+ exports.PayoutStatusReason = exports.PayoutModuleEvents = exports.PayoutStatus = exports.PayoutKycStatus = exports.PayoutAccountStatus = void 0;
10014
+ exports.resolvePayoutModuleOptions = resolvePayoutModuleOptions;
10014
10015
  var PayoutAccountStatus;
10015
10016
  (function(PayoutAccountStatus2) {
10016
10017
  PayoutAccountStatus2["PENDING"] = "pending";
@@ -10018,26 +10019,53 @@ var require_common40 = __commonJS({
10018
10019
  PayoutAccountStatus2["RESTRICTED"] = "restricted";
10019
10020
  PayoutAccountStatus2["REJECTED"] = "rejected";
10020
10021
  })(PayoutAccountStatus || (exports.PayoutAccountStatus = PayoutAccountStatus = {}));
10022
+ var PayoutKycStatus;
10023
+ (function(PayoutKycStatus2) {
10024
+ PayoutKycStatus2["PENDING_SUBMISSION"] = "pending_submission";
10025
+ PayoutKycStatus2["PENDING_APPROVAL"] = "pending_approval";
10026
+ PayoutKycStatus2["APPROVED"] = "approved";
10027
+ PayoutKycStatus2["REFUSED"] = "refused";
10028
+ })(PayoutKycStatus || (exports.PayoutKycStatus = PayoutKycStatus = {}));
10021
10029
  var PayoutStatus;
10022
10030
  (function(PayoutStatus2) {
10023
10031
  PayoutStatus2["PENDING"] = "pending";
10032
+ PayoutStatus2["ON_HOLD"] = "on_hold";
10024
10033
  PayoutStatus2["PROCESSING"] = "processing";
10025
10034
  PayoutStatus2["PAID"] = "paid";
10026
10035
  PayoutStatus2["FAILED"] = "failed";
10027
- PayoutStatus2["CANCELED"] = "canceled";
10036
+ PayoutStatus2["ABORTED"] = "aborted";
10028
10037
  })(PayoutStatus || (exports.PayoutStatus = PayoutStatus = {}));
10029
- var PayoutEvents;
10030
- (function(PayoutEvents2) {
10031
- PayoutEvents2["OrderCaptureRequested"] = "order.capture_requested";
10032
- PayoutEvents2["OrderAuthorizationExpired"] = "order.authorization_expired";
10033
- PayoutEvents2["PayoutRequested"] = "payout.requested";
10034
- })(PayoutEvents || (exports.PayoutEvents = PayoutEvents = {}));
10035
- exports.PAYOUT_MODULE_OPTION_DEFAULTS = {
10036
- disabled: false,
10037
- authorizationWindowMs: 7 * 24 * 60 * 60 * 1e3,
10038
- sellerActionWindowMs: 72 * 60 * 60 * 1e3,
10039
- captureSafetyBufferMs: 24 * 60 * 60 * 1e3,
10040
- requiredFulfillmentStatus: "fulfilled"
10038
+ exports.PayoutModuleEvents = {
10039
+ ACCOUNT_UPDATED: "payout_account.updated",
10040
+ PAYOUT_FAILED: "payout.failed",
10041
+ PAYOUT_REVERSAL_FAILED: "payout.reversal_failed",
10042
+ WEBHOOK_RECEIVED: "payout.webhook_received"
10043
+ };
10044
+ function resolvePayoutModuleOptions(options) {
10045
+ return {
10046
+ onboarding: {
10047
+ returnUrl: "",
10048
+ refreshBaseUrl: "",
10049
+ prefill: false,
10050
+ tokenTtlSeconds: 24 * 60 * 60,
10051
+ ...options?.onboarding ?? {}
10052
+ }
10053
+ };
10054
+ }
10055
+ exports.PayoutStatusReason = {
10056
+ ACCOUNT_NOT_READY: "account_not_ready",
10057
+ ACCOUNT_PAYOUTS_DISABLED: "account_payouts_disabled",
10058
+ ORDER_NOT_READY: "order_not_ready",
10059
+ ORDER_ABORTED: "order_aborted",
10060
+ PAYMENT_NOT_READY: "payment_not_ready",
10061
+ PAYMENT_FAILED: "payment_failed",
10062
+ PAYMENT_CANCELED: "payment_canceled",
10063
+ PAYMENT_REFUNDED: "payment_refunded",
10064
+ PAYOUT_NOT_READY: "payout_not_ready",
10065
+ REFUND_ABORTED: "refund_aborted",
10066
+ REFUND_ABSORBED: "refund_absorbed",
10067
+ INVALID_AMOUNT: "invalid_amount",
10068
+ PROVIDER_ERROR: "provider_error"
10041
10069
  };
10042
10070
  }
10043
10071
  });
@@ -10047,6 +10075,25 @@ var require_provider11 = __commonJS({
10047
10075
  "../types/dist/payout/provider.js"(exports) {
10048
10076
  "use strict";
10049
10077
  Object.defineProperty(exports, "__esModule", { value: true });
10078
+ exports.PayoutProviderError = exports.PayoutProviderErrorCode = void 0;
10079
+ var PayoutProviderErrorCode;
10080
+ (function(PayoutProviderErrorCode2) {
10081
+ PayoutProviderErrorCode2["UNKNOWN"] = "unknown";
10082
+ PayoutProviderErrorCode2["REFUSED"] = "refused";
10083
+ PayoutProviderErrorCode2["FINAL"] = "final";
10084
+ })(PayoutProviderErrorCode || (exports.PayoutProviderErrorCode = PayoutProviderErrorCode = {}));
10085
+ var PayoutProviderError = class extends Error {
10086
+ constructor(message, options) {
10087
+ super(message);
10088
+ __publicField(this, "code");
10089
+ this.name = "PayoutProviderError";
10090
+ this.code = options?.code ?? (options?.final ? PayoutProviderErrorCode.FINAL : PayoutProviderErrorCode.UNKNOWN);
10091
+ }
10092
+ get final() {
10093
+ return this.code === PayoutProviderErrorCode.FINAL;
10094
+ }
10095
+ };
10096
+ exports.PayoutProviderError = PayoutProviderError;
10050
10097
  }
10051
10098
  });
10052
10099
 
@@ -10058,6 +10105,14 @@ var require_mutations24 = __commonJS({
10058
10105
  }
10059
10106
  });
10060
10107
 
10108
+ // ../types/dist/payout/service.js
10109
+ var require_service31 = __commonJS({
10110
+ "../types/dist/payout/service.js"(exports) {
10111
+ "use strict";
10112
+ Object.defineProperty(exports, "__esModule", { value: true });
10113
+ }
10114
+ });
10115
+
10061
10116
  // ../types/dist/payout/index.js
10062
10117
  var require_payout2 = __commonJS({
10063
10118
  "../types/dist/payout/index.js"(exports) {
@@ -10082,6 +10137,7 @@ var require_payout2 = __commonJS({
10082
10137
  __exportStar(require_common40(), exports);
10083
10138
  __exportStar(require_provider11(), exports);
10084
10139
  __exportStar(require_mutations24(), exports);
10140
+ __exportStar(require_service31(), exports);
10085
10141
  }
10086
10142
  });
10087
10143
 
@@ -10102,7 +10158,7 @@ var require_mutations25 = __commonJS({
10102
10158
  });
10103
10159
 
10104
10160
  // ../types/dist/offer/service.js
10105
- var require_service31 = __commonJS({
10161
+ var require_service32 = __commonJS({
10106
10162
  "../types/dist/offer/service.js"(exports) {
10107
10163
  "use strict";
10108
10164
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -10153,7 +10209,7 @@ var require_offer2 = __commonJS({
10153
10209
  Object.defineProperty(exports, "__esModule", { value: true });
10154
10210
  __exportStar(require_common41(), exports);
10155
10211
  __exportStar(require_mutations25(), exports);
10156
- __exportStar(require_service31(), exports);
10212
+ __exportStar(require_service32(), exports);
10157
10213
  __exportStar(require_leadtime(), exports);
10158
10214
  }
10159
10215
  });
@@ -10341,6 +10397,7 @@ var require_modules = __commonJS({
10341
10397
  MercurModules2["CODEGEN"] = "codegen";
10342
10398
  MercurModules2["PROMOTION_COST"] = "promotion_cost";
10343
10399
  MercurModules2["REVIEW"] = "review";
10400
+ MercurModules2["TELEMETRY"] = "telemetry";
10344
10401
  })(MercurModules || (exports.MercurModules = MercurModules = {}));
10345
10402
  }
10346
10403
  });
@@ -15886,9 +15943,10 @@ var SidebarLink = ({
15886
15943
  to,
15887
15944
  labelKey,
15888
15945
  descriptionKey,
15889
- icon
15946
+ icon,
15947
+ dataTestid
15890
15948
  }) => {
15891
- return /* @__PURE__ */ jsx28(Link6, { to, className: "group outline-none", children: /* @__PURE__ */ jsx28("div", { className: "flex flex-col gap-2 px-2 pb-2", children: /* @__PURE__ */ jsx28("div", { className: "shadow-elevation-card-rest bg-ui-bg-component transition-fg hover:bg-ui-bg-component-hover active:bg-ui-bg-component-pressed group-focus-visible:shadow-borders-interactive-with-active rounded-md px-4 py-2", children: /* @__PURE__ */ jsxs21("div", { className: "flex items-center gap-4", children: [
15949
+ return /* @__PURE__ */ jsx28(Link6, { to, className: "group outline-none", "data-testid": dataTestid, children: /* @__PURE__ */ jsx28("div", { className: "flex flex-col gap-2 px-2 pb-2", children: /* @__PURE__ */ jsx28("div", { className: "shadow-elevation-card-rest bg-ui-bg-component transition-fg hover:bg-ui-bg-component-hover active:bg-ui-bg-component-pressed group-focus-visible:shadow-borders-interactive-with-active rounded-md px-4 py-2", children: /* @__PURE__ */ jsxs21("div", { className: "flex items-center gap-4", children: [
15892
15950
  /* @__PURE__ */ jsx28(IconAvatar, { children: icon }),
15893
15951
  /* @__PURE__ */ jsxs21("div", { className: "flex flex-1 flex-col", children: [
15894
15952
  /* @__PURE__ */ jsx28(Text11, { size: "small", leading: "compact", weight: "plus", children: labelKey }),
@@ -30327,6 +30385,14 @@ var extractPricesFromOffers = (offers, regions) => {
30327
30385
  return [...currencyPrices, ...regionPrices];
30328
30386
  });
30329
30387
  };
30388
+
30389
+ // src/lib/list-initial-data.ts
30390
+ var getListInitialData = (queryParams, loaderData) => {
30391
+ const hasParams = Object.values(queryParams).some(
30392
+ (value) => value !== void 0 && value !== ""
30393
+ );
30394
+ return hasParams ? void 0 : loaderData;
30395
+ };
30330
30396
  export {
30331
30397
  ActionMenu,
30332
30398
  AddressForm,
@@ -30482,6 +30548,7 @@ export {
30482
30548
  getFormattedAddress,
30483
30549
  getFormattedCountry,
30484
30550
  getLinkQuery,
30551
+ getListInitialData,
30485
30552
  getLocaleAmount,
30486
30553
  getNativeSymbol,
30487
30554
  getPriceListStatus,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mercurjs/dashboard-shared",
3
- "version": "2.3.9-canary.4",
3
+ "version": "2.3.9-canary.5",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/mercurjs/mercur",
@@ -34,7 +34,7 @@
34
34
  "@medusajs/dashboard": "2.22.0",
35
35
  "@medusajs/icons": "2.22.0",
36
36
  "@medusajs/ui": "4.2.3",
37
- "@mercurjs/client": "2.3.9-canary.4",
37
+ "@mercurjs/client": "2.3.9-canary.5",
38
38
  "@radix-ui/react-dialog": "1.1.19",
39
39
  "@radix-ui/react-dismissable-layer": "1.1.4",
40
40
  "@tanstack/react-query": "5.64.2",
@@ -70,9 +70,9 @@
70
70
  },
71
71
  "devDependencies": {
72
72
  "@medusajs/types": "2.22.0",
73
- "@mercurjs/core": "2.3.9-canary.4",
74
- "@mercurjs/dashboard-sdk": "2.3.9-canary.4",
75
- "@mercurjs/types": "2.3.9-canary.4",
73
+ "@mercurjs/core": "2.3.9-canary.5",
74
+ "@mercurjs/dashboard-sdk": "2.3.9-canary.5",
75
+ "@mercurjs/types": "2.3.9-canary.5",
76
76
  "@types/lodash.debounce": "^4.0.8",
77
77
  "@types/react": "^18.3.2",
78
78
  "@types/react-dom": "^18.2.22",