@liquidcommerce/elements-sdk 2.6.0-beta.24 → 2.6.0-beta.25

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.
@@ -1,4 +1,4 @@
1
- import type { ICheckoutAmounts, ICheckoutBilling, ICheckoutCustomer, ICheckoutEvent, ICheckoutFulfillment, ICheckoutGiftCard, ICheckoutGiftRecipient, ICheckoutItem, ICheckoutMarketingPreferences, ICheckoutPaymentConfirm, ICheckoutPaymentSession, ICheckoutPresale, ICheckoutPromoCode, ICheckoutRetailer } from '@/interfaces/api/checkout.interface';
1
+ import type { ICheckoutAmounts, ICheckoutBilling, ICheckoutCustomer, ICheckoutEvent, ICheckoutFulfillment, ICheckoutGiftCard, ICheckoutGiftRecipient, ICheckoutItem, ICheckoutMarketingPreferences, ICheckoutPaymentConfirm, ICheckoutPaymentSession, ICheckoutPresale, ICheckoutPromoCode, ICheckoutRetailer, ICheckoutShippingAddress } from '@/interfaces/api/checkout.interface';
2
2
  export interface ICheckoutItemStore extends ICheckoutItem {
3
3
  loading: boolean;
4
4
  updating: boolean;
@@ -38,7 +38,7 @@ export interface ICheckoutStore {
38
38
  customerForm: ICheckoutCustomerFormStore;
39
39
  giftRecipientForm: ICheckoutGiftRecipientFormStore;
40
40
  paymentForm: ICheckoutPaymentFormStore;
41
- shippingAddressTwo: string;
41
+ shippingAddress: ICheckoutShippingAddress;
42
42
  promoCode: ICheckoutPromoCode | null;
43
43
  giftCards: ICheckoutGiftCard[];
44
44
  itemsQuantity: number;
@@ -117,7 +117,10 @@ export interface ICheckoutGiftCard {
117
117
  code: string;
118
118
  applied: number;
119
119
  }
120
- export interface ICheckoutShippingAddress extends IAddressAddress, IAddressCoordinates {
120
+ export interface ICheckoutShippingAddress {
121
+ formattedAddress: string;
122
+ address: IAddressAddress;
123
+ coordinates: IAddressCoordinates;
121
124
  }
122
125
  export interface ICheckoutItemEngraving {
123
126
  isEngravable: boolean;
@@ -34,7 +34,6 @@ export interface IProductSize {
34
34
  onDemandVariants: Record<string, IProductVariant>;
35
35
  }
36
36
  export interface IProductFulfillmentHourStatus {
37
- text: string;
38
37
  isOpen: boolean;
39
38
  openTime: string;
40
39
  isClosed: boolean;
@@ -1,7 +1,6 @@
1
1
  export declare function centToDollar(cent: number): number;
2
2
  export declare function formatCentToDollarText(cent: number, showZeroDecimals?: boolean): string;
3
3
  export declare function htmlStringToElement(htmlString: string): HTMLElement;
4
- export declare function format24TimeTo12(time24h: string): string;
5
4
  export declare function formatISODateToMMDDYYYY(isoDateString: string | null | undefined): string;
6
5
  export declare function capitalizeFirstLetter(text: string): string;
7
6
  export declare function splitCategoryPath(catPath?: string): {
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "LiquidCommerce Elements SDK",
4
4
  "license": "UNLICENSED",
5
5
  "author": "LiquidCommerce Team",
6
- "version": "2.6.0-beta.24",
6
+ "version": "2.6.0-beta.25",
7
7
  "homepage": "https://docs.liquidcommerce.co/elements-sdk",
8
8
  "repository": {
9
9
  "type": "git",
@@ -90,7 +90,7 @@
90
90
  "conventional-changelog-cli": "^5.0.0",
91
91
  "husky": "^9.1.7",
92
92
  "process": "^0.11.10",
93
- "rollup": "^4.53.5",
93
+ "rollup": "^4.54.0",
94
94
  "rollup-obfuscator": "^4.1.1",
95
95
  "rollup-plugin-typescript2": "^0.36.0",
96
96
  "semantic-release": "^25.0.2",