@shipengine/elements 2.13.0 → 2.14.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/actions-menu.js +3 -3
- package/elements.js +1 -1
- package/index.js +1 -1
- package/package.json +5 -2
- package/src/components/address-preference-context/address-preference-context.d.ts +2 -1
- package/src/components/drawer/drawer.styles.d.ts +1 -0
- package/src/components/edit-billing-form/edit-billing-form.d.ts +2 -1
- package/src/components/enable-insurance-banner/enable-insurance-banner.d.ts +4 -3
- package/src/components/tabs/tabs.styles.d.ts +1 -0
- package/src/components/templates/rate-form/rate-form.styles.d.ts +3 -0
- package/src/components/templates/register-funding-source-insurance-form/register-funding-source-insurance-form.d.ts +3 -1
- package/src/components/templates/shipment-form/shipment-form.d.ts +2 -0
- package/src/components/templates/theme-creator/theme-creator.d.ts +1 -0
- package/src/components/templates/theme-creator/theme-creator.styles.d.ts +40 -2
- package/src/components/templates/wallet-form/wallet-schema.d.ts +10 -5
- package/src/elements/labels-grid/labels-grid.d.ts +5 -1
- package/src/elements/manage-carriers/manage-carriers.d.ts +5 -1
- package/src/elements/manage-external-carriers/manage-external-carriers.d.ts +5 -1
- package/src/elements/manage-funding/manage-funding-element.d.ts +5 -1
- package/src/elements/manage-warehouses/manage-warehouses.d.ts +5 -1
- package/src/elements/payment-method-settings/payment-method-settings-element.d.ts +5 -1
- package/src/elements/purchase-label/configure-shipment.d.ts +1 -1
- package/src/elements/purchase-label/purchase-label.d.ts +5 -1
- package/src/elements/select-label-layout/select-label-layout-element.d.ts +5 -1
- package/src/elements/shipment-summary/shipment-summary.d.ts +6 -5
- package/src/elements/shipments-grid/shipments-grid.d.ts +5 -1
- package/src/elements/theme-creator/theme-creator.d.ts +5 -1
- package/src/elements/transaction-history/transaction-history-element.d.ts +5 -1
- package/src/elements/unit-settings/unit-settings-element.d.ts +5 -1
- package/src/elements/vat-settings/vat-settings-element.d.ts +5 -1
- package/src/elements/void-label/void-label.d.ts +11 -1
- package/src/features/manage-carriers/manage-insurance-provider-row/manage-insurance-provider-row.d.ts +2 -1
- package/src/hooks/insurance/use-manage-funding-source-insurance.d.ts +3 -2
- package/src/hooks/use-nested-form.d.ts +6 -2
- package/src/locales/en/index.d.ts +5 -1
- package/src/themes/auctane.d.ts +3 -0
- package/src/themes/index.d.ts +1 -0
- package/src/workflows/account-settings/account-settings.d.ts +5 -1
- package/src/workflows/carrier-services/carrier-services.d.ts +5 -1
- package/src/workflows/connect-external-carrier/connect-external-carrier.d.ts +5 -1
- package/src/workflows/onboarding/onboarding.d.ts +5 -1
- package/transaction-history-element.js +1 -1
- package/use-scrub-errors.js +1 -1
- package/use-toggle.js +1 -1
- package/use-unit-settings.js +1 -1
- package/usePager.js +1 -1
- package/wallet-form.js +1 -1
- package/src/elements/theme-creator/themeData/index.d.ts +0 -1
- package/src/elements/theme-creator/themeData/themeData.d.ts +0 -2
package/elements.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{l as LabelsGrid,m as ManageCarriers,b as ManageExternalCarriers,
|
|
1
|
+
export{l as LabelsGrid,m as ManageCarriers,b as ManageExternalCarriers,e as ManageFunding,a as ManageWarehouses,p as PaymentMethodSettings,f as SelectLabelLayout,s as ShipmentsGrid,c as ThemeCreator,T as ThemeCreatorProvider,g as TransactionHistory,d as UnitSettings,u as useThemeCreator}from"./transaction-history-element.js";export{a as CarrierServices,p as PurchaseLabel,s as ShipmentSummary,v as VoidLabel}from"./use-unit-settings.js";import"@emotion/react/jsx-runtime";import"./actions-menu.js";import"./carrier.js";import"date-fns/format";import"date-fns/locale";import"date-fns/parse";import"lodash/get";import"humps";import"@shipengine/react-api";import"lodash/isEqual";import"lodash/isNil";import"lodash/omit";import"lodash/omitBy";import"./address.js";import"date-fns/isToday";import"@shipengine/giger";import"./use-toggle.js";import"react";import"react-dom";import"react-hook-form";import"react-i18next";import"./validation.js";import"@hookform/resolvers/zod";import"zod";import"@emotion/react";import"@shipengine/giger-theme";import"./money.js";import"copy-to-clipboard";import"js-base64";import"libphonenumber-js/min";import"card-validator";import"./zod.js";import"./use-get-service-name.js";import"./usePager.js";import"react-use";import"date-fns/subDays";import"date-fns/formatISO";import"date-fns/isSameDay";import"date-fns/isWithinInterval";import"date-fns/setHours";import"date-fns/setMinutes";import"lodash/merge";import"@tanstack/react-query";import"./use-scrub-errors.js";import"./shipment.js";import"./canada-ddp.js";import"lodash/orderBy";import"./vat.js";import"axios";import"lodash/mergeWith";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";
|
package/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ShipEngine as _}from"@shipengine/react-api";export*from"@shipengine/react-api";export{y as Actions,x as ActionsMenu,A as AddFundsForm,a as AutoFundingForm,B as ButtonGroup,C as CarrierBalance,c as CarrierConnectionCard,d as CarrierIcon,e as CarrierLogo,f as CollapsiblePanel,h as CopyButton,i as Cube,D as DateRangeCombo,j as DateRangeSelect,k as DisplayTerm,E as EditBillingForm,l as ErrorFallback,F as FieldLabel,m as FormPortal,n as FundAndPurchase,H as HistoryCard,o as HistoryCardExtension,I as InlineLabel,p as ItemsBreakdown,L as LinkAction,q as Loader,P as PoweredByShipEngine,R as RateDetails,S as Section,r as SettingsCard,z as ShipFromAddressForm,t as SkeletonCarrierRow,u as Spacer,v as Spread,T as Tabs,V as VatForm,W as WalletCard,w as WarehouseForm,b as autoFundingSchema,g as getAddFundsSchema,s as styles}from"./actions-menu.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{E as ee,R as ae,a as te}from"./use-toggle.js";export{a as ElementsContext,E as ElementsContextProvider,P as Portal,R as RootPortalProvider,c as useAddressValidation,u as useCountryCodeOptions,g as useElements,d as useNestedForm,e as useRootPortal,b as useStateCodeOptions,f 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{l as LabelsGrid,m as ManageCarriers,b as ManageExternalCarriers,d as ManageFunding,a as ManageWarehouses,p as PaymentMethodSettings,e as SelectLabelLayout,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,p as useBlackboxDetection,u as useConfirmationOptions,a as useCustomsContentsOptions,b as useCustomsNonDeliveryOptions,c as useDateRangeOptions,n as useGetFundingSourceInsuranceProvider,d as useInsuranceProviderOptions,o as useManageFundingSourceInsurance,e as useMovementIndicatorOptions,f as usePackageOptions,g as useRateOptions,q as useScrubErrors,h as useServiceCodeOptions,l as useServicePoints,k as useShipFromAddressOptions,i as useShipmentMetadata,j as useShippingPresetsOptions,m as useWindsorFramework}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{u as useRunOnceOnTrue}from"./use-run-once-on-true.js";export{m as moneySchema}from"./money.js";export{p as phoneSchema,a as phoneSchemaUnvalidated}from"./phone.js";export{C as CanadaDeliveredDutyOptions}from"./canada-ddp.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 re,g as oe,d as se}from"./carrier.js";export{P as addEmailToValidation,x as addSpaceBetweenWords,A as calculateTotal,t as capitalizeFirstLetter,u as capitalizeFirstLetterOfEachWord,y as currencySymbol,i as daysAfter,d as deepMergeFeatures,q as featureFlagComponentNameLookup,a0 as filterFundingSourceCarriers,a as findDateLocale,b as formatByDateAndLocale,B as formatCreditCardNumber,f as formatDate,c as formatDateDDMMYY,e as formatDateDDMMYYYY,C as formatExpiration,z as formatMoney,X as getCarrierIdByCarrierCode,D as getCurrencyFromString,E as getCurrencySymbolFromString,g as getDefaultFeatures,Q as getDefaultShipFromAddress,j as getExpirationYears,S as getIsShipmentUsingSavedShipFromAddress,Y as getLogoOrIconByCarrierCode,F as getRateRequiresAcknowledgement,l as getRelativeDates,R as getSavedShipFromAddressId,G as getTotalRateAmount,h as getlocaleDateStringFormat,I as isDomesticAddress,O as isEmptyAddress,W as isEvriCarrier,Z as isGlobalPostEligible,J as isMilitaryAddress,k as isNowOrInTheFuture,r as isObject,M as isPoBox,N as isPoBoxAddress,$ as isSendleEligible,K as isUnitedStatesTerritory,L as isUnsupportedByUps,U as isUpsCarrier,T as isUspsCarrier,V as isYodelCarrier,m as mostRecent,n as nextDayCutoff,o as omitTime,H as overrideCarrierCodes,p as parseLocaleDate,v as pascalize,w as replaceSpacesWithDashes,s as sortByCreationDate}from"./carrier.js";export{N as NO_VAT_COUNTRIES,k as convertDecimalWeightToFractionalWeight,j as convertFractionalWeightToDecimalWeight,h as convertPoundsAndOuncesToOunces,l as convertWeight,c as createCodedErrors,m as formatFractionalWeight,u as formatTrackingNumber,g as getCustomsFromSalesOrder,o as getDefaultWarehouse,q as getInsuranceProviderWithFriendlyName,b as getIsCustomsRequiredForSalesOrder,r as getIsInsuraceProviderAccepted,v as getIsVatRequired,d as getRequestedServices,e as getSalesOrderItemsFromSalesOrderOrShipment,p as getWarehouseById,f as isDecimalWeight,n as isFlatRatePackageCode,i as isMetricWeightUnit,a as throwAny,t as throwJoinedMessages,s as trackingStatusFormatter}from"./vat.js";export{a as aggregateRateDetailItems,c as calculateRateDetailBreakdown,b as createStyles,e as errorMap,f as formLogger,i as isString,s as scopeTheme,v as validationResolver}from"./validation.js";export{a as AccountSettings,l as LabelWorkflow,o as Onboarding}from"./wallet-form.js";import{jsx as ie}from"@emotion/react/jsx-runtime";import{useCallback as ne,useMemo as de}from"react";import{THEME_ID as le,GigerProvider as pe,GigerTestProvider as ce}from"@shipengine/giger";import{Theme as me}from"@shipengine/giger-theme";import ge from"axios";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"lodash/merge";import"@tanstack/react-query";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"lodash/isNil";import"lodash/omitBy";import"@hookform/resolvers/zod";var ue={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 he=({baseURL:e="https://elements.shipengine.com",cdnURL:a="https://cdn.packlink.com",children:t,container:r,features:o,getToken:s,headers:i,locale:n,onApiError:d,onError:l=(()=>{}),scope:p="lmnt",themeConfig:c,defaultQueryClientOptions:m,emotionCacheShadowRootContainer:g,emotionCacheShadowRootContainerWrapper:u})=>{const h=(({cdnURL:e})=>ne((a=>re(void 0,void 0,void 0,(function*(){return(yield ge.get(`/brand/fallback/icons/${a.toLowerCase()}.svg`,{baseURL:e,responseType:"text"})).data}))),[e]))({cdnURL:a}),f=de((()=>{var e;const a=new me(null!==(e=c&&le in c?c[le]:c)&&void 0!==e?e:ue.fallback);return c&&le in c?{[le]:a}:a}),[c]),x={baseURL:e,cdnURL:a,container:r,emotionCacheShadowRootContainer:g,features:o,getToken:s,locale:n,onError:l,scope:p,theme:f};return ie(ee,Object.assign({},x,{children:ie(pe,Object.assign({cdnUrl:a,emotionCacheShadowRootContainer:g,reference:u||p||void 0,resolveIcon:h,theme:f},{children:ie(_,Object.assign({baseURL:e,defaultQueryClientOptions:m,getToken:s,headers:i,onApiError:d},{children:ie(ae,Object.assign({emotionCacheShadowRootContainer:g},{children:t}))}))}))}))},fe=({baseURL:e,children:a,features:t})=>{const r=de((()=>new me),[]),o=oe(["globalFeatures"]),s=ne((()=>"none"),[]),i={baseURL:e,cdnURL:"mockCdnUrl",getFeatures:e=>{var a;return se(null!==(a=oe([e]))&&void 0!==a?a:{},null==t?void 0:t[e])},getToken:s,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"]},o),t.globalFeatures),onError:()=>{},scope:"lmnt",theme:r};return ie(te.Provider,Object.assign({value:i},{children:ie(ce,Object.assign({theme:r},{children:ie(_,Object.assign({baseURL:e,getToken:s},{children:a}))}))}))};export{he as ElementsProvider,fe as ElementsTestProvider};
|
|
1
|
+
import{ShipEngine as _}from"@shipengine/react-api";export*from"@shipengine/react-api";export{y as Actions,x as ActionsMenu,A as AddFundsForm,a as AutoFundingForm,B as ButtonGroup,C as CarrierBalance,c as CarrierConnectionCard,d as CarrierIcon,e as CarrierLogo,f as CollapsiblePanel,h as CopyButton,i as Cube,D as DateRangeCombo,j as DateRangeSelect,k as DisplayTerm,E as EditBillingForm,l as ErrorFallback,F as FieldLabel,m as FormPortal,n as FundAndPurchase,H as HistoryCard,o as HistoryCardExtension,I as InlineLabel,p as ItemsBreakdown,L as LinkAction,q as Loader,P as PoweredByShipEngine,R as RateDetails,S as Section,r as SettingsCard,z as ShipFromAddressForm,t as SkeletonCarrierRow,u as Spacer,v as Spread,T as Tabs,V as VatForm,W as WalletCard,w as WarehouseForm,b as autoFundingSchema,g as getAddFundsSchema,s as styles}from"./actions-menu.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{E as ee,R as ae,a as se}from"./use-toggle.js";export{a as ElementsContext,E as ElementsContextProvider,P as Portal,R as RootPortalProvider,c as useAddressValidation,u as useCountryCodeOptions,g as useElements,d as useNestedForm,e as useRootPortal,b as useStateCodeOptions,f 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";import{t as re}from"./transaction-history-element.js";export{l as LabelsGrid,m as ManageCarriers,b as ManageExternalCarriers,e as ManageFunding,a as ManageWarehouses,p as PaymentMethodSettings,f as SelectLabelLayout,s as ShipmentsGrid,c as ThemeCreator,T as ThemeCreatorProvider,g as TransactionHistory,d as UnitSettings,u as useThemeCreator}from"./transaction-history-element.js";export{e as extendZod}from"./zod.js";export{P as PudoType,p as useBlackboxDetection,u as useConfirmationOptions,a as useCustomsContentsOptions,b as useCustomsNonDeliveryOptions,c as useDateRangeOptions,n as useGetFundingSourceInsuranceProvider,d as useInsuranceProviderOptions,o as useManageFundingSourceInsurance,e as useMovementIndicatorOptions,f as usePackageOptions,g as useRateOptions,q as useScrubErrors,h as useServiceCodeOptions,l as useServicePoints,k as useShipFromAddressOptions,i as useShipmentMetadata,j as useShippingPresetsOptions,m as useWindsorFramework}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{u as useRunOnceOnTrue}from"./use-run-once-on-true.js";export{m as moneySchema}from"./money.js";export{p as phoneSchema,a as phoneSchemaUnvalidated}from"./phone.js";export{C as CanadaDeliveredDutyOptions}from"./canada-ddp.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 te,g as oe,d as ie}from"./carrier.js";export{P as addEmailToValidation,x as addSpaceBetweenWords,A as calculateTotal,t as capitalizeFirstLetter,u as capitalizeFirstLetterOfEachWord,y as currencySymbol,i as daysAfter,d as deepMergeFeatures,q as featureFlagComponentNameLookup,a0 as filterFundingSourceCarriers,a as findDateLocale,b as formatByDateAndLocale,B as formatCreditCardNumber,f as formatDate,c as formatDateDDMMYY,e as formatDateDDMMYYYY,C as formatExpiration,z as formatMoney,X as getCarrierIdByCarrierCode,D as getCurrencyFromString,E as getCurrencySymbolFromString,g as getDefaultFeatures,Q as getDefaultShipFromAddress,j as getExpirationYears,S as getIsShipmentUsingSavedShipFromAddress,Y as getLogoOrIconByCarrierCode,F as getRateRequiresAcknowledgement,l as getRelativeDates,R as getSavedShipFromAddressId,G as getTotalRateAmount,h as getlocaleDateStringFormat,I as isDomesticAddress,O as isEmptyAddress,W as isEvriCarrier,Z as isGlobalPostEligible,J as isMilitaryAddress,k as isNowOrInTheFuture,r as isObject,M as isPoBox,N as isPoBoxAddress,$ as isSendleEligible,K as isUnitedStatesTerritory,L as isUnsupportedByUps,U as isUpsCarrier,T as isUspsCarrier,V as isYodelCarrier,m as mostRecent,n as nextDayCutoff,o as omitTime,H as overrideCarrierCodes,p as parseLocaleDate,v as pascalize,w as replaceSpacesWithDashes,s as sortByCreationDate}from"./carrier.js";export{N as NO_VAT_COUNTRIES,k as convertDecimalWeightToFractionalWeight,j as convertFractionalWeightToDecimalWeight,h as convertPoundsAndOuncesToOunces,l as convertWeight,c as createCodedErrors,m as formatFractionalWeight,u as formatTrackingNumber,g as getCustomsFromSalesOrder,o as getDefaultWarehouse,q as getInsuranceProviderWithFriendlyName,b as getIsCustomsRequiredForSalesOrder,r as getIsInsuraceProviderAccepted,v as getIsVatRequired,d as getRequestedServices,e as getSalesOrderItemsFromSalesOrderOrShipment,p as getWarehouseById,f as isDecimalWeight,n as isFlatRatePackageCode,i as isMetricWeightUnit,a as throwAny,t as throwJoinedMessages,s as trackingStatusFormatter}from"./vat.js";export{a as aggregateRateDetailItems,c as calculateRateDetailBreakdown,b as createStyles,e as errorMap,f as formLogger,i as isString,s as scopeTheme,v as validationResolver}from"./validation.js";export{a as AccountSettings,l as LabelWorkflow,o as Onboarding}from"./wallet-form.js";import{jsx as ne}from"@emotion/react/jsx-runtime";import{useCallback as me,useMemo as de}from"react";import{THEME_ID as ce,GigerProvider as le,GigerTestProvider as pe}from"@shipengine/giger";import{Theme as ue}from"@shipengine/giger-theme";import ge from"axios";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"lodash/merge";import"@tanstack/react-query";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"lodash/isNil";import"lodash/omitBy";import"@hookform/resolvers/zod";const he=({baseURL:e="https://elements.shipengine.com",cdnURL:a="https://cdn.packlink.com",children:s,container:r,features:t,getToken:o,headers:i,locale:n,onApiError:m,onError:d=(()=>{}),scope:c="lmnt",themeConfig:l,defaultQueryClientOptions:p,emotionCacheShadowRootContainer:u,emotionCacheShadowRootContainerWrapper:g})=>{const h=(({cdnURL:e})=>me((a=>te(void 0,void 0,void 0,(function*(){return(yield ge.get(`/brand/fallback/icons/${a.toLowerCase()}.svg`,{baseURL:e,responseType:"text"})).data}))),[e]))({cdnURL:a}),C=de((()=>{var e;const a=new ue(null!==(e=l&&ce in l?l[ce]:l)&&void 0!==e?e:re.fallback);return l&&ce in l?{[ce]:a}:a}),[l]),f={baseURL:e,cdnURL:a,container:r,emotionCacheShadowRootContainer:u,features:t,getToken:o,locale:n,onError:d,scope:c,theme:C};return ne(ee,Object.assign({},f,{children:ne(le,Object.assign({cdnUrl:a,emotionCacheShadowRootContainer:u,reference:g||c||void 0,resolveIcon:h,theme:C},{children:ne(_,Object.assign({baseURL:e,defaultQueryClientOptions:p,getToken:o,headers:i,onApiError:m},{children:ne(ae,Object.assign({emotionCacheShadowRootContainer:u},{children:s}))}))}))}))},Ce=({baseURL:e,children:a,features:s})=>{const r=de((()=>new ue),[]),t=oe(["globalFeatures"]),o=me((()=>"none"),[]),i={baseURL:e,cdnURL:"mockCdnUrl",getFeatures:e=>{var a;return ie(null!==(a=oe([e]))&&void 0!==a?a:{},null==s?void 0:s[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"]},t),s.globalFeatures),onError:()=>{},scope:"lmnt",theme:r};return ne(se.Provider,Object.assign({value:i},{children:ne(pe,Object.assign({theme:r},{children:ne(_,Object.assign({baseURL:e,getToken:o},{children:a}))}))}))};export{he 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.14.0",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@emotion/react": "11.x",
|
|
6
6
|
"react-i18next": "11.x",
|
|
@@ -12,7 +12,10 @@
|
|
|
12
12
|
"workerDirectory": "public"
|
|
13
13
|
},
|
|
14
14
|
"exports": {
|
|
15
|
-
".":
|
|
15
|
+
".": {
|
|
16
|
+
"types": "./src/index.d.ts",
|
|
17
|
+
"default": "./index.js"
|
|
18
|
+
},
|
|
16
19
|
"./components": "./components.js",
|
|
17
20
|
"./constants": "./constants.js",
|
|
18
21
|
"./elements": "./elements.js",
|
|
@@ -8,6 +8,7 @@ type WalletData = {
|
|
|
8
8
|
creditCard: WalletPayload["creditCard"];
|
|
9
9
|
iovationBlackbox: WalletPayload["iovationBlackbox"];
|
|
10
10
|
};
|
|
11
|
+
type WalletUpdateData = Omit<WalletData, "iovationBlackbox"> & Partial<Pick<WalletData, "iovationBlackbox">>;
|
|
11
12
|
type RegisterFundingSourceCarrierData = {
|
|
12
13
|
agreeToTerms: RegisterFundingSourceCarrierPayload["agreeToTerms"];
|
|
13
14
|
};
|
|
@@ -16,7 +17,7 @@ type InternalValidateAddressPayload = {
|
|
|
16
17
|
originAddress: SE.Address;
|
|
17
18
|
returnAddress?: SE.Address | undefined;
|
|
18
19
|
};
|
|
19
|
-
data?: WarehouseData | WalletData | RegisterFundingSourceCarrierData;
|
|
20
|
+
data?: WarehouseData | WalletData | WalletUpdateData | RegisterFundingSourceCarrierData;
|
|
20
21
|
onValid: (payload: {
|
|
21
22
|
originAddress: SE.Address;
|
|
22
23
|
returnAddress?: SE.Address;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { SE } from "@shipengine/react-api";
|
|
2
2
|
export type EditBillingFormProps = {
|
|
3
|
+
isLoading?: boolean;
|
|
3
4
|
onCancel: () => void;
|
|
4
5
|
onSubmit: (billingInfo: SE.FundingSourceAddress, creditCardInfo: SE.CreditCardInfo) => void;
|
|
5
6
|
};
|
|
6
|
-
export declare const EditBillingForm: ({ onCancel, onSubmit }: EditBillingFormProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
7
|
+
export declare const EditBillingForm: ({ onCancel, onSubmit, isLoading }: EditBillingFormProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { InsuranceProviderProfile } from "../../types";
|
|
2
2
|
type EnableInsuranceBannerProps = {
|
|
3
3
|
insuranceProviderProfile?: InsuranceProviderProfile;
|
|
4
|
-
onSubmit: () => Promise<
|
|
5
|
-
|
|
4
|
+
onSubmit: () => Promise<{
|
|
5
|
+
isSuccessful: boolean;
|
|
6
|
+
}>;
|
|
6
7
|
};
|
|
7
|
-
export declare const EnableInsuranceBanner: ({ insuranceProviderProfile, onSubmit,
|
|
8
|
+
export declare const EnableInsuranceBanner: ({ insuranceProviderProfile, onSubmit, }: EnableInsuranceBannerProps) => import("@emotion/react/jsx-runtime").JSX.Element | null;
|
|
8
9
|
export {};
|
|
@@ -3,7 +3,9 @@ import { InsuranceProviderProfile } from "../../../types";
|
|
|
3
3
|
export type RegisterFundingSourceInsuranceFormProps<T = undefined> = {
|
|
4
4
|
insuranceProviderProfile?: InsuranceProviderProfile;
|
|
5
5
|
onCancel: () => void;
|
|
6
|
-
onSubmit: () => Promise<void
|
|
6
|
+
onSubmit: () => Promise<void> | Promise<{
|
|
7
|
+
isSuccessful: boolean;
|
|
8
|
+
}>;
|
|
7
9
|
showDescription?: boolean;
|
|
8
10
|
} & ({
|
|
9
11
|
formId: string;
|
|
@@ -9,6 +9,7 @@ export type OnChangeAddressOptions = {
|
|
|
9
9
|
shouldValidate?: boolean;
|
|
10
10
|
};
|
|
11
11
|
export type ShipmentFormMode = "browse_rates" | "select_service";
|
|
12
|
+
export type ShipmentFormModeChangeSource = "form" | "user";
|
|
12
13
|
export type ShipmentFormProps = {
|
|
13
14
|
accountSettings?: SE.ShipEngineAccountSettings;
|
|
14
15
|
addressLoading: boolean;
|
|
@@ -29,6 +30,7 @@ export type ShipmentFormProps = {
|
|
|
29
30
|
defaultMode: ShipmentFormMode;
|
|
30
31
|
previousMode: ShipmentFormMode;
|
|
31
32
|
selectedMode: ShipmentFormMode;
|
|
33
|
+
source: ShipmentFormModeChangeSource;
|
|
32
34
|
}) => Promise<void> | void;
|
|
33
35
|
onChangeShipFromAddress: (id?: string, shipFromAddress?: ShipFromAddress) => Promise<void>;
|
|
34
36
|
onDirty: () => void;
|
|
@@ -31,15 +31,35 @@ export declare const styles: {
|
|
|
31
31
|
justifyContent: "space-between";
|
|
32
32
|
position: "relative";
|
|
33
33
|
};
|
|
34
|
-
|
|
34
|
+
getApplyButtonStyles: (disabled?: boolean) => (theme: Theme) => {
|
|
35
|
+
"&:hover": {
|
|
36
|
+
backgroundColor: string;
|
|
37
|
+
};
|
|
38
|
+
backgroundColor: string;
|
|
39
|
+
borderRadius: number;
|
|
40
|
+
color: "white";
|
|
41
|
+
cursor: "not-allowed" | "pointer";
|
|
42
|
+
fontSize: string;
|
|
43
|
+
justifyContent: "center";
|
|
44
|
+
padding: number;
|
|
45
|
+
textAlign: "center";
|
|
46
|
+
};
|
|
47
|
+
header: (theme: Theme) => {
|
|
35
48
|
alignItems: "center";
|
|
36
49
|
display: "flex";
|
|
50
|
+
gap: number;
|
|
37
51
|
justifyContent: "space-between";
|
|
38
52
|
};
|
|
53
|
+
inputForm: (theme: Theme) => {
|
|
54
|
+
display: "flex";
|
|
55
|
+
flexDirection: "column";
|
|
56
|
+
padding: string;
|
|
57
|
+
width: number;
|
|
58
|
+
};
|
|
39
59
|
popoverWrapper: (theme: Theme) => {
|
|
40
60
|
display: "flex";
|
|
41
61
|
flexDirection: "column";
|
|
42
|
-
|
|
62
|
+
width: number;
|
|
43
63
|
};
|
|
44
64
|
pre: (theme: Theme) => {
|
|
45
65
|
backgroundColor: "#FFFFFF66";
|
|
@@ -47,14 +67,25 @@ export declare const styles: {
|
|
|
47
67
|
fontSize: string;
|
|
48
68
|
padding: number;
|
|
49
69
|
};
|
|
70
|
+
presetListItem: (theme: Theme) => {
|
|
71
|
+
alignItems: "center";
|
|
72
|
+
display: "flex";
|
|
73
|
+
height: number;
|
|
74
|
+
justifyContent: "space-between";
|
|
75
|
+
padding: number;
|
|
76
|
+
width: string;
|
|
77
|
+
};
|
|
50
78
|
presetOption: (theme: Theme) => {
|
|
51
79
|
"&:hover": {
|
|
52
80
|
backgroundColor: "scopeTheme(theme).palette.gray.ultraLight";
|
|
53
81
|
};
|
|
54
82
|
backgroundColor: "transparent";
|
|
55
83
|
borderRadius: string;
|
|
84
|
+
color: string;
|
|
56
85
|
fontSize: string;
|
|
86
|
+
fontWeight: "normal";
|
|
57
87
|
padding: number;
|
|
88
|
+
width: string;
|
|
58
89
|
};
|
|
59
90
|
presetsButton: (theme: Theme) => {
|
|
60
91
|
"&:hover": {
|
|
@@ -66,6 +97,13 @@ export declare const styles: {
|
|
|
66
97
|
display: "flex";
|
|
67
98
|
fontSize: string;
|
|
68
99
|
gap: number;
|
|
100
|
+
justifyContent: "center";
|
|
69
101
|
padding: string;
|
|
102
|
+
width: string;
|
|
103
|
+
};
|
|
104
|
+
textArea: (theme: Theme) => {
|
|
105
|
+
fontSize: string;
|
|
106
|
+
minHeight: number;
|
|
107
|
+
width: string;
|
|
70
108
|
};
|
|
71
109
|
};
|
|
@@ -4,7 +4,12 @@ export declare const walletEmailSchemas: {
|
|
|
4
4
|
emailOptional: z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodString>>, string | undefined, string | null | undefined>;
|
|
5
5
|
emailRequired: z.ZodString;
|
|
6
6
|
};
|
|
7
|
+
export declare const walletBlackboxSchemas: {
|
|
8
|
+
blackboxOptional: z.ZodOptional<z.ZodString>;
|
|
9
|
+
blackboxRequired: z.ZodString;
|
|
10
|
+
};
|
|
7
11
|
export type EmailRequirementOption = keyof typeof walletEmailSchemas;
|
|
12
|
+
export type BlackboxRequirementOption = keyof typeof walletBlackboxSchemas;
|
|
8
13
|
export declare const getBillingAddressSchema: (emailRequirement: EmailRequirementOption) => z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodObject<z.extendShape<{
|
|
9
14
|
addressLine1: z.ZodString;
|
|
10
15
|
addressLine2: z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodString>>, string | undefined, string | null | undefined>;
|
|
@@ -136,7 +141,7 @@ export declare const getBillingAddressSchema: (emailRequirement: EmailRequiremen
|
|
|
136
141
|
type BillingAddressSchema = ReturnType<typeof getBillingAddressSchema>;
|
|
137
142
|
export type BillingAddressFields = z.input<BillingAddressSchema>;
|
|
138
143
|
export type BillingAddressPayload = z.output<BillingAddressSchema>;
|
|
139
|
-
export declare const getWalletSchema: (emailRequirement: EmailRequirementOption) => z.ZodObject<{
|
|
144
|
+
export declare const getWalletSchema: (emailRequirement: EmailRequirementOption, blackboxRequirement: BlackboxRequirementOption) => z.ZodObject<{
|
|
140
145
|
address: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodObject<z.extendShape<{
|
|
141
146
|
addressLine1: z.ZodString;
|
|
142
147
|
addressLine2: z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodString>>, string | undefined, string | null | undefined>;
|
|
@@ -268,7 +273,7 @@ export declare const getWalletSchema: (emailRequirement: EmailRequirementOption)
|
|
|
268
273
|
creditCard: z.ZodEffects<z.ZodObject<{
|
|
269
274
|
cvv: z.ZodEffects<z.ZodString, string, string>;
|
|
270
275
|
expiration: z.ZodEffects<z.ZodString, string, string>;
|
|
271
|
-
name: z.ZodString
|
|
276
|
+
name: z.ZodEffects<z.ZodString, string, string>;
|
|
272
277
|
number: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
273
278
|
}, "strip", z.ZodTypeAny, {
|
|
274
279
|
number: string;
|
|
@@ -293,8 +298,9 @@ export declare const getWalletSchema: (emailRequirement: EmailRequirementOption)
|
|
|
293
298
|
cvv: string;
|
|
294
299
|
expiration: string;
|
|
295
300
|
}>;
|
|
296
|
-
iovationBlackbox: z.ZodString
|
|
301
|
+
iovationBlackbox: z.ZodString | z.ZodOptional<z.ZodString>;
|
|
297
302
|
}, "strip", z.ZodTypeAny, {
|
|
303
|
+
iovationBlackbox?: string | undefined;
|
|
298
304
|
address: {
|
|
299
305
|
addressLine2?: string | undefined;
|
|
300
306
|
email?: string | undefined;
|
|
@@ -315,8 +321,8 @@ export declare const getWalletSchema: (emailRequirement: EmailRequirementOption)
|
|
|
315
321
|
name: string;
|
|
316
322
|
provider: Provider;
|
|
317
323
|
};
|
|
318
|
-
iovationBlackbox: string;
|
|
319
324
|
}, {
|
|
325
|
+
iovationBlackbox?: string | undefined;
|
|
320
326
|
address: {
|
|
321
327
|
addressLine2?: string | null | undefined;
|
|
322
328
|
email?: string | null | undefined;
|
|
@@ -335,7 +341,6 @@ export declare const getWalletSchema: (emailRequirement: EmailRequirementOption)
|
|
|
335
341
|
cvv: string;
|
|
336
342
|
expiration: string;
|
|
337
343
|
};
|
|
338
|
-
iovationBlackbox: string;
|
|
339
344
|
}>;
|
|
340
345
|
type WalletSchema = ReturnType<typeof getWalletSchema>;
|
|
341
346
|
export type WalletFormFields = z.input<WalletSchema>;
|
|
@@ -194,6 +194,10 @@ export declare const Element: ({ resources, ...props }: LabelsGridProps & {
|
|
|
194
194
|
subtitle: string;
|
|
195
195
|
};
|
|
196
196
|
insuranceProviders: {
|
|
197
|
+
connectionError: {
|
|
198
|
+
title: string;
|
|
199
|
+
description: string;
|
|
200
|
+
};
|
|
197
201
|
parcelguard: {
|
|
198
202
|
description: string;
|
|
199
203
|
terms: string;
|
|
@@ -1000,7 +1004,7 @@ export declare const Element: ({ resources, ...props }: LabelsGridProps & {
|
|
|
1000
1004
|
};
|
|
1001
1005
|
invalidAddressName: string;
|
|
1002
1006
|
invalidAddressNameStrict: string;
|
|
1003
|
-
|
|
1007
|
+
invalidAddressNameOnboarding: string;
|
|
1004
1008
|
invalidAddressPoBox: string;
|
|
1005
1009
|
invalidCreditCardType: string;
|
|
1006
1010
|
invalidExpirationDate: string;
|
|
@@ -167,6 +167,10 @@ export declare const Element: ({ resources, ...props }: ShipEngineCarriersProps
|
|
|
167
167
|
subtitle: string;
|
|
168
168
|
};
|
|
169
169
|
insuranceProviders: {
|
|
170
|
+
connectionError: {
|
|
171
|
+
title: string;
|
|
172
|
+
description: string;
|
|
173
|
+
};
|
|
170
174
|
parcelguard: {
|
|
171
175
|
description: string;
|
|
172
176
|
terms: string;
|
|
@@ -1013,7 +1017,7 @@ export declare const Element: ({ resources, ...props }: ShipEngineCarriersProps
|
|
|
1013
1017
|
};
|
|
1014
1018
|
invalidAddressName: string;
|
|
1015
1019
|
invalidAddressNameStrict: string;
|
|
1016
|
-
|
|
1020
|
+
invalidAddressNameOnboarding: string;
|
|
1017
1021
|
invalidAddressPoBox: string;
|
|
1018
1022
|
invalidCreditCardType: string;
|
|
1019
1023
|
invalidExpirationDate: string;
|
|
@@ -211,6 +211,10 @@ export declare const Element: ({ resources, ...props }: ExternalCarriersProps &
|
|
|
211
211
|
subtitle: string;
|
|
212
212
|
};
|
|
213
213
|
insuranceProviders: {
|
|
214
|
+
connectionError: {
|
|
215
|
+
title: string;
|
|
216
|
+
description: string;
|
|
217
|
+
};
|
|
214
218
|
parcelguard: {
|
|
215
219
|
description: string;
|
|
216
220
|
terms: string;
|
|
@@ -1013,7 +1017,7 @@ export declare const Element: ({ resources, ...props }: ExternalCarriersProps &
|
|
|
1013
1017
|
};
|
|
1014
1018
|
invalidAddressName: string;
|
|
1015
1019
|
invalidAddressNameStrict: string;
|
|
1016
|
-
|
|
1020
|
+
invalidAddressNameOnboarding: string;
|
|
1017
1021
|
invalidAddressPoBox: string;
|
|
1018
1022
|
invalidCreditCardType: string;
|
|
1019
1023
|
invalidExpirationDate: string;
|
|
@@ -144,6 +144,10 @@ export declare const Element: ({ resources, ...props }: ManageFundingProps & {
|
|
|
144
144
|
subtitle: string;
|
|
145
145
|
};
|
|
146
146
|
insuranceProviders: {
|
|
147
|
+
connectionError: {
|
|
148
|
+
title: string;
|
|
149
|
+
description: string;
|
|
150
|
+
};
|
|
147
151
|
parcelguard: {
|
|
148
152
|
description: string;
|
|
149
153
|
terms: string;
|
|
@@ -946,7 +950,7 @@ export declare const Element: ({ resources, ...props }: ManageFundingProps & {
|
|
|
946
950
|
};
|
|
947
951
|
invalidAddressName: string;
|
|
948
952
|
invalidAddressNameStrict: string;
|
|
949
|
-
|
|
953
|
+
invalidAddressNameOnboarding: string;
|
|
950
954
|
invalidAddressPoBox: string;
|
|
951
955
|
invalidCreditCardType: string;
|
|
952
956
|
invalidExpirationDate: string;
|
|
@@ -161,6 +161,10 @@ export declare const Element: ({ resources, ...props }: object & {
|
|
|
161
161
|
subtitle: string;
|
|
162
162
|
};
|
|
163
163
|
insuranceProviders: {
|
|
164
|
+
connectionError: {
|
|
165
|
+
title: string;
|
|
166
|
+
description: string;
|
|
167
|
+
};
|
|
164
168
|
parcelguard: {
|
|
165
169
|
description: string;
|
|
166
170
|
terms: string;
|
|
@@ -980,7 +984,7 @@ export declare const Element: ({ resources, ...props }: object & {
|
|
|
980
984
|
};
|
|
981
985
|
invalidAddressName: string;
|
|
982
986
|
invalidAddressNameStrict: string;
|
|
983
|
-
|
|
987
|
+
invalidAddressNameOnboarding: string;
|
|
984
988
|
invalidAddressPoBox: string;
|
|
985
989
|
invalidCreditCardType: string;
|
|
986
990
|
invalidExpirationDate: string;
|
|
@@ -144,6 +144,10 @@ export declare const Element: ({ resources, ...props }: PaymentMethodSettingsPro
|
|
|
144
144
|
subtitle: string;
|
|
145
145
|
};
|
|
146
146
|
insuranceProviders: {
|
|
147
|
+
connectionError: {
|
|
148
|
+
title: string;
|
|
149
|
+
description: string;
|
|
150
|
+
};
|
|
147
151
|
parcelguard: {
|
|
148
152
|
description: string;
|
|
149
153
|
terms: string;
|
|
@@ -946,7 +950,7 @@ export declare const Element: ({ resources, ...props }: PaymentMethodSettingsPro
|
|
|
946
950
|
};
|
|
947
951
|
invalidAddressName: string;
|
|
948
952
|
invalidAddressNameStrict: string;
|
|
949
|
-
|
|
953
|
+
invalidAddressNameOnboarding: string;
|
|
950
954
|
invalidAddressPoBox: string;
|
|
951
955
|
invalidCreditCardType: string;
|
|
952
956
|
invalidExpirationDate: string;
|
|
@@ -33,4 +33,4 @@ export type ConfigureShipmentProps = {
|
|
|
33
33
|
shippingPresets?: UseShippingPresetsOptionsProps;
|
|
34
34
|
warehouseId?: string;
|
|
35
35
|
};
|
|
36
|
-
export declare const ConfigureShipment: ({ errors, features, currency, getPreferredRates, onAddressValidation, onApplyPreset, onBeforeLabelCreate, onChangeAddress, onLabelCreateFailure, onLabelCreateSuccess, onRateSaved, onRatesCalculated, onShipmentUpdated, printLabelLayout, preferredServiceCodes, salesOrder, shipment, onBeforeRateSaved, shipFromAddresses, ...props }: ConfigureShipmentProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
36
|
+
export declare const ConfigureShipment: ({ errors, features, currency, getPreferredRates, onAddressValidation, onApplyPreset, onBeforeLabelCreate, onChangeAddress, onChangeShipmentFormMode, onLabelCreateFailure, onLabelCreateSuccess, onRateSaved, onRatesCalculated, onShipmentUpdated, printLabelLayout, preferredServiceCodes, salesOrder, shipment, onBeforeRateSaved, shipFromAddresses, ...props }: ConfigureShipmentProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -366,6 +366,10 @@ export declare const Element: ({ resources, ...props }: PurchaseLabelCommonProps
|
|
|
366
366
|
subtitle: string;
|
|
367
367
|
};
|
|
368
368
|
insuranceProviders: {
|
|
369
|
+
connectionError: {
|
|
370
|
+
title: string;
|
|
371
|
+
description: string;
|
|
372
|
+
};
|
|
369
373
|
parcelguard: {
|
|
370
374
|
description: string;
|
|
371
375
|
terms: string;
|
|
@@ -1193,7 +1197,7 @@ export declare const Element: ({ resources, ...props }: PurchaseLabelCommonProps
|
|
|
1193
1197
|
};
|
|
1194
1198
|
invalidAddressName: string;
|
|
1195
1199
|
invalidAddressNameStrict: string;
|
|
1196
|
-
|
|
1200
|
+
invalidAddressNameOnboarding: string;
|
|
1197
1201
|
invalidAddressPoBox: string;
|
|
1198
1202
|
invalidCreditCardType: string;
|
|
1199
1203
|
invalidExpirationDate: string;
|
|
@@ -143,6 +143,10 @@ export declare const Element: ({ resources, ...props }: object & {
|
|
|
143
143
|
subtitle: string;
|
|
144
144
|
};
|
|
145
145
|
insuranceProviders: {
|
|
146
|
+
connectionError: {
|
|
147
|
+
title: string;
|
|
148
|
+
description: string;
|
|
149
|
+
};
|
|
146
150
|
parcelguard: {
|
|
147
151
|
description: string;
|
|
148
152
|
terms: string;
|
|
@@ -945,7 +949,7 @@ export declare const Element: ({ resources, ...props }: object & {
|
|
|
945
949
|
};
|
|
946
950
|
invalidAddressName: string;
|
|
947
951
|
invalidAddressNameStrict: string;
|
|
948
|
-
|
|
952
|
+
invalidAddressNameOnboarding: string;
|
|
949
953
|
invalidAddressPoBox: string;
|
|
950
954
|
invalidCreditCardType: string;
|
|
951
955
|
invalidExpirationDate: string;
|
|
@@ -234,6 +234,10 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
234
234
|
subtitle: string;
|
|
235
235
|
};
|
|
236
236
|
insuranceProviders: {
|
|
237
|
+
connectionError: {
|
|
238
|
+
title: string;
|
|
239
|
+
description: string;
|
|
240
|
+
};
|
|
237
241
|
parcelguard: {
|
|
238
242
|
description: string;
|
|
239
243
|
terms: string;
|
|
@@ -250,10 +254,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
250
254
|
};
|
|
251
255
|
info: {
|
|
252
256
|
description: string;
|
|
253
|
-
};
|
|
254
|
-
* `onClickVoidLabel` is a callback function that will be invoked when the user clicks the
|
|
255
|
-
* `Void Label` button.
|
|
256
|
-
*/
|
|
257
|
+
};
|
|
257
258
|
poBox: {
|
|
258
259
|
title: string;
|
|
259
260
|
description: string;
|
|
@@ -1079,7 +1080,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
1079
1080
|
};
|
|
1080
1081
|
invalidAddressName: string;
|
|
1081
1082
|
invalidAddressNameStrict: string;
|
|
1082
|
-
|
|
1083
|
+
invalidAddressNameOnboarding: string;
|
|
1083
1084
|
invalidAddressPoBox: string;
|
|
1084
1085
|
invalidCreditCardType: string;
|
|
1085
1086
|
invalidExpirationDate: string;
|
|
@@ -218,6 +218,10 @@ export declare const Element: ({ resources, ...props }: ShipmentsGridProps & {
|
|
|
218
218
|
subtitle: string;
|
|
219
219
|
};
|
|
220
220
|
insuranceProviders: {
|
|
221
|
+
connectionError: {
|
|
222
|
+
title: string;
|
|
223
|
+
description: string;
|
|
224
|
+
};
|
|
221
225
|
parcelguard: {
|
|
222
226
|
description: string;
|
|
223
227
|
terms: string;
|
|
@@ -1080,7 +1084,7 @@ export declare const Element: ({ resources, ...props }: ShipmentsGridProps & {
|
|
|
1080
1084
|
};
|
|
1081
1085
|
invalidAddressName: string;
|
|
1082
1086
|
invalidAddressNameStrict: string;
|
|
1083
|
-
|
|
1087
|
+
invalidAddressNameOnboarding: string;
|
|
1084
1088
|
invalidAddressPoBox: string;
|
|
1085
1089
|
invalidCreditCardType: string;
|
|
1086
1090
|
invalidExpirationDate: string;
|
|
@@ -156,6 +156,10 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
156
156
|
subtitle: string;
|
|
157
157
|
};
|
|
158
158
|
insuranceProviders: {
|
|
159
|
+
connectionError: {
|
|
160
|
+
title: string;
|
|
161
|
+
description: string;
|
|
162
|
+
};
|
|
159
163
|
parcelguard: {
|
|
160
164
|
description: string;
|
|
161
165
|
terms: string;
|
|
@@ -958,7 +962,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
958
962
|
};
|
|
959
963
|
invalidAddressName: string;
|
|
960
964
|
invalidAddressNameStrict: string;
|
|
961
|
-
|
|
965
|
+
invalidAddressNameOnboarding: string;
|
|
962
966
|
invalidAddressPoBox: string;
|
|
963
967
|
invalidCreditCardType: string;
|
|
964
968
|
invalidExpirationDate: string;
|
|
@@ -143,6 +143,10 @@ export declare const Element: ({ resources, ...props }: object & {
|
|
|
143
143
|
subtitle: string;
|
|
144
144
|
};
|
|
145
145
|
insuranceProviders: {
|
|
146
|
+
connectionError: {
|
|
147
|
+
title: string;
|
|
148
|
+
description: string;
|
|
149
|
+
};
|
|
146
150
|
parcelguard: {
|
|
147
151
|
description: string;
|
|
148
152
|
terms: string;
|
|
@@ -945,7 +949,7 @@ export declare const Element: ({ resources, ...props }: object & {
|
|
|
945
949
|
};
|
|
946
950
|
invalidAddressName: string;
|
|
947
951
|
invalidAddressNameStrict: string;
|
|
948
|
-
|
|
952
|
+
invalidAddressNameOnboarding: string;
|
|
949
953
|
invalidAddressPoBox: string;
|
|
950
954
|
invalidCreditCardType: string;
|
|
951
955
|
invalidExpirationDate: string;
|
|
@@ -143,6 +143,10 @@ export declare const Element: ({ resources, ...props }: object & {
|
|
|
143
143
|
subtitle: string;
|
|
144
144
|
};
|
|
145
145
|
insuranceProviders: {
|
|
146
|
+
connectionError: {
|
|
147
|
+
title: string;
|
|
148
|
+
description: string;
|
|
149
|
+
};
|
|
146
150
|
parcelguard: {
|
|
147
151
|
description: string;
|
|
148
152
|
terms: string;
|
|
@@ -945,7 +949,7 @@ export declare const Element: ({ resources, ...props }: object & {
|
|
|
945
949
|
};
|
|
946
950
|
invalidAddressName: string;
|
|
947
951
|
invalidAddressNameStrict: string;
|
|
948
|
-
|
|
952
|
+
invalidAddressNameOnboarding: string;
|
|
949
953
|
invalidAddressPoBox: string;
|
|
950
954
|
invalidCreditCardType: string;
|
|
951
955
|
invalidExpirationDate: string;
|