@shipengine/elements 2.8.0 → 2.9.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.
- package/checks.js +1 -1
- package/hooks.js +1 -1
- package/index.js +1 -1
- package/package.json +2 -1
- package/src/components/grid-filters/components/index.d.ts +1 -0
- package/src/components/grid-filters/components/label-id-filter/index.d.ts +1 -0
- package/src/components/grid-filters/components/label-id-filter/label-id-filter-shema.d.ts +9 -0
- package/src/components/grid-filters/components/label-id-filter/label-id-filter.d.ts +23 -0
- package/src/components/grid-filters/components/label-id-filter/label-id-filter.styles.d.ts +7 -0
- package/src/components/grid-filters/grid-filters.d.ts +1 -0
- package/src/elements/label-layout/label-layout-element.d.ts +5 -0
- package/src/elements/labels-grid/hooks/use-labels-grid.d.ts +66 -22
- package/src/elements/labels-grid/labels-grid.d.ts +12 -9
- package/src/elements/manage-carriers/manage-carriers.d.ts +5 -0
- package/src/elements/manage-external-carriers/manage-external-carriers.d.ts +5 -0
- package/src/elements/manage-funding/manage-funding-element.d.ts +5 -0
- package/src/elements/manage-warehouses/manage-warehouses.d.ts +5 -0
- package/src/elements/payment-method-settings/payment-method-settings-element.d.ts +5 -0
- package/src/elements/purchase-label/purchase-label.d.ts +5 -0
- package/src/elements/shipment-summary/shipment-summary.d.ts +9 -0
- package/src/elements/shipments-grid/shipments-grid.d.ts +30 -17
- package/src/elements/theme-creator/theme-creator.d.ts +5 -0
- package/src/elements/transaction-history/transaction-history-element.d.ts +5 -0
- package/src/elements/unit-settings/unit-settings-element.d.ts +5 -0
- package/src/elements/vat-settings/vat-settings-element.d.ts +5 -0
- package/src/elements/void-label/void-label.d.ts +5 -0
- package/src/locales/en/index.d.ts +5 -0
- package/src/utilities/checks.d.ts +1 -0
- package/src/utilities/feature-flags/types.d.ts +4 -0
- package/src/workflows/account-settings/account-settings.d.ts +5 -0
- package/src/workflows/carrier-services/carrier-services.d.ts +5 -0
- package/src/workflows/connect-external-carrier/connect-external-carrier.d.ts +5 -0
- package/src/workflows/onboarding/onboarding.d.ts +6 -1
- package/transaction-history-element.js +1 -1
- package/use-unit-settings.js +1 -1
- package/usePager.js +1 -1
- package/utilities.js +1 -1
- package/vat.js +1 -1
- package/wallet-form.js +1 -1
- package/workflows.js +1 -1
package/checks.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
import{jwtDecode as t}from"jwt-decode";const r=(t,r)=>!!(null==t?void 0:t.length)&&!(!r||!r.find((t=>!(!t.accountNumber&&"stamps_com"===t.carrierCode)))),e=r=>{try{return t(r).tenant}catch(t){return}};export{e as g,r as i};
|
package/hooks.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{R as RootPortalProvider,b as useAddressValidation,u as useCountryCodeOptions,c as useRootPortal,a as useStateCodeOptions,d as useToggle}from"./use-toggle.js";export{P as PudoType,l as useBlackboxDetection,u as useConfirmationOptions,a as useCustomsContentsOptions,b as useCustomsNonDeliveryOptions,c as useDateRangeOptions,d as useInsuranceProviderOptions,m as useNestedForm,e as usePackageOptions,f as useRateOptions,n as useRunOnceOnTrue,o as useScrubErrors,g as useServiceCodeOptions,k as useServicePoints,h as useShipmentMetadata,i as useShippingPresetsOptions,j as useWarehouseOptions}from"./use-scrub-errors.js";export{u as useGetServiceName}from"./use-get-service-name.js";export{P as PageLayoutProvider,u as useExpirationMonthOptions,a as useHelpers,b as usePageLayout}from"./use-page-layout.js";import"react";import"./address.js";import"./carrier.js";import"date-fns/format";import"date-fns/locale";import"date-fns/parse";import"humps";import"@shipengine/react-api";import"lodash/isEqual";import"lodash/omit";import"react-dom";import"@emotion/react/jsx-runtime";import"react-i18next";import"./shipment.js";import"lodash/orderBy";import"@shipengine/giger";import"@emotion/react";import"js-base64";import"./checks.js";
|
|
1
|
+
export{R as RootPortalProvider,b as useAddressValidation,u as useCountryCodeOptions,c as useRootPortal,a as useStateCodeOptions,d as useToggle}from"./use-toggle.js";export{P as PudoType,l as useBlackboxDetection,u as useConfirmationOptions,a as useCustomsContentsOptions,b as useCustomsNonDeliveryOptions,c as useDateRangeOptions,d as useInsuranceProviderOptions,m as useNestedForm,e as usePackageOptions,f as useRateOptions,n as useRunOnceOnTrue,o as useScrubErrors,g as useServiceCodeOptions,k as useServicePoints,h as useShipmentMetadata,i as useShippingPresetsOptions,j as useWarehouseOptions}from"./use-scrub-errors.js";export{u as useGetServiceName}from"./use-get-service-name.js";export{P as PageLayoutProvider,u as useExpirationMonthOptions,a as useHelpers,b as usePageLayout}from"./use-page-layout.js";import"react";import"./address.js";import"./carrier.js";import"date-fns/format";import"date-fns/locale";import"date-fns/parse";import"humps";import"@shipengine/react-api";import"lodash/isEqual";import"lodash/omit";import"react-dom";import"@emotion/react/jsx-runtime";import"react-i18next";import"./shipment.js";import"lodash/orderBy";import"@shipengine/giger";import"@emotion/react";import"js-base64";import"./checks.js";import"jwt-decode";
|
package/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{E as X,a as _}from"./actions-menu.js";export{z as Actions,y as ActionsMenu,A as AddFundsForm,b as AutoFundingForm,B as ButtonGroup,C as CarrierBalance,d as CarrierConnectionCard,e as CarrierIcon,f as CollapsiblePanel,h as CopyButton,i as Cube,D as DateRangeCombo,j as DateRangeSelect,k as DisplayTerm,l as EditBillingForm,a as ElementsContext,E as ElementsContextProvider,m as ErrorFallback,F as FieldLabel,n as FormPortal,o as FundAndPurchase,H as HistoryCard,p as HistoryCardExtension,I as InlineLabel,q as ItemsBreakdown,L as LinkAction,r as Loader,P as PoweredByShipEngine,R as RateDetails,S as Section,t as SettingsCard,u as SkeletonCarrierRow,v as Spacer,w as Spread,T as Tabs,V as VatForm,W as WalletCard,x as WarehouseForm,c as autoFundingSchema,g as getAddFundsSchema,s as styles,G as useElements}from"./actions-menu.js";export{C as CarrierLogo}from"./carrier-logo.js";export{C as CellFormattedDate,D as Drawer,E as ErrorState,G as GridController,b as GridFilters,a as GridFooter,u as usePager}from"./usePager.js";export{f as Field,P as Pager,S as StoryNotes,a as SuspendText}from"./suspend-text.js";import{R as Y}from"./use-toggle.js";export{P as Portal,R as RootPortalProvider,b as useAddressValidation,u as useCountryCodeOptions,c as useRootPortal,a as useStateCodeOptions,d as useToggle}from"./use-toggle.js";export{C as Country,U as UsState,d as UsaCity,c as countries,a as countryCodes,e as euCountryCodes,p as postalCodeRegex,f as usCities,b as usStateCodes,u as usStates}from"./address.js";export{a as CarrierServices,b as ConnectExternalCarrier,p as PurchaseLabel,s as ShipmentSummary,v as VoidLabel,c as createElement}from"./use-unit-settings.js";export{e as LabelLayout,l as LabelsGrid,m as ManageCarriers,b as ManageExternalCarriers,d as ManageFunding,a as ManageWarehouses,p as PaymentMethodSettings,s as ShipmentsGrid,t as ThemeCreator,T as ThemeCreatorProvider,f as TransactionHistory,c as UnitSettings,u as useThemeCreator}from"./transaction-history-element.js";export{e as extendZod}from"./zod.js";export{P as PudoType,l as useBlackboxDetection,u as useConfirmationOptions,a as useCustomsContentsOptions,b as useCustomsNonDeliveryOptions,c as useDateRangeOptions,d as useInsuranceProviderOptions,m as useNestedForm,e as usePackageOptions,f as useRateOptions,n as useRunOnceOnTrue,o as useScrubErrors,g as useServiceCodeOptions,k as useServicePoints,h as useShipmentMetadata,i as useShippingPresetsOptions,j as useWarehouseOptions}from"./use-scrub-errors.js";export{P as PageLayoutProvider,u as useExpirationMonthOptions,a as useHelpers,b as usePageLayout}from"./use-page-layout.js";export{u as useGetServiceName}from"./use-get-service-name.js";export{m as moneySchema}from"./money.js";export{p as phoneSchema,a as phoneSchemaUnvalidated}from"./phone.js";export{a as assert,r as raise}from"./assertions.js";export{i as isOnboarded}from"./checks.js";export{b as convertDimensions,c as createDictionary,f as formatDimensions,h as getCancelledShipment,d as getIsCustomsRequiredForShipment,g as getIsInternationalShipment,e as getPendingShipment,j as getShipmentByStatus,a as isCollectionService,i as isPudoEligibleRate,m as moveCustomsItemsToProducts}from"./shipment.js";import{_ as Z}from"./carrier.js";export{L as addEmailToValidation,t as addSpaceBetweenWords,w as calculateTotal,k as capitalizeFirstLetter,l as capitalizeFirstLetterOfEachWord,u as currencySymbol,e as daysAfter,S as filterFundingSourceCarriers,a as findDateLocale,b as formatByDateAndLocale,x as formatCreditCardNumber,f as formatDate,c as formatDateDDMMYY,d as formatDateDDMMYYYY,y as formatExpiration,v as formatMoney,O as getCarrierIdByCarrierCode,z as getCurrencyFromString,A as getCurrencySymbolFromString,h as getExpirationYears,P as getLogoOrIconByCarrierCode,B as getRateRequiresAcknowledgement,j as getRelativeDates,C as getTotalRateAmount,g as getlocaleDateStringFormat,E as isDomesticAddress,K as isEmptyAddress,Q as isGlobalPostEligible,F as isMilitaryAddress,i as isNowOrInTheFuture,I as isPoBox,J as isPoBoxAddress,R as isSendleEligible,G as isUnitedStatesTerritory,H as isUnsupportedByUps,N as isUpsCarrier,M as isUspsCarrier,m as mostRecent,n as nextDayCutoff,o as omitTime,D as overrideCarrierCodes,p as parseLocaleDate,q as pascalize,r as replaceSpacesWithDashes,s as sortByCreationDate}from"./carrier.js";export{k as convertDecimalWeightToFractionalWeight,j as convertFractionalWeightToDecimalWeight,h as convertPoundsAndOuncesToOunces,l as convertWeight,c as createCodedErrors,m as formatFractionalWeight,g as getCustomsFromSalesOrder,o as getDefaultWarehouse,b as getIsCustomsRequiredForSalesOrder,d as getRequestedServices,e as getSalesOrderItemsFromSalesOrderOrShipment,f as isDecimalWeight,n as isFlatRatePackageCode,i as isMetricWeightUnit,a as throwAny,t as throwJoinedMessages}from"./warehouses.js";import{g as $,d as ee}from"./vat.js";export{N as NO_VAT_COUNTRIES,c as aggregateRateDetailItems,e as calculateRateDetailBreakdown,h as createStyles,d as deepMergeFeatures,j as errorMap,f as featureFlagComponentNameLookup,a as formLogger,g as getDefaultFeatures,k as getIsVatRequired,i as isObject,b as isString,t as trackingStatusFormatter,v as validationResolver}from"./vat.js";export{a as AccountSettings,l as LabelWorkflow,o as Onboarding}from"./wallet-form.js";import{jsx as ae}from"@emotion/react/jsx-runtime";import{GigerProvider as te,GigerTestProvider as re}from"@shipengine/giger";import{Theme as se}from"@shipengine/giger-theme";import{ShipEngine as oe}from"@shipengine/react-api";import ie from"axios";import{useCallback as ne,useMemo as le}from"react";import"date-fns/isToday";import"react-hook-form";import"react-i18next";import"@emotion/react";import"lodash/isEqual";import"zod";import"copy-to-clipboard";import"js-base64";import"libphonenumber-js/min";import"lodash/omit";import"card-validator";import"react-use";import"date-fns/subDays";import"react-dom";import"@tanstack/react-query";import"lodash/merge";import"lodash/mergeWith";import"humps";import"@shipengine/js-api";import"@rjsf/core";import"@rjsf/validator-ajv8";import"lodash/camelCase";import"use-debounce";import"classnames";import"i18next";import"i18next-browser-languagedetector";import"@emotion/cache";import"stylis";import"date-fns/formatISO";import"date-fns/isSameDay";import"date-fns/isWithinInterval";import"date-fns/setHours";import"date-fns/setMinutes";import"lodash/orderBy";import"date-fns/format";import"date-fns/locale";import"date-fns/parse";import"lodash/get";import"@hookform/resolvers/zod";var pe={fallback:{borderRadius:{L:"16px",M:"8px",S:"4px",XL:"32px",XS:"2px"},breakPoints:{desktop:1280,mobileLarge:480,tablet:768,tabletLarge:960},card:{borderRadius:{desktop:"8px",mobile:"4px",tablet:"8px"}},components:{Button:{borderRadius:"4px"},Checkbox:{borderRadius:"2px",square:!1},Chip:{backgroundColor:"#f4f4f4",border:"none",borderRadius:"16px",color:"#706f6f",fontWeight:600,isSelected:{backgroundColor:"#EDEDED",border:"none",color:"#7A7A7A"},padding:"4px 16px"},Dialog:{action:{justifyContent:"center"},content:{padding:24,textAlign:"center"},dialog:{backgroundColor:"rgba(0, 0, 0, 0.26)",borderRadius:"4px"},header:{borderBottom:"2px solid #d3d3d3",padding:24,titleColor:"#616161"}},Field:{color:"#373737",fontWeight:700,placeholder:{fontWeight:700}},FieldContainer:{borderRadius:"4px"},Link:{activeColor:"#787878",defaultColor:"#616161",hoverColor:"#303030",isDark:{activeColor:"#787878",defaultColor:"#fff",hoverColor:"#fff",visitedColor:"#fff"},visitedColor:"#303030"},Table:{border:"none",borderRadius:"4px",boxShadow:"0 0 12px rgba(0, 0, 0, 0.1)"},Typography:{body1:{fontSize:"16px",fontWeight:400,letterSpacing:0,lineHeight:"24px"},body2:{fontSize:"14px",fontWeight:400,letterSpacing:3,lineHeight:"20px"},heading1:{fontSize:"48px",fontWeight:700,letterSpacing:0,lineHeight:"72px"},heading2:{fontSize:"32px",fontWeight:700,letterSpacing:1,lineHeight:"48px"},heading3:{fontSize:"24px",fontWeight:700,letterSpacing:3,lineHeight:"48px"},heading4:{fontSize:"20px",fontWeight:700,letterSpacing:3,lineHeight:"32px"},heading5:{fontSize:"18px",fontWeight:700,letterSpacing:3,lineHeight:"28px"},heading6:{fontSize:"16px",fontWeight:700,letterSpacing:3,lineHeight:"24px"},small:{fontSize:"12px",fontWeight:400,letterSpacing:5,lineHeight:"20px"},subtitle1:{fontSize:"16px",fontWeight:600,letterSpacing:3,lineHeight:"24px"},subtitle2:{fontSize:"14px",fontWeight:600,letterSpacing:5,lineHeight:"20px"}}},defaultFontFamily:"Arial",elevations:{above:{boxShadow:"0 0 12px rgba(0, 0, 0, 0.1)",zIndex:1e3},backdrop:{boxShadow:"none",zIndex:1007},flat1:{boxShadow:"0 2px 2px rgba(0, 0, 0, 0.1)",zIndex:1},flat2:{boxShadow:"0 2px 2px rgba(0, 0, 0, 0.1)",zIndex:1e3},overlay1:{boxShadow:"0 0 24px rgba(0, 0, 0, 0.1)",zIndex:1006},overlay2:{boxShadow:"0 0 24px rgba(0, 0, 0, 0.1)",zIndex:1008},popout1:{boxShadow:"0 4px 16px rgba(0, 0, 0, 0.1)",zIndex:1004},popout2:{boxShadow:"0 4px 16px rgba(0, 0, 0, 0.1)",zIndex:1005},raised:{boxShadow:"0 8px 8px rgba(0, 0, 0, 0.1)",zIndex:1002},raisedInverted1:{boxShadow:"0 -8px 8px rgba(0, 0, 0, 0.1)",zIndex:1002},raisedInverted2:{boxShadow:"0 -8px 8px rgba(0, 0, 0, 0.1)",zIndex:1003},sticky:{boxShadow:"none",zIndex:1001}},fontFaces:[],grid:{desktop:{columns:12,gutter:24,horizontalSpace:16,verticalSpace:24},desktopLarge:{columns:12,gutter:24,horizontalSpace:16,verticalSpace:24},mobile:{columns:4,gutter:16,horizontalSpace:16,verticalSpace:16},mobileLarge:{columns:4,gutter:16,horizontalSpace:16,verticalSpace:16},tablet:{columns:12,gutter:24,horizontalSpace:16,verticalSpace:24},tabletLarge:{columns:12,gutter:24,horizontalSpace:16,verticalSpace:24}},iconSize:{extra_large:"48px",large:"32px",medium:"20px",regular:"24px",small:"16px"},palette:{alert:{light:"#ffe7ca",main:"#725200"},black:"#000",dataVisualization:{highContrast:{blue:"#3970C1",blueDark:"#002039",coral:"#F95D6A",cyan:"#45CEE0",green:"#B3D849",orange:"#FFA600",orangeDark:"#FF7C43",pink:"#D12771",purple:"#A05195",purpleDark:"#665191"},lowContrast:{blue:"#96B3DE",blueDark:"#5283AB",coral:"#FCA6AD",cyan:"#BAE6FF",green:"#DEF895",orange:"#FDDFA5",orangeDark:"#FCC2A9",pink:"#E995BA",purple:"#D4BBFF",purpleDark:"#B1A2D0"}},error:{light:"#fee5e4",main:"#a72514"},gray:{dark:"#373737",light:"#d3d3d3",main:"#706f6f",megaLight:"#f4f4f4",ultraLight:"#f4f4f4"},info:{light:"#dbedfd",main:"#195f7f"},primary:{dark:"#626262",light:"#D6D6D6",main:"#7A7A7A",ultraLight:"#EDEDED"},secondary:{dark:"#303030",light:"#787878",main:"#616161",ultraLight:"#F4F4F4"},success:{light:"#dcfddb",main:"#286327"},white:"#fff"},spacingBase:8,typography:{fontSize:{L:"18px",M:"16px",S:"14px",XL:"20px",XS:"12px",XXL:"24px",XXS:"10px",XXXL:"32px",XXXXL:"48px"},fontWeight:{bold:700,light:200,normal:400,semibold:600},letterSpacing:{L:3,M:1,S:0,XL:5,XXL:8,XXXL:12},lineHeight:{L:"28px",M:"24px",S:"20px",XL:"32px",XXL:"48px",XXXL:"72px"}}}};const de=({baseURL:e="https://elements.shipengine.com",cdnURL:a="https://cdn.packlink.com",children:t,container:r,features:s,getToken:o,headers:i,locale:n,onApiError:l,onError:p=(()=>{}),scope:d="lmnt",themeConfig:c,defaultQueryClientOptions:m})=>{const g=(({cdnURL:e})=>ne((a=>Z(void 0,void 0,void 0,(function*(){return(yield ie.get(`/brand/fallback/icons/${a.toLowerCase()}.svg`,{baseURL:e,responseType:"json"})).data}))),[e]))({cdnURL:a}),u=new se(null!=c?c:pe.fallback),h={baseURL:e,cdnURL:a,container:r,features:s,getToken:o,locale:n,onError:p,scope:d,theme:u};return ae(X,Object.assign({},h,{children:ae(te,Object.assign({cdnUrl:a,reference:d||void 0,resolveIcon:g,theme:u},{children:ae(oe,Object.assign({baseURL:e,defaultQueryClientOptions:m,getToken:o,headers:i,onApiError:l},{children:ae(Y,{children:t})}))}))}))},ce=({baseURL:e,children:a,features:t})=>{const r=le((()=>new se),[]),s=$(["globalFeatures"]),o=ne((()=>"none"),[]),i={baseURL:e,cdnURL:"mockCdnUrl",getFeatures:e=>{var a;return ee(null!==(a=$([e]))&&void 0!==a?a:{},null==t?void 0:t[e])},getToken:o,globalFeatures:Object.assign(Object.assign({enabledExternalCarriers:["apc","asendia","better_trucks","canpar","chronopost","couriers_please","courierpost","dpd","hermes_germany","intelliquick_delivery","lso","ontrac","seko","ups","yodel"]},s),t.globalFeatures),onError:()=>{},scope:"lmnt",theme:r};return ae(_.Provider,Object.assign({value:i},{children:ae(re,Object.assign({theme:r},{children:ae(oe,Object.assign({baseURL:e,getToken:o},{children:a}))}))}))};export{de as ElementsProvider,ce as ElementsTestProvider};
|
|
1
|
+
import{E as X,a as _}from"./actions-menu.js";export{z as Actions,y as ActionsMenu,A as AddFundsForm,b as AutoFundingForm,B as ButtonGroup,C as CarrierBalance,d as CarrierConnectionCard,e as CarrierIcon,f as CollapsiblePanel,h as CopyButton,i as Cube,D as DateRangeCombo,j as DateRangeSelect,k as DisplayTerm,l as EditBillingForm,a as ElementsContext,E as ElementsContextProvider,m as ErrorFallback,F as FieldLabel,n as FormPortal,o as FundAndPurchase,H as HistoryCard,p as HistoryCardExtension,I as InlineLabel,q as ItemsBreakdown,L as LinkAction,r as Loader,P as PoweredByShipEngine,R as RateDetails,S as Section,t as SettingsCard,u as SkeletonCarrierRow,v as Spacer,w as Spread,T as Tabs,V as VatForm,W as WalletCard,x as WarehouseForm,c as autoFundingSchema,g as getAddFundsSchema,s as styles,G as useElements}from"./actions-menu.js";export{C as CarrierLogo}from"./carrier-logo.js";export{C as CellFormattedDate,D as Drawer,E as ErrorState,G as GridController,b as GridFilters,a as GridFooter,u as usePager}from"./usePager.js";export{f as Field,P as Pager,S as StoryNotes,a as SuspendText}from"./suspend-text.js";import{R as Y}from"./use-toggle.js";export{P as Portal,R as RootPortalProvider,b as useAddressValidation,u as useCountryCodeOptions,c as useRootPortal,a as useStateCodeOptions,d as useToggle}from"./use-toggle.js";export{C as Country,U as UsState,d as UsaCity,c as countries,a as countryCodes,e as euCountryCodes,p as postalCodeRegex,f as usCities,b as usStateCodes,u as usStates}from"./address.js";export{a as CarrierServices,b as ConnectExternalCarrier,p as PurchaseLabel,s as ShipmentSummary,v as VoidLabel,c as createElement}from"./use-unit-settings.js";export{e as LabelLayout,l as LabelsGrid,m as ManageCarriers,b as ManageExternalCarriers,d as ManageFunding,a as ManageWarehouses,p as PaymentMethodSettings,s as ShipmentsGrid,t as ThemeCreator,T as ThemeCreatorProvider,f as TransactionHistory,c as UnitSettings,u as useThemeCreator}from"./transaction-history-element.js";export{e as extendZod}from"./zod.js";export{P as PudoType,l as useBlackboxDetection,u as useConfirmationOptions,a as useCustomsContentsOptions,b as useCustomsNonDeliveryOptions,c as useDateRangeOptions,d as useInsuranceProviderOptions,m as useNestedForm,e as usePackageOptions,f as useRateOptions,n as useRunOnceOnTrue,o as useScrubErrors,g as useServiceCodeOptions,k as useServicePoints,h as useShipmentMetadata,i as useShippingPresetsOptions,j as useWarehouseOptions}from"./use-scrub-errors.js";export{P as PageLayoutProvider,u as useExpirationMonthOptions,a as useHelpers,b as usePageLayout}from"./use-page-layout.js";export{u as useGetServiceName}from"./use-get-service-name.js";export{m as moneySchema}from"./money.js";export{p as phoneSchema,a as phoneSchemaUnvalidated}from"./phone.js";export{a as assert,r as raise}from"./assertions.js";export{g as getSellerIdFromToken,i as isOnboarded}from"./checks.js";export{b as convertDimensions,c as createDictionary,f as formatDimensions,h as getCancelledShipment,d as getIsCustomsRequiredForShipment,g as getIsInternationalShipment,e as getPendingShipment,j as getShipmentByStatus,a as isCollectionService,i as isPudoEligibleRate,m as moveCustomsItemsToProducts}from"./shipment.js";import{_ as Z}from"./carrier.js";export{L as addEmailToValidation,t as addSpaceBetweenWords,w as calculateTotal,k as capitalizeFirstLetter,l as capitalizeFirstLetterOfEachWord,u as currencySymbol,e as daysAfter,S as filterFundingSourceCarriers,a as findDateLocale,b as formatByDateAndLocale,x as formatCreditCardNumber,f as formatDate,c as formatDateDDMMYY,d as formatDateDDMMYYYY,y as formatExpiration,v as formatMoney,O as getCarrierIdByCarrierCode,z as getCurrencyFromString,A as getCurrencySymbolFromString,h as getExpirationYears,P as getLogoOrIconByCarrierCode,B as getRateRequiresAcknowledgement,j as getRelativeDates,C as getTotalRateAmount,g as getlocaleDateStringFormat,E as isDomesticAddress,K as isEmptyAddress,Q as isGlobalPostEligible,F as isMilitaryAddress,i as isNowOrInTheFuture,I as isPoBox,J as isPoBoxAddress,R as isSendleEligible,G as isUnitedStatesTerritory,H as isUnsupportedByUps,N as isUpsCarrier,M as isUspsCarrier,m as mostRecent,n as nextDayCutoff,o as omitTime,D as overrideCarrierCodes,p as parseLocaleDate,q as pascalize,r as replaceSpacesWithDashes,s as sortByCreationDate}from"./carrier.js";export{k as convertDecimalWeightToFractionalWeight,j as convertFractionalWeightToDecimalWeight,h as convertPoundsAndOuncesToOunces,l as convertWeight,c as createCodedErrors,m as formatFractionalWeight,g as getCustomsFromSalesOrder,o as getDefaultWarehouse,b as getIsCustomsRequiredForSalesOrder,d as getRequestedServices,e as getSalesOrderItemsFromSalesOrderOrShipment,f as isDecimalWeight,n as isFlatRatePackageCode,i as isMetricWeightUnit,a as throwAny,t as throwJoinedMessages}from"./warehouses.js";import{g as $,d as ee}from"./vat.js";export{N as NO_VAT_COUNTRIES,c as aggregateRateDetailItems,e as calculateRateDetailBreakdown,h as createStyles,d as deepMergeFeatures,j as errorMap,f as featureFlagComponentNameLookup,a as formLogger,g as getDefaultFeatures,k as getIsVatRequired,i as isObject,b as isString,t as trackingStatusFormatter,v as validationResolver}from"./vat.js";export{a as AccountSettings,l as LabelWorkflow,o as Onboarding}from"./wallet-form.js";import{jsx as ae}from"@emotion/react/jsx-runtime";import{GigerProvider as te,GigerTestProvider as re}from"@shipengine/giger";import{Theme as se}from"@shipengine/giger-theme";import{ShipEngine as oe}from"@shipengine/react-api";import ie from"axios";import{useCallback as ne,useMemo as le}from"react";import"date-fns/isToday";import"react-hook-form";import"react-i18next";import"@emotion/react";import"lodash/isEqual";import"zod";import"copy-to-clipboard";import"js-base64";import"libphonenumber-js/min";import"lodash/omit";import"card-validator";import"react-use";import"date-fns/subDays";import"react-dom";import"@tanstack/react-query";import"lodash/merge";import"lodash/mergeWith";import"humps";import"@shipengine/js-api";import"@rjsf/core";import"@rjsf/validator-ajv8";import"lodash/camelCase";import"use-debounce";import"classnames";import"i18next";import"i18next-browser-languagedetector";import"@emotion/cache";import"stylis";import"date-fns/formatISO";import"date-fns/isSameDay";import"date-fns/isWithinInterval";import"date-fns/setHours";import"date-fns/setMinutes";import"lodash/orderBy";import"jwt-decode";import"date-fns/format";import"date-fns/locale";import"date-fns/parse";import"lodash/get";import"@hookform/resolvers/zod";var pe={fallback:{borderRadius:{L:"16px",M:"8px",S:"4px",XL:"32px",XS:"2px"},breakPoints:{desktop:1280,mobileLarge:480,tablet:768,tabletLarge:960},card:{borderRadius:{desktop:"8px",mobile:"4px",tablet:"8px"}},components:{Button:{borderRadius:"4px"},Checkbox:{borderRadius:"2px",square:!1},Chip:{backgroundColor:"#f4f4f4",border:"none",borderRadius:"16px",color:"#706f6f",fontWeight:600,isSelected:{backgroundColor:"#EDEDED",border:"none",color:"#7A7A7A"},padding:"4px 16px"},Dialog:{action:{justifyContent:"center"},content:{padding:24,textAlign:"center"},dialog:{backgroundColor:"rgba(0, 0, 0, 0.26)",borderRadius:"4px"},header:{borderBottom:"2px solid #d3d3d3",padding:24,titleColor:"#616161"}},Field:{color:"#373737",fontWeight:700,placeholder:{fontWeight:700}},FieldContainer:{borderRadius:"4px"},Link:{activeColor:"#787878",defaultColor:"#616161",hoverColor:"#303030",isDark:{activeColor:"#787878",defaultColor:"#fff",hoverColor:"#fff",visitedColor:"#fff"},visitedColor:"#303030"},Table:{border:"none",borderRadius:"4px",boxShadow:"0 0 12px rgba(0, 0, 0, 0.1)"},Typography:{body1:{fontSize:"16px",fontWeight:400,letterSpacing:0,lineHeight:"24px"},body2:{fontSize:"14px",fontWeight:400,letterSpacing:3,lineHeight:"20px"},heading1:{fontSize:"48px",fontWeight:700,letterSpacing:0,lineHeight:"72px"},heading2:{fontSize:"32px",fontWeight:700,letterSpacing:1,lineHeight:"48px"},heading3:{fontSize:"24px",fontWeight:700,letterSpacing:3,lineHeight:"48px"},heading4:{fontSize:"20px",fontWeight:700,letterSpacing:3,lineHeight:"32px"},heading5:{fontSize:"18px",fontWeight:700,letterSpacing:3,lineHeight:"28px"},heading6:{fontSize:"16px",fontWeight:700,letterSpacing:3,lineHeight:"24px"},small:{fontSize:"12px",fontWeight:400,letterSpacing:5,lineHeight:"20px"},subtitle1:{fontSize:"16px",fontWeight:600,letterSpacing:3,lineHeight:"24px"},subtitle2:{fontSize:"14px",fontWeight:600,letterSpacing:5,lineHeight:"20px"}}},defaultFontFamily:"Arial",elevations:{above:{boxShadow:"0 0 12px rgba(0, 0, 0, 0.1)",zIndex:1e3},backdrop:{boxShadow:"none",zIndex:1007},flat1:{boxShadow:"0 2px 2px rgba(0, 0, 0, 0.1)",zIndex:1},flat2:{boxShadow:"0 2px 2px rgba(0, 0, 0, 0.1)",zIndex:1e3},overlay1:{boxShadow:"0 0 24px rgba(0, 0, 0, 0.1)",zIndex:1006},overlay2:{boxShadow:"0 0 24px rgba(0, 0, 0, 0.1)",zIndex:1008},popout1:{boxShadow:"0 4px 16px rgba(0, 0, 0, 0.1)",zIndex:1004},popout2:{boxShadow:"0 4px 16px rgba(0, 0, 0, 0.1)",zIndex:1005},raised:{boxShadow:"0 8px 8px rgba(0, 0, 0, 0.1)",zIndex:1002},raisedInverted1:{boxShadow:"0 -8px 8px rgba(0, 0, 0, 0.1)",zIndex:1002},raisedInverted2:{boxShadow:"0 -8px 8px rgba(0, 0, 0, 0.1)",zIndex:1003},sticky:{boxShadow:"none",zIndex:1001}},fontFaces:[],grid:{desktop:{columns:12,gutter:24,horizontalSpace:16,verticalSpace:24},desktopLarge:{columns:12,gutter:24,horizontalSpace:16,verticalSpace:24},mobile:{columns:4,gutter:16,horizontalSpace:16,verticalSpace:16},mobileLarge:{columns:4,gutter:16,horizontalSpace:16,verticalSpace:16},tablet:{columns:12,gutter:24,horizontalSpace:16,verticalSpace:24},tabletLarge:{columns:12,gutter:24,horizontalSpace:16,verticalSpace:24}},iconSize:{extra_large:"48px",large:"32px",medium:"20px",regular:"24px",small:"16px"},palette:{alert:{light:"#ffe7ca",main:"#725200"},black:"#000",dataVisualization:{highContrast:{blue:"#3970C1",blueDark:"#002039",coral:"#F95D6A",cyan:"#45CEE0",green:"#B3D849",orange:"#FFA600",orangeDark:"#FF7C43",pink:"#D12771",purple:"#A05195",purpleDark:"#665191"},lowContrast:{blue:"#96B3DE",blueDark:"#5283AB",coral:"#FCA6AD",cyan:"#BAE6FF",green:"#DEF895",orange:"#FDDFA5",orangeDark:"#FCC2A9",pink:"#E995BA",purple:"#D4BBFF",purpleDark:"#B1A2D0"}},error:{light:"#fee5e4",main:"#a72514"},gray:{dark:"#373737",light:"#d3d3d3",main:"#706f6f",megaLight:"#f4f4f4",ultraLight:"#f4f4f4"},info:{light:"#dbedfd",main:"#195f7f"},primary:{dark:"#626262",light:"#D6D6D6",main:"#7A7A7A",ultraLight:"#EDEDED"},secondary:{dark:"#303030",light:"#787878",main:"#616161",ultraLight:"#F4F4F4"},success:{light:"#dcfddb",main:"#286327"},white:"#fff"},spacingBase:8,typography:{fontSize:{L:"18px",M:"16px",S:"14px",XL:"20px",XS:"12px",XXL:"24px",XXS:"10px",XXXL:"32px",XXXXL:"48px"},fontWeight:{bold:700,light:200,normal:400,semibold:600},letterSpacing:{L:3,M:1,S:0,XL:5,XXL:8,XXXL:12},lineHeight:{L:"28px",M:"24px",S:"20px",XL:"32px",XXL:"48px",XXXL:"72px"}}}};const de=({baseURL:e="https://elements.shipengine.com",cdnURL:a="https://cdn.packlink.com",children:t,container:r,features:s,getToken:o,headers:i,locale:n,onApiError:l,onError:p=(()=>{}),scope:d="lmnt",themeConfig:c,defaultQueryClientOptions:m})=>{const g=(({cdnURL:e})=>ne((a=>Z(void 0,void 0,void 0,(function*(){return(yield ie.get(`/brand/fallback/icons/${a.toLowerCase()}.svg`,{baseURL:e,responseType:"json"})).data}))),[e]))({cdnURL:a}),u=new se(null!=c?c:pe.fallback),h={baseURL:e,cdnURL:a,container:r,features:s,getToken:o,locale:n,onError:p,scope:d,theme:u};return ae(X,Object.assign({},h,{children:ae(te,Object.assign({cdnUrl:a,reference:d||void 0,resolveIcon:g,theme:u},{children:ae(oe,Object.assign({baseURL:e,defaultQueryClientOptions:m,getToken:o,headers:i,onApiError:l},{children:ae(Y,{children:t})}))}))}))},ce=({baseURL:e,children:a,features:t})=>{const r=le((()=>new se),[]),s=$(["globalFeatures"]),o=ne((()=>"none"),[]),i={baseURL:e,cdnURL:"mockCdnUrl",getFeatures:e=>{var a;return ee(null!==(a=$([e]))&&void 0!==a?a:{},null==t?void 0:t[e])},getToken:o,globalFeatures:Object.assign(Object.assign({enabledExternalCarriers:["apc","asendia","better_trucks","canpar","chronopost","couriers_please","courierpost","dpd","hermes_germany","intelliquick_delivery","lso","ontrac","seko","ups","yodel"]},s),t.globalFeatures),onError:()=>{},scope:"lmnt",theme:r};return ae(_.Provider,Object.assign({value:i},{children:ae(re,Object.assign({theme:r},{children:ae(oe,Object.assign({baseURL:e,getToken:o},{children:a}))}))}))};export{de as ElementsProvider,ce as ElementsTestProvider};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shipengine/elements",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.9.0",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@emotion/react": "11.x",
|
|
6
6
|
"react-i18next": "11.x",
|
|
@@ -56,6 +56,7 @@
|
|
|
56
56
|
"humps": "2.0.1",
|
|
57
57
|
"i18next-browser-languagedetector": "6.1.8",
|
|
58
58
|
"js-base64": "3.7.3",
|
|
59
|
+
"jwt-decode": "4.0.0",
|
|
59
60
|
"libphonenumber-js": "1.10.14",
|
|
60
61
|
"lodash": "4.17.21",
|
|
61
62
|
"react-hook-form": "7.40.0",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { LabelIdFilter } from "./label-id-filter";
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { IGridFilters } from "../../grid-filters";
|
|
2
|
+
/**
|
|
3
|
+
* @internal
|
|
4
|
+
*
|
|
5
|
+
* # Label Id Filter Props
|
|
6
|
+
*
|
|
7
|
+
* @see {@link LabelIdFilter | The `<LabelIdFilter />` component}
|
|
8
|
+
*/
|
|
9
|
+
type LabelIdFilterProps = {
|
|
10
|
+
filters: IGridFilters;
|
|
11
|
+
onFiltersUpdated: (params: IGridFilters) => void;
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* @internal
|
|
15
|
+
*
|
|
16
|
+
* # LabelIdFilter
|
|
17
|
+
*
|
|
18
|
+
* - The `<LabelIdFilter />` component handle label id filter used in Labels Grid.
|
|
19
|
+
*
|
|
20
|
+
* @see {@link LabelIdFilterProps | The props for the `<LabelIdFilter />` component}
|
|
21
|
+
*/
|
|
22
|
+
export declare const LabelIdFilter: ({ filters, onFiltersUpdated }: LabelIdFilterProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
23
|
+
export {};
|
|
@@ -552,6 +552,7 @@ export declare const Element: ({ resources, ...props }: object & {
|
|
|
552
552
|
shipDate: string;
|
|
553
553
|
status: string;
|
|
554
554
|
trackingStatus: string;
|
|
555
|
+
labelId: string;
|
|
555
556
|
};
|
|
556
557
|
empty: {
|
|
557
558
|
title: string;
|
|
@@ -805,6 +806,8 @@ export declare const Element: ({ resources, ...props }: object & {
|
|
|
805
806
|
rows: string;
|
|
806
807
|
clearAll: string;
|
|
807
808
|
shipmentId: string;
|
|
809
|
+
labelId: string;
|
|
810
|
+
labelIdFilter: string;
|
|
808
811
|
createdDate: string;
|
|
809
812
|
shipmentIdFilter: string;
|
|
810
813
|
createdDateFilter: string;
|
|
@@ -812,6 +815,7 @@ export declare const Element: ({ resources, ...props }: object & {
|
|
|
812
815
|
clear: string;
|
|
813
816
|
search: string;
|
|
814
817
|
shipmentIdHint: string;
|
|
818
|
+
labelIdHint: string;
|
|
815
819
|
dateFilterToday: string;
|
|
816
820
|
dateFilterLast7Days: string;
|
|
817
821
|
dateFilterLast30Days: string;
|
|
@@ -893,6 +897,7 @@ export declare const Element: ({ resources, ...props }: object & {
|
|
|
893
897
|
tooFewCharacters: string;
|
|
894
898
|
tooManyCharacters: string;
|
|
895
899
|
requiredShipmentId: string;
|
|
900
|
+
requiredLabelId: string;
|
|
896
901
|
};
|
|
897
902
|
shippingPresets: {
|
|
898
903
|
apply: string;
|
|
@@ -1,9 +1,53 @@
|
|
|
1
|
-
|
|
1
|
+
import { SE } from "@shipengine/react-api";
|
|
2
2
|
import { LabelsGridProps } from "../";
|
|
3
3
|
import { IGridFilters } from "../../../components";
|
|
4
|
-
export declare const useLabelsGrid: ({ labelStatus, showShipmentIdFilter }: LabelsGridProps) => {
|
|
4
|
+
export declare const useLabelsGrid: ({ labelStatus, showShipmentIdFilter, showLabelIdFilter, }: Pick<LabelsGridProps, "labelStatus" | "showShipmentIdFilter" | "showLabelIdFilter">) => {
|
|
5
5
|
clearAllFilters: () => void;
|
|
6
6
|
filters: IGridFilters;
|
|
7
|
+
getGridData: () => {
|
|
8
|
+
serviceName: string | null | undefined;
|
|
9
|
+
alternativeIdentifiers?: string[] | undefined;
|
|
10
|
+
batchId: string;
|
|
11
|
+
carrierCode: string;
|
|
12
|
+
carrierId: string;
|
|
13
|
+
chargeEvent: SE.LabelChargeEvent;
|
|
14
|
+
createdAt: string;
|
|
15
|
+
displayScheme: SE.LabelDisplayScheme;
|
|
16
|
+
formDownload: SE.LinkedResource;
|
|
17
|
+
insuranceClaim: SE.LinkedResource;
|
|
18
|
+
insuranceCost: SE.Money;
|
|
19
|
+
isInternational: boolean;
|
|
20
|
+
isReturnLabel: boolean;
|
|
21
|
+
labelDownload: SE.Download;
|
|
22
|
+
labelFormat: SE.LabelFormat;
|
|
23
|
+
labelId: string;
|
|
24
|
+
labelImageId: string;
|
|
25
|
+
labelLayout: SE.LabelLayout;
|
|
26
|
+
packageCode: string;
|
|
27
|
+
packages: SE.ShipmentPackage[];
|
|
28
|
+
paperlessDownload: SE.PaperlessDownload | null;
|
|
29
|
+
qrCodeDownload?: SE.LinkedResource | undefined;
|
|
30
|
+
rateDetails: SE.RateDetail[];
|
|
31
|
+
relayPoints: {
|
|
32
|
+
shipFrom: SE.RelayPoint;
|
|
33
|
+
shipTo: SE.RelayPoint;
|
|
34
|
+
};
|
|
35
|
+
requestedComparisonAmount?: SE.Money | undefined;
|
|
36
|
+
rmaNumber: string;
|
|
37
|
+
serviceCode: string;
|
|
38
|
+
shipDate: string;
|
|
39
|
+
shipmentCost: SE.Money;
|
|
40
|
+
shipmentId: string;
|
|
41
|
+
shippingRuleId: string | null;
|
|
42
|
+
shipTo: SE.Address;
|
|
43
|
+
status: SE.LabelStatus;
|
|
44
|
+
trackable: boolean;
|
|
45
|
+
trackingNumber: string;
|
|
46
|
+
trackingStatus: SE.LabelTrackingStatus;
|
|
47
|
+
trackingUrl: string;
|
|
48
|
+
voided: boolean;
|
|
49
|
+
voidedAt: string | null;
|
|
50
|
+
}[];
|
|
7
51
|
isAnyFilterActive: boolean;
|
|
8
52
|
isError: boolean;
|
|
9
53
|
isLoading: boolean;
|
|
@@ -13,40 +57,40 @@ export declare const useLabelsGrid: ({ labelStatus, showShipmentIdFilter }: Labe
|
|
|
13
57
|
batchId: string;
|
|
14
58
|
carrierCode: string;
|
|
15
59
|
carrierId: string;
|
|
16
|
-
chargeEvent:
|
|
60
|
+
chargeEvent: SE.LabelChargeEvent;
|
|
17
61
|
createdAt: string;
|
|
18
|
-
displayScheme:
|
|
19
|
-
formDownload:
|
|
20
|
-
insuranceClaim:
|
|
21
|
-
insuranceCost:
|
|
62
|
+
displayScheme: SE.LabelDisplayScheme;
|
|
63
|
+
formDownload: SE.LinkedResource;
|
|
64
|
+
insuranceClaim: SE.LinkedResource;
|
|
65
|
+
insuranceCost: SE.Money;
|
|
22
66
|
isInternational: boolean;
|
|
23
67
|
isReturnLabel: boolean;
|
|
24
|
-
labelDownload:
|
|
25
|
-
labelFormat:
|
|
68
|
+
labelDownload: SE.Download;
|
|
69
|
+
labelFormat: SE.LabelFormat;
|
|
26
70
|
labelId: string;
|
|
27
71
|
labelImageId: string;
|
|
28
|
-
labelLayout:
|
|
72
|
+
labelLayout: SE.LabelLayout;
|
|
29
73
|
packageCode: string;
|
|
30
|
-
packages:
|
|
31
|
-
paperlessDownload:
|
|
32
|
-
qrCodeDownload?:
|
|
33
|
-
rateDetails:
|
|
74
|
+
packages: SE.ShipmentPackage[];
|
|
75
|
+
paperlessDownload: SE.PaperlessDownload | null;
|
|
76
|
+
qrCodeDownload?: SE.LinkedResource | undefined;
|
|
77
|
+
rateDetails: SE.RateDetail[];
|
|
34
78
|
relayPoints: {
|
|
35
|
-
shipFrom:
|
|
36
|
-
shipTo:
|
|
79
|
+
shipFrom: SE.RelayPoint;
|
|
80
|
+
shipTo: SE.RelayPoint;
|
|
37
81
|
};
|
|
38
|
-
requestedComparisonAmount?:
|
|
82
|
+
requestedComparisonAmount?: SE.Money | undefined;
|
|
39
83
|
rmaNumber: string;
|
|
40
84
|
serviceCode: string;
|
|
41
85
|
shipDate: string;
|
|
42
|
-
shipmentCost:
|
|
86
|
+
shipmentCost: SE.Money;
|
|
43
87
|
shipmentId: string;
|
|
44
88
|
shippingRuleId: string | null;
|
|
45
|
-
shipTo:
|
|
46
|
-
status:
|
|
89
|
+
shipTo: SE.Address;
|
|
90
|
+
status: SE.LabelStatus;
|
|
47
91
|
trackable: boolean;
|
|
48
92
|
trackingNumber: string;
|
|
49
|
-
trackingStatus:
|
|
93
|
+
trackingStatus: SE.LabelTrackingStatus;
|
|
50
94
|
trackingUrl: string;
|
|
51
95
|
voided: boolean;
|
|
52
96
|
voidedAt: string | null;
|
|
@@ -64,6 +108,6 @@ export declare const useLabelsGrid: ({ labelStatus, showShipmentIdFilter }: Labe
|
|
|
64
108
|
showPagination: boolean;
|
|
65
109
|
totalElements: number;
|
|
66
110
|
};
|
|
67
|
-
setFilters:
|
|
111
|
+
setFilters: (newFilters: IGridFilters) => void;
|
|
68
112
|
shouldShowFilters: boolean;
|
|
69
113
|
};
|
|
@@ -30,12 +30,16 @@ export type LabelsGridProps = {
|
|
|
30
30
|
* `onRowClick` callback invoked when a row is clicked.
|
|
31
31
|
*/
|
|
32
32
|
onRowClick?: (label: SE.Label) => void;
|
|
33
|
+
/**
|
|
34
|
+
* `showLabelIdFilter` controls the display of the label Id search filter
|
|
35
|
+
*/
|
|
36
|
+
showLabelIdFilter?: boolean;
|
|
33
37
|
/**
|
|
34
38
|
* `showShipmentIdFilter` controls the display of the shipmentId search filter
|
|
35
39
|
*/
|
|
36
40
|
showShipmentIdFilter?: boolean;
|
|
37
41
|
};
|
|
38
|
-
export declare const Component: ({ labelStatus, showShipmentIdFilter, onClickPrintLabel, onClickVoidLabel, onClickPrintForms, onClickViewDetails, onRowClick, }: LabelsGridProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
42
|
+
export declare const Component: ({ labelStatus, showShipmentIdFilter, showLabelIdFilter, onClickPrintLabel, onClickVoidLabel, onClickPrintForms, onClickViewDetails, onRowClick, }: LabelsGridProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
39
43
|
export declare const Element: ({ resources, ...props }: LabelsGridProps & {
|
|
40
44
|
resources?: {
|
|
41
45
|
en: {
|
|
@@ -594,6 +598,7 @@ export declare const Element: ({ resources, ...props }: LabelsGridProps & {
|
|
|
594
598
|
shipDate: string;
|
|
595
599
|
status: string;
|
|
596
600
|
trackingStatus: string;
|
|
601
|
+
labelId: string;
|
|
597
602
|
};
|
|
598
603
|
empty: {
|
|
599
604
|
title: string;
|
|
@@ -605,10 +610,7 @@ export declare const Element: ({ resources, ...props }: LabelsGridProps & {
|
|
|
605
610
|
button: string;
|
|
606
611
|
};
|
|
607
612
|
status: {
|
|
608
|
-
voided: string;
|
|
609
|
-
* `labelStatus` is the status of the labels you wish to view.
|
|
610
|
-
* If no value is defined, all labels will be rendered.
|
|
611
|
-
*/
|
|
613
|
+
voided: string;
|
|
612
614
|
error: string;
|
|
613
615
|
completed: string;
|
|
614
616
|
processing: string;
|
|
@@ -622,10 +624,7 @@ export declare const Element: ({ resources, ...props }: LabelsGridProps & {
|
|
|
622
624
|
actions: {
|
|
623
625
|
title: string;
|
|
624
626
|
print: string;
|
|
625
|
-
void: string;
|
|
626
|
-
* `onClickPrintLabel` is an optional callback function that will be invoked when the user clicks the
|
|
627
|
-
* `Print Label` button.
|
|
628
|
-
*/
|
|
627
|
+
void: string;
|
|
629
628
|
printForms: string;
|
|
630
629
|
};
|
|
631
630
|
errorMessages: {
|
|
@@ -856,6 +855,8 @@ export declare const Element: ({ resources, ...props }: LabelsGridProps & {
|
|
|
856
855
|
rows: string;
|
|
857
856
|
clearAll: string;
|
|
858
857
|
shipmentId: string;
|
|
858
|
+
labelId: string;
|
|
859
|
+
labelIdFilter: string;
|
|
859
860
|
createdDate: string;
|
|
860
861
|
shipmentIdFilter: string;
|
|
861
862
|
createdDateFilter: string;
|
|
@@ -863,6 +864,7 @@ export declare const Element: ({ resources, ...props }: LabelsGridProps & {
|
|
|
863
864
|
clear: string;
|
|
864
865
|
search: string;
|
|
865
866
|
shipmentIdHint: string;
|
|
867
|
+
labelIdHint: string;
|
|
866
868
|
dateFilterToday: string;
|
|
867
869
|
dateFilterLast7Days: string;
|
|
868
870
|
dateFilterLast30Days: string;
|
|
@@ -944,6 +946,7 @@ export declare const Element: ({ resources, ...props }: LabelsGridProps & {
|
|
|
944
946
|
tooFewCharacters: string;
|
|
945
947
|
tooManyCharacters: string;
|
|
946
948
|
requiredShipmentId: string;
|
|
949
|
+
requiredLabelId: string;
|
|
947
950
|
};
|
|
948
951
|
shippingPresets: {
|
|
949
952
|
apply: string;
|
|
@@ -598,6 +598,7 @@ export declare const Element: ({ resources, ...props }: ShipEngineCarriersProps
|
|
|
598
598
|
shipDate: string;
|
|
599
599
|
status: string;
|
|
600
600
|
trackingStatus: string;
|
|
601
|
+
labelId: string;
|
|
601
602
|
};
|
|
602
603
|
empty: {
|
|
603
604
|
title: string;
|
|
@@ -873,6 +874,8 @@ export declare const Element: ({ resources, ...props }: ShipEngineCarriersProps
|
|
|
873
874
|
rows: string;
|
|
874
875
|
clearAll: string;
|
|
875
876
|
shipmentId: string;
|
|
877
|
+
labelId: string;
|
|
878
|
+
labelIdFilter: string;
|
|
876
879
|
createdDate: string;
|
|
877
880
|
shipmentIdFilter: string;
|
|
878
881
|
createdDateFilter: string;
|
|
@@ -880,6 +883,7 @@ export declare const Element: ({ resources, ...props }: ShipEngineCarriersProps
|
|
|
880
883
|
clear: string;
|
|
881
884
|
search: string;
|
|
882
885
|
shipmentIdHint: string;
|
|
886
|
+
labelIdHint: string;
|
|
883
887
|
dateFilterToday: string;
|
|
884
888
|
dateFilterLast7Days: string;
|
|
885
889
|
dateFilterLast30Days: string;
|
|
@@ -961,6 +965,7 @@ export declare const Element: ({ resources, ...props }: ShipEngineCarriersProps
|
|
|
961
965
|
tooFewCharacters: string;
|
|
962
966
|
tooManyCharacters: string;
|
|
963
967
|
requiredShipmentId: string;
|
|
968
|
+
requiredLabelId: string;
|
|
964
969
|
};
|
|
965
970
|
shippingPresets: {
|
|
966
971
|
apply: string;
|
|
@@ -619,6 +619,7 @@ export declare const Element: ({ resources, ...props }: ExternalCarriersProps &
|
|
|
619
619
|
shipDate: string;
|
|
620
620
|
status: string;
|
|
621
621
|
trackingStatus: string;
|
|
622
|
+
labelId: string;
|
|
622
623
|
};
|
|
623
624
|
empty: {
|
|
624
625
|
title: string;
|
|
@@ -872,6 +873,8 @@ export declare const Element: ({ resources, ...props }: ExternalCarriersProps &
|
|
|
872
873
|
rows: string;
|
|
873
874
|
clearAll: string;
|
|
874
875
|
shipmentId: string;
|
|
876
|
+
labelId: string;
|
|
877
|
+
labelIdFilter: string;
|
|
875
878
|
createdDate: string;
|
|
876
879
|
shipmentIdFilter: string;
|
|
877
880
|
createdDateFilter: string;
|
|
@@ -879,6 +882,7 @@ export declare const Element: ({ resources, ...props }: ExternalCarriersProps &
|
|
|
879
882
|
clear: string;
|
|
880
883
|
search: string;
|
|
881
884
|
shipmentIdHint: string;
|
|
885
|
+
labelIdHint: string;
|
|
882
886
|
dateFilterToday: string;
|
|
883
887
|
dateFilterLast7Days: string;
|
|
884
888
|
dateFilterLast30Days: string;
|
|
@@ -960,6 +964,7 @@ export declare const Element: ({ resources, ...props }: ExternalCarriersProps &
|
|
|
960
964
|
tooFewCharacters: string;
|
|
961
965
|
tooManyCharacters: string;
|
|
962
966
|
requiredShipmentId: string;
|
|
967
|
+
requiredLabelId: string;
|
|
963
968
|
};
|
|
964
969
|
shippingPresets: {
|
|
965
970
|
apply: string;
|
|
@@ -553,6 +553,7 @@ export declare const Element: ({ resources, ...props }: ManageFundingProps & {
|
|
|
553
553
|
shipDate: string;
|
|
554
554
|
status: string;
|
|
555
555
|
trackingStatus: string;
|
|
556
|
+
labelId: string;
|
|
556
557
|
};
|
|
557
558
|
empty: {
|
|
558
559
|
title: string;
|
|
@@ -806,6 +807,8 @@ export declare const Element: ({ resources, ...props }: ManageFundingProps & {
|
|
|
806
807
|
rows: string;
|
|
807
808
|
clearAll: string;
|
|
808
809
|
shipmentId: string;
|
|
810
|
+
labelId: string;
|
|
811
|
+
labelIdFilter: string;
|
|
809
812
|
createdDate: string;
|
|
810
813
|
shipmentIdFilter: string;
|
|
811
814
|
createdDateFilter: string;
|
|
@@ -813,6 +816,7 @@ export declare const Element: ({ resources, ...props }: ManageFundingProps & {
|
|
|
813
816
|
clear: string;
|
|
814
817
|
search: string;
|
|
815
818
|
shipmentIdHint: string;
|
|
819
|
+
labelIdHint: string;
|
|
816
820
|
dateFilterToday: string;
|
|
817
821
|
dateFilterLast7Days: string;
|
|
818
822
|
dateFilterLast30Days: string;
|
|
@@ -894,6 +898,7 @@ export declare const Element: ({ resources, ...props }: ManageFundingProps & {
|
|
|
894
898
|
tooFewCharacters: string;
|
|
895
899
|
tooManyCharacters: string;
|
|
896
900
|
requiredShipmentId: string;
|
|
901
|
+
requiredLabelId: string;
|
|
897
902
|
};
|
|
898
903
|
shippingPresets: {
|
|
899
904
|
apply: string;
|
|
@@ -570,6 +570,7 @@ export declare const Element: ({ resources, ...props }: object & {
|
|
|
570
570
|
shipDate: string;
|
|
571
571
|
status: string;
|
|
572
572
|
trackingStatus: string;
|
|
573
|
+
labelId: string;
|
|
573
574
|
};
|
|
574
575
|
empty: {
|
|
575
576
|
title: string;
|
|
@@ -840,6 +841,8 @@ export declare const Element: ({ resources, ...props }: object & {
|
|
|
840
841
|
rows: string;
|
|
841
842
|
clearAll: string;
|
|
842
843
|
shipmentId: string;
|
|
844
|
+
labelId: string;
|
|
845
|
+
labelIdFilter: string;
|
|
843
846
|
createdDate: string;
|
|
844
847
|
shipmentIdFilter: string;
|
|
845
848
|
createdDateFilter: string;
|
|
@@ -847,6 +850,7 @@ export declare const Element: ({ resources, ...props }: object & {
|
|
|
847
850
|
clear: string;
|
|
848
851
|
search: string;
|
|
849
852
|
shipmentIdHint: string;
|
|
853
|
+
labelIdHint: string;
|
|
850
854
|
dateFilterToday: string;
|
|
851
855
|
dateFilterLast7Days: string;
|
|
852
856
|
dateFilterLast30Days: string;
|
|
@@ -928,6 +932,7 @@ export declare const Element: ({ resources, ...props }: object & {
|
|
|
928
932
|
tooFewCharacters: string;
|
|
929
933
|
tooManyCharacters: string;
|
|
930
934
|
requiredShipmentId: string;
|
|
935
|
+
requiredLabelId: string;
|
|
931
936
|
};
|
|
932
937
|
shippingPresets: {
|
|
933
938
|
apply: string;
|
|
@@ -553,6 +553,7 @@ export declare const Element: ({ resources, ...props }: PaymentMethodSettingsPro
|
|
|
553
553
|
shipDate: string;
|
|
554
554
|
status: string;
|
|
555
555
|
trackingStatus: string;
|
|
556
|
+
labelId: string;
|
|
556
557
|
};
|
|
557
558
|
empty: {
|
|
558
559
|
title: string;
|
|
@@ -806,6 +807,8 @@ export declare const Element: ({ resources, ...props }: PaymentMethodSettingsPro
|
|
|
806
807
|
rows: string;
|
|
807
808
|
clearAll: string;
|
|
808
809
|
shipmentId: string;
|
|
810
|
+
labelId: string;
|
|
811
|
+
labelIdFilter: string;
|
|
809
812
|
createdDate: string;
|
|
810
813
|
shipmentIdFilter: string;
|
|
811
814
|
createdDateFilter: string;
|
|
@@ -813,6 +816,7 @@ export declare const Element: ({ resources, ...props }: PaymentMethodSettingsPro
|
|
|
813
816
|
clear: string;
|
|
814
817
|
search: string;
|
|
815
818
|
shipmentIdHint: string;
|
|
819
|
+
labelIdHint: string;
|
|
816
820
|
dateFilterToday: string;
|
|
817
821
|
dateFilterLast7Days: string;
|
|
818
822
|
dateFilterLast30Days: string;
|
|
@@ -894,6 +898,7 @@ export declare const Element: ({ resources, ...props }: PaymentMethodSettingsPro
|
|
|
894
898
|
tooFewCharacters: string;
|
|
895
899
|
tooManyCharacters: string;
|
|
896
900
|
requiredShipmentId: string;
|
|
901
|
+
requiredLabelId: string;
|
|
897
902
|
};
|
|
898
903
|
shippingPresets: {
|
|
899
904
|
apply: string;
|
|
@@ -749,6 +749,7 @@ export declare const Element: ({ resources, ...props }: ElementProps & {
|
|
|
749
749
|
shipDate: string;
|
|
750
750
|
status: string;
|
|
751
751
|
trackingStatus: string;
|
|
752
|
+
labelId: string;
|
|
752
753
|
};
|
|
753
754
|
empty: {
|
|
754
755
|
title: string;
|
|
@@ -1016,6 +1017,8 @@ export declare const Element: ({ resources, ...props }: ElementProps & {
|
|
|
1016
1017
|
rows: string;
|
|
1017
1018
|
clearAll: string;
|
|
1018
1019
|
shipmentId: string;
|
|
1020
|
+
labelId: string;
|
|
1021
|
+
labelIdFilter: string;
|
|
1019
1022
|
createdDate: string;
|
|
1020
1023
|
shipmentIdFilter: string;
|
|
1021
1024
|
createdDateFilter: string;
|
|
@@ -1023,6 +1026,7 @@ export declare const Element: ({ resources, ...props }: ElementProps & {
|
|
|
1023
1026
|
clear: string;
|
|
1024
1027
|
search: string;
|
|
1025
1028
|
shipmentIdHint: string;
|
|
1029
|
+
labelIdHint: string;
|
|
1026
1030
|
dateFilterToday: string;
|
|
1027
1031
|
dateFilterLast7Days: string;
|
|
1028
1032
|
dateFilterLast30Days: string;
|
|
@@ -1104,6 +1108,7 @@ export declare const Element: ({ resources, ...props }: ElementProps & {
|
|
|
1104
1108
|
tooFewCharacters: string;
|
|
1105
1109
|
tooManyCharacters: string;
|
|
1106
1110
|
requiredShipmentId: string;
|
|
1111
|
+
requiredLabelId: string;
|
|
1107
1112
|
};
|
|
1108
1113
|
shippingPresets: {
|
|
1109
1114
|
apply: string;
|
|
@@ -650,6 +650,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
650
650
|
shipDate: string;
|
|
651
651
|
status: string;
|
|
652
652
|
trackingStatus: string;
|
|
653
|
+
labelId: string;
|
|
653
654
|
};
|
|
654
655
|
empty: {
|
|
655
656
|
title: string;
|
|
@@ -676,6 +677,10 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
676
677
|
title: string;
|
|
677
678
|
print: string;
|
|
678
679
|
void: string;
|
|
680
|
+
/**
|
|
681
|
+
* `onClickPurchaseLabel` is a callback function that will be invoked when the user clicks the
|
|
682
|
+
* `Purchase Label` button.
|
|
683
|
+
*/
|
|
679
684
|
printForms: string;
|
|
680
685
|
};
|
|
681
686
|
errorMessages: {
|
|
@@ -905,6 +910,8 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
905
910
|
rows: string;
|
|
906
911
|
clearAll: string;
|
|
907
912
|
shipmentId: string;
|
|
913
|
+
labelId: string;
|
|
914
|
+
labelIdFilter: string;
|
|
908
915
|
createdDate: string;
|
|
909
916
|
shipmentIdFilter: string;
|
|
910
917
|
createdDateFilter: string;
|
|
@@ -912,6 +919,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
912
919
|
clear: string;
|
|
913
920
|
search: string;
|
|
914
921
|
shipmentIdHint: string;
|
|
922
|
+
labelIdHint: string;
|
|
915
923
|
dateFilterToday: string;
|
|
916
924
|
dateFilterLast7Days: string;
|
|
917
925
|
dateFilterLast30Days: string;
|
|
@@ -993,6 +1001,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
993
1001
|
tooFewCharacters: string;
|
|
994
1002
|
tooManyCharacters: string;
|
|
995
1003
|
requiredShipmentId: string;
|
|
1004
|
+
requiredLabelId: string;
|
|
996
1005
|
};
|
|
997
1006
|
shippingPresets: {
|
|
998
1007
|
apply: string;
|