Skip to main content

@acromedia/gesso-core

6.2.0

Minor Changes

  • da18e67: Update types related to Order and PageInfo, moving them to the Core package

6.1.4

Patch Changes

  • a98eeac: Fix: Adjust CartItemProductOption to accept a string for the optionValue property.
  • a98eeac: Deprecate: CartItem properties currently typed as CartItemProperties | CartItemProperties[] will become CartItemProperties in V8.

6.1.3

Patch Changes

  • 3bcf44c: add an optional subtitle field to the product properties type

6.1.2

Patch Changes

  • 66ed396: Update: move ShippingMethodsOptions type from design-system to core.

6.1.1

Patch Changes

  • baa721c: Add: data prop to Cart type and and CartItem type so extra data can be mapped to the useCart response.

6.1.0

Minor Changes

  • 0a5c916: add quotes to core and erp packages

6.0.0

Major Changes

  • 609c5e9: ### Cart Interface: Deprecated Properties Removed

    The Cart interface has been updated to remove deprecated properties.

    Changes:

    • Removed the following deprecated properties:
      • subtotal (use adjustments with id: 'subtotal' instead)
      • total (use adjustments with id: 'total' instead)
      • totalItems (use adjustments with id: 'totalItems' instead)

    Rationale:

    • Simplifies the Cart interface by consolidating total-related information into the adjustments array, providing a more consistent structure.

    Impact:

    • Code that directly accessed the removed properties (subtotal, total, totalItems) will need to be updated to retrieve the information from the adjustments array.

    Example Update:

    const subtotal = cart.adjustments?.find(
    (adj) => adj.id === "subtotal"
    )?.value;

    Invoice Interface: Deprecated Properties Removed

    The Invoice and Details interfaces have been updated to remove deprecated properties.

    Changes:

    • Invoice Interface:
      • Removed shippingTotal (deprecated).
    • Details Interface:
      • Removed orderNumber (deprecated).

    Note: No alternative properties or adjustments are needed as these fields were simply removed without replacement.

    Product Interface: Deprecated Properties Removed

    The Product interface has been updated to remove deprecated properties.

    Changes:

    • Removed formatedDescription (deprecated).

    Note: This property was removed in favour of the correctly spelled formattedDescription property. Internal implementations within Gesso have been updated, but if you do have any code accessing product.formatedDescription you will just want to update to product.formattedDescription.

5.3.2

Patch Changes

  • cc252ca: Add: add type prop to CartItem type.

5.3.1

Patch Changes

  • 2b606f9: Change the items property to optional in our cart type. This is required for our type-checking when needing to pass a cart object with only an id property.

5.3.0

Minor Changes

  • 6f94395: Migrating decodeHTMLEntities to only impact clientside components.

5.2.4

Patch Changes

  • b07a19a: Return unmapped product data under data property

5.2.3

Patch Changes

  • eda72b5: Moved the PasswordValidationOptions interface to Gesso core.

5.2.2

Patch Changes

  • af19949e5: add: type property to cart item properties so we can pass the product type to the add method of useCart.

5.2.1

Patch Changes

  • 29d64f7: feat: Add type prop to product type to allow drupal-commerce products to be added to a cart.

5.2.0

Minor Changes

  • 9dbfed6: Add seo type for gesso product. Add seo data to gql request for product in bigcommerce. Map seo data from big commerce to gesso.
  • ede7130: Add facets and sorting to useProductSearch for Shopify

5.1.0

Minor Changes

  • 8f9c3c8: moves decodeHTMLEntities helper util from BigCommerce to Core as its usefulness is not limited to BigCommerce
  • 24e76cb: Changed catalog.tsx to properly run via API and work with any sized product catalog, instead of just working with a limited set in-page

5.0.1

Patch Changes

  • 352ef12: Update dependencies and clean up dependency tree

5.0.0

Major Changes

  • bff9b4a: The id property on the interface Product is now type string instead of type number | string

4.9.0

Minor Changes

  • 44e261b: Added price and sku to productoptions for use on the frontEnd

4.8.4

Patch Changes

  • e95eefc: Add support for product variation inventory in big commerce and extend core Product type.

4.8.3

Patch Changes

  • 0fa3efa: Fix: Add new invoices data props (terms, unitOfMeasure, discountTotal) and deprecate old ones (shippingTotal, orderNumber)

4.8.2

Patch Changes

  • 427f62f: Adjusted CartItemProperties interface in in core Cart. Also adjusted shopify's useCart hook to set merchandiseId as product variantId.
  • a257243: Corrected spelling error on formattedDescription. Adjusted shopify Product to use formattedDescription as other libraries do.

4.8.1

Patch Changes

  • 5afc784: Updated the product card to render price ranges if the unit price is unavailable. Adjusted the shopify package to use price range if there is no variant supplied.
  • 11e619c: Updates BigCommerce product variants to contain only their options opposed to merged list of all availalbe options for that product

4.8.0

Minor Changes

  • 8990ef8: Changed product hook to return html description and use it in ProductDetails component

  • 72b712a7: ## Commerce Function Refactoring:

    • Refactored commerce function for generic usage, supporting various platform plugins.
    • Moved refactored commerce function to the commerce package.

    Config Function Refactoring:

    • Config function now generic, accepts a generateTokens function for any needed platform tokens.
    • Refactored config function moved to the core package.

4.7.0

Minor Changes

  • 570cf1c7: "Extend big commerce data schema on UseProductSearch to support brands. Add branch support to useProductSearch."

Patch Changes

  • a1dff1d2: Updates CartItemProperties to also accept an array
  • 3f5bf9bc: Add support for addOns as part of CartItem properties. Adjust starter kit formData so payload can handle big commerce customizations in add cart.

4.6.0

Minor Changes

  • 33ec202: Extend ProductOption types in core and bigcommerce to include ProductPickList. Refactor ProductOption types for multiple implementations in bigcommerce. This will enable product-addon integration in consuming clients.

Patch Changes

  • 5008386: updates cart types to accept numbers and strings for total/subtotal depending on implementation

4.5.0

Minor Changes

  • 4b19bf6: "Extend Product types in core and bigcommerce to have isPurchasable bool. This allows us to infer what product variants are purchasable skus on the product page. Certain product option combinations are sometimes invalid and need to be blocked in UI. This option is configurable via the related ecommerce integration on a per-product basis."
  • 0072813: adds adjustments and CartLineItems interface to core for synchronicity between packages

4.4.0

Minor Changes

  • 762d1c2: "Reverting type change back to string for ProductOption."

4.3.0

Minor Changes

  • 14f323f: "Updating ProductDetails for new product options data."
  • 98613c6: Add variant and improved option support to Commerce

4.2.0

Minor Changes

  • 6353016: Add filters and facet data types for bigcommerce filter data.

4.1.0

Minor Changes

  • 12c9aeb: add graphql query override functions

4.0.1

Patch Changes

  • d92f848: Add a url property to the Product interface and use if passed in the ProductList component.

4.0.0

Major Changes

  • f49ee1f: gesso v4 version bump

3.1.0

Minor Changes

  • 89df947: Consolidated a number of disconnected types into @acromedia/gesso-core, products and carts can now be shared between components and hooks

3.0.1

Patch Changes

  • 9044e4a: Build gesso-core and publish externally

3.0.0

Major Changes

  • a11ea27: Release v3 Gesso packages

0.2.0

Minor Changes

  • 8266511: Added UseContentSearch Hook

0.1.0

Minor Changes

  • 36a594050: Initial Gesso-Core release, publishes shared Response functionality for use with providers