@brytdesigns/shopify-ajax-cart-components 1.3.0 → 1.3.2

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.
Files changed (66) hide show
  1. package/dist/esm/index.js +33 -26
  2. package/dist/esm/index.js.map +1 -1
  3. package/dist/jsdelivr/components/cart-context.js +22 -0
  4. package/dist/jsdelivr/components/cart-context.js.map +1 -0
  5. package/dist/jsdelivr/components/cart-data-array-item.js +19 -0
  6. package/dist/jsdelivr/components/cart-data-array-item.js.map +1 -0
  7. package/dist/jsdelivr/components/cart-data-array.js +58 -0
  8. package/dist/jsdelivr/components/cart-data-array.js.map +1 -0
  9. package/dist/jsdelivr/components/cart-data-conditions.js +97 -0
  10. package/dist/jsdelivr/components/cart-data-conditions.js.map +1 -0
  11. package/dist/jsdelivr/components/cart-data-injection.js +89 -0
  12. package/dist/jsdelivr/components/cart-data-injection.js.map +1 -0
  13. package/dist/jsdelivr/components/cart-data-listener-status.js +35 -0
  14. package/dist/jsdelivr/components/cart-data-listener-status.js.map +1 -0
  15. package/dist/jsdelivr/components/cart-data-listener.js +163 -0
  16. package/dist/jsdelivr/components/cart-data-listener.js.map +1 -0
  17. package/dist/jsdelivr/components/cart-data.js +29 -0
  18. package/dist/jsdelivr/components/cart-data.js.map +1 -0
  19. package/dist/jsdelivr/components/cart-loading-state.js +39 -0
  20. package/dist/jsdelivr/components/cart-loading-state.js.map +1 -0
  21. package/dist/jsdelivr/components/index.js +11 -0
  22. package/dist/jsdelivr/components/index.js.map +1 -0
  23. package/dist/jsdelivr/hooks/index.js +7 -0
  24. package/dist/jsdelivr/hooks/index.js.map +1 -0
  25. package/dist/jsdelivr/hooks/useCartValue.js +23 -0
  26. package/dist/jsdelivr/hooks/useCartValue.js.map +1 -0
  27. package/dist/{main → jsdelivr}/hooks/useFormattedValue.js +5 -5
  28. package/dist/jsdelivr/hooks/useFormattedValue.js.map +1 -0
  29. package/dist/{main → jsdelivr}/hooks/useFullPropertyPath.js +3 -3
  30. package/dist/jsdelivr/hooks/useFullPropertyPath.js.map +1 -0
  31. package/dist/jsdelivr/hooks/useHybridCart.js +23 -0
  32. package/dist/jsdelivr/hooks/useHybridCart.js.map +1 -0
  33. package/dist/jsdelivr/hooks/useListenerStatus.js +33 -0
  34. package/dist/jsdelivr/hooks/useListenerStatus.js.map +1 -0
  35. package/dist/jsdelivr/index.js +72 -0
  36. package/dist/jsdelivr/index.js.map +1 -0
  37. package/dist/jsdelivr/utils/formatValue.js +22 -0
  38. package/dist/jsdelivr/utils/formatValue.js.map +1 -0
  39. package/dist/jsdelivr/utils/getTargetElement.js +13 -0
  40. package/dist/jsdelivr/utils/getTargetElement.js.map +1 -0
  41. package/dist/jsdelivr/utils/getTemplateContent.js +11 -0
  42. package/dist/jsdelivr/utils/getTemplateContent.js.map +1 -0
  43. package/dist/jsdelivr/utils/getValueFromPath.js +14 -0
  44. package/dist/jsdelivr/utils/getValueFromPath.js.map +1 -0
  45. package/dist/jsdelivr/utils/index.js +7 -0
  46. package/dist/jsdelivr/utils/index.js.map +1 -0
  47. package/dist/jsdelivr/utils/parseNestedObject.js +32 -0
  48. package/dist/jsdelivr/utils/parseNestedObject.js.map +1 -0
  49. package/dist/main/components/cart-data-array-injection.js +3 -4
  50. package/dist/main/components/cart-data-array-injection.js.map +1 -1
  51. package/dist/main/components/cart-data-array.js +2 -3
  52. package/dist/main/components/cart-data-array.js.map +1 -1
  53. package/dist/main/components/cart-data-conditions.js +2 -3
  54. package/dist/main/components/cart-data-conditions.js.map +1 -1
  55. package/dist/main/components/cart-data-injection.js +1 -3
  56. package/dist/main/components/cart-data-injection.js.map +1 -1
  57. package/dist/main/components/cart-data-listener.js +13 -14
  58. package/dist/main/components/cart-data-listener.js.map +1 -1
  59. package/dist/main/components/cart-data.js +1 -3
  60. package/dist/main/components/cart-data.js.map +1 -1
  61. package/dist/main/hooks/index.js +18 -2
  62. package/dist/main/hooks/index.js.map +1 -1
  63. package/dist/main/index.d.ts +1150 -317
  64. package/package.json +3 -3
  65. package/dist/main/hooks/useFormattedValue.js.map +0 -1
  66. package/dist/main/hooks/useFullPropertyPath.js.map +0 -1
@@ -999,11 +999,193 @@ export declare const withListenerElementStatus: <D extends unknown>(target: stri
999
999
  () => Status,
1000
1000
  (status: Status) => Status | undefined
1001
1001
  ], dependencies: D) => void | (() => void)) => void;
1002
- export type CartPath = Path<CartData>;
1003
- export type CartPathValue<Path extends CartPath> = PathValue<CartData, Path>;
1004
- export declare const useCartValue: <P extends "attributes" | "total_discount" | "discounts" | "requires_shipping" | "token" | "note" | "discount_codes" | "original_total_price" | "total_price" | "total_weight" | "item_count" | "items" | "currency" | "items_subtotal_price" | "cart_level_discount_applications" | "attributes_array" | "private_attributes" | "private_attributes_array" | "public_attributes" | "public_attributes_array" | `attributes.${string}` | `discounts.${number}` | `discounts.${number}.title` | `discounts.${number}.amount` | `discount_codes.${number}` | `discount_codes.${number}.code` | `discount_codes.${number}.applicable` | `items.${number}` | `items.${number}.title` | `items.${number}.key` | `items.${number}.price` | `items.${number}.total_discount` | `items.${number}.discounts` | `items.${number}.requires_shipping` | `items.${number}.image` | `items.${number}.id` | `items.${number}.discounts.${number}` | `items.${number}.discounts.${number}.title` | `items.${number}.discounts.${number}.amount` | `items.${number}.url` | `items.${number}.quantity_rule` | `items.${number}.selling_plan_allocation` | `items.${number}.unit_price_measurement` | `items.${number}.variant_options` | `items.${number}.properties` | `items.${number}.quantity` | `items.${number}.variant_id` | `items.${number}.original_price` | `items.${number}.discounted_price` | `items.${number}.line_price` | `items.${number}.original_line_price` | `items.${number}.sku` | `items.${number}.grams` | `items.${number}.vendor` | `items.${number}.taxable` | `items.${number}.product_id` | `items.${number}.product_has_only_default_variant` | `items.${number}.gift_card` | `items.${number}.final_line_price` | `items.${number}.final_price` | `items.${number}.featured_image` | `items.${number}.handle` | `items.${number}.product_type` | `items.${number}.product_title` | `items.${number}.product_description` | `items.${number}.variant_title` | `items.${number}.options_with_values` | `items.${number}.line_level_discount_allocations` | `items.${number}.line_level_total_discount` | `items.${number}.has_components` | `items.${number}.unit_price` | `items.${number}.properties_array` | `items.${number}.private_properties` | `items.${number}.private_properties_array` | `items.${number}.public_properties` | `items.${number}.public_properties_array` | `items.${number}.variant_options.${number}` | `items.${number}.properties.${string}` | `items.${number}.featured_image.url` | `items.${number}.featured_image.aspect_ratio` | `items.${number}.featured_image.alt` | `items.${number}.featured_image.height` | `items.${number}.featured_image.width` | `items.${number}.options_with_values.${number}` | `items.${number}.options_with_values.${number}.value` | `items.${number}.options_with_values.${number}.name` | `items.${number}.line_level_discount_allocations.${number}` | `items.${number}.line_level_discount_allocations.${number}.amount` | `items.${number}.line_level_discount_allocations.${number}.discount_application` | `items.${number}.line_level_discount_allocations.${number}.discount_application.title` | `items.${number}.line_level_discount_allocations.${number}.discount_application.value` | `items.${number}.line_level_discount_allocations.${number}.discount_application.description` | `items.${number}.line_level_discount_allocations.${number}.discount_application.target_selection` | `items.${number}.line_level_discount_allocations.${number}.discount_application.target_type` | `items.${number}.line_level_discount_allocations.${number}.discount_application.total_allocated_amount` | `items.${number}.line_level_discount_allocations.${number}.discount_application.type` | `items.${number}.line_level_discount_allocations.${number}.discount_application.value_type` | `items.${number}.properties_array.${number}` | `items.${number}.properties_array.${number}.value` | `items.${number}.properties_array.${number}.key` | `items.${number}.private_properties.${string}` | `items.${number}.private_properties_array.${number}` | `items.${number}.private_properties_array.${number}.value` | `items.${number}.private_properties_array.${number}.key` | `items.${number}.public_properties.${string}` | `items.${number}.public_properties_array.${number}` | `items.${number}.public_properties_array.${number}.value` | `items.${number}.public_properties_array.${number}.key` | `cart_level_discount_applications.${number}` | `cart_level_discount_applications.${number}.title` | `cart_level_discount_applications.${number}.value` | `cart_level_discount_applications.${number}.description` | `cart_level_discount_applications.${number}.target_selection` | `cart_level_discount_applications.${number}.target_type` | `cart_level_discount_applications.${number}.total_allocated_amount` | `cart_level_discount_applications.${number}.type` | `cart_level_discount_applications.${number}.value_type` | `attributes_array.${number}` | `attributes_array.${number}.value` | `attributes_array.${number}.key` | `private_attributes.${string}` | `private_attributes_array.${number}` | `private_attributes_array.${number}.value` | `private_attributes_array.${number}.key` | `public_attributes.${string}` | `public_attributes_array.${number}` | `public_attributes_array.${number}.value` | `public_attributes_array.${number}.key`>(options: {
1005
- path: import("solid-js").Accessor<P>;
1006
- data: import("solid-js").Accessor<PathValue<{
1002
+ declare const hooks: {
1003
+ provide: ({ element, path, }: {
1004
+ element: WalkableNode;
1005
+ path: import("solid-js").Accessor<"attributes" | "total_discount" | "discounts" | "requires_shipping" | "token" | "note" | "discount_codes" | "original_total_price" | "total_price" | "total_weight" | "item_count" | "items" | "currency" | "items_subtotal_price" | "cart_level_discount_applications" | "attributes_array" | "private_attributes" | "private_attributes_array" | "public_attributes" | "public_attributes_array" | `attributes.${string}` | `discounts.${number}` | `discounts.${number}.title` | `discounts.${number}.amount` | `discount_codes.${number}` | `discount_codes.${number}.code` | `discount_codes.${number}.applicable` | `items.${number}` | `items.${number}.title` | `items.${number}.key` | `items.${number}.price` | `items.${number}.total_discount` | `items.${number}.discounts` | `items.${number}.requires_shipping` | `items.${number}.image` | `items.${number}.id` | `items.${number}.discounts.${number}` | `items.${number}.discounts.${number}.title` | `items.${number}.discounts.${number}.amount` | `items.${number}.url` | `items.${number}.quantity_rule` | `items.${number}.selling_plan_allocation` | `items.${number}.unit_price_measurement` | `items.${number}.variant_options` | `items.${number}.properties` | `items.${number}.quantity` | `items.${number}.variant_id` | `items.${number}.original_price` | `items.${number}.discounted_price` | `items.${number}.line_price` | `items.${number}.original_line_price` | `items.${number}.sku` | `items.${number}.grams` | `items.${number}.vendor` | `items.${number}.taxable` | `items.${number}.product_id` | `items.${number}.product_has_only_default_variant` | `items.${number}.gift_card` | `items.${number}.final_line_price` | `items.${number}.final_price` | `items.${number}.featured_image` | `items.${number}.handle` | `items.${number}.product_type` | `items.${number}.product_title` | `items.${number}.product_description` | `items.${number}.variant_title` | `items.${number}.options_with_values` | `items.${number}.line_level_discount_allocations` | `items.${number}.line_level_total_discount` | `items.${number}.has_components` | `items.${number}.unit_price` | `items.${number}.properties_array` | `items.${number}.private_properties` | `items.${number}.private_properties_array` | `items.${number}.public_properties` | `items.${number}.public_properties_array` | `items.${number}.variant_options.${number}` | `items.${number}.properties.${string}` | `items.${number}.featured_image.url` | `items.${number}.featured_image.aspect_ratio` | `items.${number}.featured_image.alt` | `items.${number}.featured_image.height` | `items.${number}.featured_image.width` | `items.${number}.options_with_values.${number}` | `items.${number}.options_with_values.${number}.value` | `items.${number}.options_with_values.${number}.name` | `items.${number}.line_level_discount_allocations.${number}` | `items.${number}.line_level_discount_allocations.${number}.amount` | `items.${number}.line_level_discount_allocations.${number}.discount_application` | `items.${number}.line_level_discount_allocations.${number}.discount_application.title` | `items.${number}.line_level_discount_allocations.${number}.discount_application.value` | `items.${number}.line_level_discount_allocations.${number}.discount_application.description` | `items.${number}.line_level_discount_allocations.${number}.discount_application.target_selection` | `items.${number}.line_level_discount_allocations.${number}.discount_application.target_type` | `items.${number}.line_level_discount_allocations.${number}.discount_application.total_allocated_amount` | `items.${number}.line_level_discount_allocations.${number}.discount_application.type` | `items.${number}.line_level_discount_allocations.${number}.discount_application.value_type` | `items.${number}.properties_array.${number}` | `items.${number}.properties_array.${number}.value` | `items.${number}.properties_array.${number}.key` | `items.${number}.private_properties.${string}` | `items.${number}.private_properties_array.${number}` | `items.${number}.private_properties_array.${number}.value` | `items.${number}.private_properties_array.${number}.key` | `items.${number}.public_properties.${string}` | `items.${number}.public_properties_array.${number}` | `items.${number}.public_properties_array.${number}.value` | `items.${number}.public_properties_array.${number}.key` | `cart_level_discount_applications.${number}` | `cart_level_discount_applications.${number}.title` | `cart_level_discount_applications.${number}.value` | `cart_level_discount_applications.${number}.description` | `cart_level_discount_applications.${number}.target_selection` | `cart_level_discount_applications.${number}.target_type` | `cart_level_discount_applications.${number}.total_allocated_amount` | `cart_level_discount_applications.${number}.type` | `cart_level_discount_applications.${number}.value_type` | `attributes_array.${number}` | `attributes_array.${number}.value` | `attributes_array.${number}.key` | `private_attributes.${string}` | `private_attributes_array.${number}` | `private_attributes_array.${number}.value` | `private_attributes_array.${number}.key` | `public_attributes.${string}` | `public_attributes_array.${number}` | `public_attributes_array.${number}.value` | `public_attributes_array.${number}.key`>;
1006
+ }) => import("solid-js").Accessor<"attributes" | "total_discount" | "discounts" | "requires_shipping" | "token" | "note" | "discount_codes" | "original_total_price" | "total_price" | "total_weight" | "item_count" | "items" | "currency" | "items_subtotal_price" | "cart_level_discount_applications" | "attributes_array" | "private_attributes" | "private_attributes_array" | "public_attributes" | "public_attributes_array" | `attributes.${string}` | `discounts.${number}` | `discounts.${number}.title` | `discounts.${number}.amount` | `discount_codes.${number}` | `discount_codes.${number}.code` | `discount_codes.${number}.applicable` | `items.${number}` | `items.${number}.title` | `items.${number}.key` | `items.${number}.price` | `items.${number}.total_discount` | `items.${number}.discounts` | `items.${number}.requires_shipping` | `items.${number}.image` | `items.${number}.id` | `items.${number}.discounts.${number}` | `items.${number}.discounts.${number}.title` | `items.${number}.discounts.${number}.amount` | `items.${number}.url` | `items.${number}.quantity_rule` | `items.${number}.selling_plan_allocation` | `items.${number}.unit_price_measurement` | `items.${number}.variant_options` | `items.${number}.properties` | `items.${number}.quantity` | `items.${number}.variant_id` | `items.${number}.original_price` | `items.${number}.discounted_price` | `items.${number}.line_price` | `items.${number}.original_line_price` | `items.${number}.sku` | `items.${number}.grams` | `items.${number}.vendor` | `items.${number}.taxable` | `items.${number}.product_id` | `items.${number}.product_has_only_default_variant` | `items.${number}.gift_card` | `items.${number}.final_line_price` | `items.${number}.final_price` | `items.${number}.featured_image` | `items.${number}.handle` | `items.${number}.product_type` | `items.${number}.product_title` | `items.${number}.product_description` | `items.${number}.variant_title` | `items.${number}.options_with_values` | `items.${number}.line_level_discount_allocations` | `items.${number}.line_level_total_discount` | `items.${number}.has_components` | `items.${number}.unit_price` | `items.${number}.properties_array` | `items.${number}.private_properties` | `items.${number}.private_properties_array` | `items.${number}.public_properties` | `items.${number}.public_properties_array` | `items.${number}.variant_options.${number}` | `items.${number}.properties.${string}` | `items.${number}.featured_image.url` | `items.${number}.featured_image.aspect_ratio` | `items.${number}.featured_image.alt` | `items.${number}.featured_image.height` | `items.${number}.featured_image.width` | `items.${number}.options_with_values.${number}` | `items.${number}.options_with_values.${number}.value` | `items.${number}.options_with_values.${number}.name` | `items.${number}.line_level_discount_allocations.${number}` | `items.${number}.line_level_discount_allocations.${number}.amount` | `items.${number}.line_level_discount_allocations.${number}.discount_application` | `items.${number}.line_level_discount_allocations.${number}.discount_application.title` | `items.${number}.line_level_discount_allocations.${number}.discount_application.value` | `items.${number}.line_level_discount_allocations.${number}.discount_application.description` | `items.${number}.line_level_discount_allocations.${number}.discount_application.target_selection` | `items.${number}.line_level_discount_allocations.${number}.discount_application.target_type` | `items.${number}.line_level_discount_allocations.${number}.discount_application.total_allocated_amount` | `items.${number}.line_level_discount_allocations.${number}.discount_application.type` | `items.${number}.line_level_discount_allocations.${number}.discount_application.value_type` | `items.${number}.properties_array.${number}` | `items.${number}.properties_array.${number}.value` | `items.${number}.properties_array.${number}.key` | `items.${number}.private_properties.${string}` | `items.${number}.private_properties_array.${number}` | `items.${number}.private_properties_array.${number}.value` | `items.${number}.private_properties_array.${number}.key` | `items.${number}.public_properties.${string}` | `items.${number}.public_properties_array.${number}` | `items.${number}.public_properties_array.${number}.value` | `items.${number}.public_properties_array.${number}.key` | `cart_level_discount_applications.${number}` | `cart_level_discount_applications.${number}.title` | `cart_level_discount_applications.${number}.value` | `cart_level_discount_applications.${number}.description` | `cart_level_discount_applications.${number}.target_selection` | `cart_level_discount_applications.${number}.target_type` | `cart_level_discount_applications.${number}.total_allocated_amount` | `cart_level_discount_applications.${number}.type` | `cart_level_discount_applications.${number}.value_type` | `attributes_array.${number}` | `attributes_array.${number}.value` | `attributes_array.${number}.key` | `private_attributes.${string}` | `private_attributes_array.${number}` | `private_attributes_array.${number}.value` | `private_attributes_array.${number}.key` | `public_attributes.${string}` | `public_attributes_array.${number}` | `public_attributes_array.${number}.value` | `public_attributes_array.${number}.key`>;
1007
+ usePath: (props: {
1008
+ element: HTMLElement & ICustomElement;
1009
+ path?: import("solid-js").Accessor<"attributes" | "total_discount" | "discounts" | "requires_shipping" | "token" | "note" | "discount_codes" | "original_total_price" | "total_price" | "total_weight" | "item_count" | "items" | "currency" | "items_subtotal_price" | "cart_level_discount_applications" | "attributes_array" | "private_attributes" | "private_attributes_array" | "public_attributes" | "public_attributes_array" | `attributes.${string}` | `discounts.${number}` | `discounts.${number}.title` | `discounts.${number}.amount` | `discount_codes.${number}` | `discount_codes.${number}.code` | `discount_codes.${number}.applicable` | `items.${number}` | `items.${number}.title` | `items.${number}.key` | `items.${number}.price` | `items.${number}.total_discount` | `items.${number}.discounts` | `items.${number}.requires_shipping` | `items.${number}.image` | `items.${number}.id` | `items.${number}.discounts.${number}` | `items.${number}.discounts.${number}.title` | `items.${number}.discounts.${number}.amount` | `items.${number}.url` | `items.${number}.quantity_rule` | `items.${number}.selling_plan_allocation` | `items.${number}.unit_price_measurement` | `items.${number}.variant_options` | `items.${number}.properties` | `items.${number}.quantity` | `items.${number}.variant_id` | `items.${number}.original_price` | `items.${number}.discounted_price` | `items.${number}.line_price` | `items.${number}.original_line_price` | `items.${number}.sku` | `items.${number}.grams` | `items.${number}.vendor` | `items.${number}.taxable` | `items.${number}.product_id` | `items.${number}.product_has_only_default_variant` | `items.${number}.gift_card` | `items.${number}.final_line_price` | `items.${number}.final_price` | `items.${number}.featured_image` | `items.${number}.handle` | `items.${number}.product_type` | `items.${number}.product_title` | `items.${number}.product_description` | `items.${number}.variant_title` | `items.${number}.options_with_values` | `items.${number}.line_level_discount_allocations` | `items.${number}.line_level_total_discount` | `items.${number}.has_components` | `items.${number}.unit_price` | `items.${number}.properties_array` | `items.${number}.private_properties` | `items.${number}.private_properties_array` | `items.${number}.public_properties` | `items.${number}.public_properties_array` | `items.${number}.variant_options.${number}` | `items.${number}.properties.${string}` | `items.${number}.featured_image.url` | `items.${number}.featured_image.aspect_ratio` | `items.${number}.featured_image.alt` | `items.${number}.featured_image.height` | `items.${number}.featured_image.width` | `items.${number}.options_with_values.${number}` | `items.${number}.options_with_values.${number}.value` | `items.${number}.options_with_values.${number}.name` | `items.${number}.line_level_discount_allocations.${number}` | `items.${number}.line_level_discount_allocations.${number}.amount` | `items.${number}.line_level_discount_allocations.${number}.discount_application` | `items.${number}.line_level_discount_allocations.${number}.discount_application.title` | `items.${number}.line_level_discount_allocations.${number}.discount_application.value` | `items.${number}.line_level_discount_allocations.${number}.discount_application.description` | `items.${number}.line_level_discount_allocations.${number}.discount_application.target_selection` | `items.${number}.line_level_discount_allocations.${number}.discount_application.target_type` | `items.${number}.line_level_discount_allocations.${number}.discount_application.total_allocated_amount` | `items.${number}.line_level_discount_allocations.${number}.discount_application.type` | `items.${number}.line_level_discount_allocations.${number}.discount_application.value_type` | `items.${number}.properties_array.${number}` | `items.${number}.properties_array.${number}.value` | `items.${number}.properties_array.${number}.key` | `items.${number}.private_properties.${string}` | `items.${number}.private_properties_array.${number}` | `items.${number}.private_properties_array.${number}.value` | `items.${number}.private_properties_array.${number}.key` | `items.${number}.public_properties.${string}` | `items.${number}.public_properties_array.${number}` | `items.${number}.public_properties_array.${number}.value` | `items.${number}.public_properties_array.${number}.key` | `cart_level_discount_applications.${number}` | `cart_level_discount_applications.${number}.title` | `cart_level_discount_applications.${number}.value` | `cart_level_discount_applications.${number}.description` | `cart_level_discount_applications.${number}.target_selection` | `cart_level_discount_applications.${number}.target_type` | `cart_level_discount_applications.${number}.total_allocated_amount` | `cart_level_discount_applications.${number}.type` | `cart_level_discount_applications.${number}.value_type` | `attributes_array.${number}` | `attributes_array.${number}.value` | `attributes_array.${number}.key` | `private_attributes.${string}` | `private_attributes_array.${number}` | `private_attributes_array.${number}.value` | `private_attributes_array.${number}.key` | `public_attributes.${string}` | `public_attributes_array.${number}` | `public_attributes_array.${number}.value` | `public_attributes_array.${number}.key`> | undefined;
1010
+ }) => import("solid-js").Accessor<"attributes" | "total_discount" | "discounts" | "requires_shipping" | "token" | "note" | "discount_codes" | "original_total_price" | "total_price" | "total_weight" | "item_count" | "items" | "currency" | "items_subtotal_price" | "cart_level_discount_applications" | "attributes_array" | "private_attributes" | "private_attributes_array" | "public_attributes" | "public_attributes_array" | `attributes.${string}` | `discounts.${number}` | `discounts.${number}.title` | `discounts.${number}.amount` | `discount_codes.${number}` | `discount_codes.${number}.code` | `discount_codes.${number}.applicable` | `items.${number}` | `items.${number}.title` | `items.${number}.key` | `items.${number}.price` | `items.${number}.total_discount` | `items.${number}.discounts` | `items.${number}.requires_shipping` | `items.${number}.image` | `items.${number}.id` | `items.${number}.discounts.${number}` | `items.${number}.discounts.${number}.title` | `items.${number}.discounts.${number}.amount` | `items.${number}.url` | `items.${number}.quantity_rule` | `items.${number}.selling_plan_allocation` | `items.${number}.unit_price_measurement` | `items.${number}.variant_options` | `items.${number}.properties` | `items.${number}.quantity` | `items.${number}.variant_id` | `items.${number}.original_price` | `items.${number}.discounted_price` | `items.${number}.line_price` | `items.${number}.original_line_price` | `items.${number}.sku` | `items.${number}.grams` | `items.${number}.vendor` | `items.${number}.taxable` | `items.${number}.product_id` | `items.${number}.product_has_only_default_variant` | `items.${number}.gift_card` | `items.${number}.final_line_price` | `items.${number}.final_price` | `items.${number}.featured_image` | `items.${number}.handle` | `items.${number}.product_type` | `items.${number}.product_title` | `items.${number}.product_description` | `items.${number}.variant_title` | `items.${number}.options_with_values` | `items.${number}.line_level_discount_allocations` | `items.${number}.line_level_total_discount` | `items.${number}.has_components` | `items.${number}.unit_price` | `items.${number}.properties_array` | `items.${number}.private_properties` | `items.${number}.private_properties_array` | `items.${number}.public_properties` | `items.${number}.public_properties_array` | `items.${number}.variant_options.${number}` | `items.${number}.properties.${string}` | `items.${number}.featured_image.url` | `items.${number}.featured_image.aspect_ratio` | `items.${number}.featured_image.alt` | `items.${number}.featured_image.height` | `items.${number}.featured_image.width` | `items.${number}.options_with_values.${number}` | `items.${number}.options_with_values.${number}.value` | `items.${number}.options_with_values.${number}.name` | `items.${number}.line_level_discount_allocations.${number}` | `items.${number}.line_level_discount_allocations.${number}.amount` | `items.${number}.line_level_discount_allocations.${number}.discount_application` | `items.${number}.line_level_discount_allocations.${number}.discount_application.title` | `items.${number}.line_level_discount_allocations.${number}.discount_application.value` | `items.${number}.line_level_discount_allocations.${number}.discount_application.description` | `items.${number}.line_level_discount_allocations.${number}.discount_application.target_selection` | `items.${number}.line_level_discount_allocations.${number}.discount_application.target_type` | `items.${number}.line_level_discount_allocations.${number}.discount_application.total_allocated_amount` | `items.${number}.line_level_discount_allocations.${number}.discount_application.type` | `items.${number}.line_level_discount_allocations.${number}.discount_application.value_type` | `items.${number}.properties_array.${number}` | `items.${number}.properties_array.${number}.value` | `items.${number}.properties_array.${number}.key` | `items.${number}.private_properties.${string}` | `items.${number}.private_properties_array.${number}` | `items.${number}.private_properties_array.${number}.value` | `items.${number}.private_properties_array.${number}.key` | `items.${number}.public_properties.${string}` | `items.${number}.public_properties_array.${number}` | `items.${number}.public_properties_array.${number}.value` | `items.${number}.public_properties_array.${number}.key` | `cart_level_discount_applications.${number}` | `cart_level_discount_applications.${number}.title` | `cart_level_discount_applications.${number}.value` | `cart_level_discount_applications.${number}.description` | `cart_level_discount_applications.${number}.target_selection` | `cart_level_discount_applications.${number}.target_type` | `cart_level_discount_applications.${number}.total_allocated_amount` | `cart_level_discount_applications.${number}.type` | `cart_level_discount_applications.${number}.value_type` | `attributes_array.${number}` | `attributes_array.${number}.value` | `attributes_array.${number}.key` | `private_attributes.${string}` | `private_attributes_array.${number}` | `private_attributes_array.${number}.value` | `private_attributes_array.${number}.key` | `public_attributes.${string}` | `public_attributes_array.${number}` | `public_attributes_array.${number}.value` | `public_attributes_array.${number}.key`>;
1011
+ usePathValue: <P extends "attributes" | "total_discount" | "discounts" | "requires_shipping" | "token" | "note" | "discount_codes" | "original_total_price" | "total_price" | "total_weight" | "item_count" | "items" | "currency" | "items_subtotal_price" | "cart_level_discount_applications" | "attributes_array" | "private_attributes" | "private_attributes_array" | "public_attributes" | "public_attributes_array" | `attributes.${string}` | `discounts.${number}` | `discounts.${number}.title` | `discounts.${number}.amount` | `discount_codes.${number}` | `discount_codes.${number}.code` | `discount_codes.${number}.applicable` | `items.${number}` | `items.${number}.title` | `items.${number}.key` | `items.${number}.price` | `items.${number}.total_discount` | `items.${number}.discounts` | `items.${number}.requires_shipping` | `items.${number}.image` | `items.${number}.id` | `items.${number}.discounts.${number}` | `items.${number}.discounts.${number}.title` | `items.${number}.discounts.${number}.amount` | `items.${number}.url` | `items.${number}.quantity_rule` | `items.${number}.selling_plan_allocation` | `items.${number}.unit_price_measurement` | `items.${number}.variant_options` | `items.${number}.properties` | `items.${number}.quantity` | `items.${number}.variant_id` | `items.${number}.original_price` | `items.${number}.discounted_price` | `items.${number}.line_price` | `items.${number}.original_line_price` | `items.${number}.sku` | `items.${number}.grams` | `items.${number}.vendor` | `items.${number}.taxable` | `items.${number}.product_id` | `items.${number}.product_has_only_default_variant` | `items.${number}.gift_card` | `items.${number}.final_line_price` | `items.${number}.final_price` | `items.${number}.featured_image` | `items.${number}.handle` | `items.${number}.product_type` | `items.${number}.product_title` | `items.${number}.product_description` | `items.${number}.variant_title` | `items.${number}.options_with_values` | `items.${number}.line_level_discount_allocations` | `items.${number}.line_level_total_discount` | `items.${number}.has_components` | `items.${number}.unit_price` | `items.${number}.properties_array` | `items.${number}.private_properties` | `items.${number}.private_properties_array` | `items.${number}.public_properties` | `items.${number}.public_properties_array` | `items.${number}.variant_options.${number}` | `items.${number}.properties.${string}` | `items.${number}.featured_image.url` | `items.${number}.featured_image.aspect_ratio` | `items.${number}.featured_image.alt` | `items.${number}.featured_image.height` | `items.${number}.featured_image.width` | `items.${number}.options_with_values.${number}` | `items.${number}.options_with_values.${number}.value` | `items.${number}.options_with_values.${number}.name` | `items.${number}.line_level_discount_allocations.${number}` | `items.${number}.line_level_discount_allocations.${number}.amount` | `items.${number}.line_level_discount_allocations.${number}.discount_application` | `items.${number}.line_level_discount_allocations.${number}.discount_application.title` | `items.${number}.line_level_discount_allocations.${number}.discount_application.value` | `items.${number}.line_level_discount_allocations.${number}.discount_application.description` | `items.${number}.line_level_discount_allocations.${number}.discount_application.target_selection` | `items.${number}.line_level_discount_allocations.${number}.discount_application.target_type` | `items.${number}.line_level_discount_allocations.${number}.discount_application.total_allocated_amount` | `items.${number}.line_level_discount_allocations.${number}.discount_application.type` | `items.${number}.line_level_discount_allocations.${number}.discount_application.value_type` | `items.${number}.properties_array.${number}` | `items.${number}.properties_array.${number}.value` | `items.${number}.properties_array.${number}.key` | `items.${number}.private_properties.${string}` | `items.${number}.private_properties_array.${number}` | `items.${number}.private_properties_array.${number}.value` | `items.${number}.private_properties_array.${number}.key` | `items.${number}.public_properties.${string}` | `items.${number}.public_properties_array.${number}` | `items.${number}.public_properties_array.${number}.value` | `items.${number}.public_properties_array.${number}.key` | `cart_level_discount_applications.${number}` | `cart_level_discount_applications.${number}.title` | `cart_level_discount_applications.${number}.value` | `cart_level_discount_applications.${number}.description` | `cart_level_discount_applications.${number}.target_selection` | `cart_level_discount_applications.${number}.target_type` | `cart_level_discount_applications.${number}.total_allocated_amount` | `cart_level_discount_applications.${number}.type` | `cart_level_discount_applications.${number}.value_type` | `attributes_array.${number}` | `attributes_array.${number}.value` | `attributes_array.${number}.key` | `private_attributes.${string}` | `private_attributes_array.${number}` | `private_attributes_array.${number}.value` | `private_attributes_array.${number}.key` | `public_attributes.${string}` | `public_attributes_array.${number}` | `public_attributes_array.${number}.value` | `public_attributes_array.${number}.key`>(options: {
1012
+ path: import("solid-js").Accessor<P>;
1013
+ data: import("solid-js").Accessor<PathValue<{
1014
+ readonly attributes: {
1015
+ readonly [x: string]: string | number | boolean | null;
1016
+ };
1017
+ readonly total_discount: number;
1018
+ readonly discounts: readonly {
1019
+ readonly title: string;
1020
+ readonly amount: number;
1021
+ }[];
1022
+ readonly requires_shipping: boolean;
1023
+ readonly token: string;
1024
+ readonly note: string | null;
1025
+ readonly discount_codes: readonly {
1026
+ readonly code: string;
1027
+ readonly applicable: boolean;
1028
+ }[];
1029
+ readonly original_total_price: number;
1030
+ readonly total_price: number;
1031
+ readonly total_weight: number;
1032
+ readonly item_count: number;
1033
+ readonly items: readonly ({
1034
+ readonly title: string;
1035
+ readonly key: string;
1036
+ readonly url: string;
1037
+ readonly image: string | null;
1038
+ readonly quantity_rule?: {
1039
+ readonly min: number;
1040
+ readonly max: number | null;
1041
+ readonly increment: number;
1042
+ } | undefined;
1043
+ readonly price: number;
1044
+ readonly id: string | number;
1045
+ readonly selling_plan_allocation: {
1046
+ readonly price: number;
1047
+ readonly price_adjustments: readonly {
1048
+ readonly position: number;
1049
+ readonly price: number;
1050
+ }[];
1051
+ readonly selling_plan: {
1052
+ readonly description: string | null;
1053
+ readonly name: string;
1054
+ readonly id: string | number;
1055
+ readonly options: readonly {
1056
+ readonly value: string;
1057
+ readonly name: string;
1058
+ readonly position: number;
1059
+ }[];
1060
+ readonly recurring_deliveries: boolean;
1061
+ readonly fixed_selling_plan: boolean;
1062
+ readonly price_adjustments: readonly {
1063
+ readonly value: string | number;
1064
+ readonly value_type: "fixed_amount" | "percentage" | "price";
1065
+ readonly position: number;
1066
+ readonly order_count: number | null;
1067
+ }[];
1068
+ };
1069
+ readonly compare_at_price: number;
1070
+ readonly per_delivery_price: number;
1071
+ } | null;
1072
+ readonly unit_price_measurement?: {
1073
+ readonly measured_type: "volume" | "weight" | "dimension";
1074
+ readonly quantity_unit: string;
1075
+ readonly quantity_value: number;
1076
+ readonly reference_unit: string;
1077
+ readonly reference_value: number;
1078
+ } | undefined;
1079
+ readonly variant_options: readonly string[];
1080
+ readonly properties: {
1081
+ readonly [x: string]: string | number | boolean | null;
1082
+ };
1083
+ readonly quantity: number;
1084
+ readonly variant_id: string | number;
1085
+ readonly original_price: number;
1086
+ readonly discounted_price: number;
1087
+ readonly line_price: number;
1088
+ readonly original_line_price: number;
1089
+ readonly total_discount: number;
1090
+ readonly discounts: readonly {
1091
+ readonly title: string;
1092
+ readonly amount: number;
1093
+ }[];
1094
+ readonly sku: string | null;
1095
+ readonly grams: number;
1096
+ readonly vendor: string;
1097
+ readonly taxable: boolean;
1098
+ readonly product_id: string | number;
1099
+ readonly product_has_only_default_variant: boolean;
1100
+ readonly gift_card: boolean;
1101
+ readonly final_line_price: number;
1102
+ readonly final_price: number;
1103
+ readonly featured_image: {
1104
+ readonly aspect_ratio: number | null;
1105
+ readonly alt: string | null;
1106
+ readonly height: number | null;
1107
+ readonly url: string | null;
1108
+ readonly width: number | null;
1109
+ };
1110
+ readonly handle: string;
1111
+ readonly requires_shipping: boolean;
1112
+ readonly product_type: string | null;
1113
+ readonly product_title: string;
1114
+ readonly product_description: string | null;
1115
+ readonly variant_title: string | null;
1116
+ readonly options_with_values: readonly {
1117
+ readonly value: string;
1118
+ readonly name: string;
1119
+ }[];
1120
+ readonly line_level_discount_allocations: readonly {
1121
+ readonly discount_application: {
1122
+ readonly title: string;
1123
+ readonly description: string | null;
1124
+ readonly value: number;
1125
+ readonly target_selection: "all" | "entitled" | "explicit";
1126
+ readonly target_type: "line_item" | "shipping_line";
1127
+ readonly total_allocated_amount: number;
1128
+ readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
1129
+ readonly value_type: "fixed_amount" | "percentage";
1130
+ };
1131
+ readonly amount: number;
1132
+ }[];
1133
+ readonly line_level_total_discount: number;
1134
+ readonly has_components: boolean;
1135
+ readonly unit_price?: number | undefined;
1136
+ } & {
1137
+ readonly properties_array: readonly {
1138
+ readonly key: string;
1139
+ readonly value: string | number | boolean | null;
1140
+ }[];
1141
+ readonly private_properties: {
1142
+ readonly [x: string]: string | number | boolean | null;
1143
+ };
1144
+ readonly private_properties_array: readonly {
1145
+ readonly key: string;
1146
+ readonly value: string | number | boolean | null;
1147
+ }[];
1148
+ readonly public_properties: {
1149
+ readonly [x: string]: string | number | boolean | null;
1150
+ };
1151
+ readonly public_properties_array: readonly {
1152
+ readonly key: string;
1153
+ readonly value: string | number | boolean | null;
1154
+ }[];
1155
+ })[];
1156
+ readonly currency: string;
1157
+ readonly items_subtotal_price: number;
1158
+ readonly cart_level_discount_applications: readonly {
1159
+ readonly title: string;
1160
+ readonly description: string | null;
1161
+ readonly value: number;
1162
+ readonly target_selection: "all" | "entitled" | "explicit";
1163
+ readonly target_type: "line_item" | "shipping_line";
1164
+ readonly total_allocated_amount: number;
1165
+ readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
1166
+ readonly value_type: "fixed_amount" | "percentage";
1167
+ }[];
1168
+ } & {
1169
+ readonly attributes_array: readonly {
1170
+ readonly key: string;
1171
+ readonly value: string | number | boolean | null;
1172
+ }[];
1173
+ readonly private_attributes: {
1174
+ readonly [x: string]: string | number | boolean | null;
1175
+ };
1176
+ readonly private_attributes_array: readonly {
1177
+ readonly key: string;
1178
+ readonly value: string | number | boolean | null;
1179
+ }[];
1180
+ readonly public_attributes: {
1181
+ readonly [x: string]: string | number | boolean | null;
1182
+ };
1183
+ readonly public_attributes_array: readonly {
1184
+ readonly key: string;
1185
+ readonly value: string | number | boolean | null;
1186
+ }[];
1187
+ }, P>>;
1188
+ }) => import("solid-js").Accessor<PathValue<{
1007
1189
  readonly attributes: {
1008
1190
  readonly [x: string]: string | number | boolean | null;
1009
1191
  };
@@ -1178,190 +1360,185 @@ export declare const useCartValue: <P extends "attributes" | "total_discount" |
1178
1360
  readonly value: string | number | boolean | null;
1179
1361
  }[];
1180
1362
  }, P>>;
1181
- }) => import("solid-js").Accessor<PathValue<{
1182
- readonly attributes: {
1183
- readonly [x: string]: string | number | boolean | null;
1184
- };
1185
- readonly total_discount: number;
1186
- readonly discounts: readonly {
1187
- readonly title: string;
1188
- readonly amount: number;
1189
- }[];
1190
- readonly requires_shipping: boolean;
1191
- readonly token: string;
1192
- readonly note: string | null;
1193
- readonly discount_codes: readonly {
1194
- readonly code: string;
1195
- readonly applicable: boolean;
1196
- }[];
1197
- readonly original_total_price: number;
1198
- readonly total_price: number;
1199
- readonly total_weight: number;
1200
- readonly item_count: number;
1201
- readonly items: readonly ({
1202
- readonly title: string;
1203
- readonly key: string;
1204
- readonly url: string;
1205
- readonly image: string | null;
1206
- readonly quantity_rule?: {
1207
- readonly min: number;
1208
- readonly max: number | null;
1209
- readonly increment: number;
1210
- } | undefined;
1211
- readonly price: number;
1212
- readonly id: string | number;
1213
- readonly selling_plan_allocation: {
1214
- readonly price: number;
1215
- readonly price_adjustments: readonly {
1216
- readonly position: number;
1217
- readonly price: number;
1218
- }[];
1219
- readonly selling_plan: {
1220
- readonly description: string | null;
1221
- readonly name: string;
1222
- readonly id: string | number;
1223
- readonly options: readonly {
1224
- readonly value: string;
1225
- readonly name: string;
1226
- readonly position: number;
1227
- }[];
1228
- readonly recurring_deliveries: boolean;
1229
- readonly fixed_selling_plan: boolean;
1230
- readonly price_adjustments: readonly {
1231
- readonly value: string | number;
1232
- readonly value_type: "fixed_amount" | "percentage" | "price";
1233
- readonly position: number;
1234
- readonly order_count: number | null;
1235
- }[];
1363
+ useFormattedValue: <P extends "attributes" | "total_discount" | "discounts" | "requires_shipping" | "token" | "note" | "discount_codes" | "original_total_price" | "total_price" | "total_weight" | "item_count" | "items" | "currency" | "items_subtotal_price" | "cart_level_discount_applications" | "attributes_array" | "private_attributes" | "private_attributes_array" | "public_attributes" | "public_attributes_array" | `attributes.${string}` | `discounts.${number}` | `discounts.${number}.title` | `discounts.${number}.amount` | `discount_codes.${number}` | `discount_codes.${number}.code` | `discount_codes.${number}.applicable` | `items.${number}` | `items.${number}.title` | `items.${number}.key` | `items.${number}.price` | `items.${number}.total_discount` | `items.${number}.discounts` | `items.${number}.requires_shipping` | `items.${number}.image` | `items.${number}.id` | `items.${number}.discounts.${number}` | `items.${number}.discounts.${number}.title` | `items.${number}.discounts.${number}.amount` | `items.${number}.url` | `items.${number}.quantity_rule` | `items.${number}.selling_plan_allocation` | `items.${number}.unit_price_measurement` | `items.${number}.variant_options` | `items.${number}.properties` | `items.${number}.quantity` | `items.${number}.variant_id` | `items.${number}.original_price` | `items.${number}.discounted_price` | `items.${number}.line_price` | `items.${number}.original_line_price` | `items.${number}.sku` | `items.${number}.grams` | `items.${number}.vendor` | `items.${number}.taxable` | `items.${number}.product_id` | `items.${number}.product_has_only_default_variant` | `items.${number}.gift_card` | `items.${number}.final_line_price` | `items.${number}.final_price` | `items.${number}.featured_image` | `items.${number}.handle` | `items.${number}.product_type` | `items.${number}.product_title` | `items.${number}.product_description` | `items.${number}.variant_title` | `items.${number}.options_with_values` | `items.${number}.line_level_discount_allocations` | `items.${number}.line_level_total_discount` | `items.${number}.has_components` | `items.${number}.unit_price` | `items.${number}.properties_array` | `items.${number}.private_properties` | `items.${number}.private_properties_array` | `items.${number}.public_properties` | `items.${number}.public_properties_array` | `items.${number}.variant_options.${number}` | `items.${number}.properties.${string}` | `items.${number}.featured_image.url` | `items.${number}.featured_image.aspect_ratio` | `items.${number}.featured_image.alt` | `items.${number}.featured_image.height` | `items.${number}.featured_image.width` | `items.${number}.options_with_values.${number}` | `items.${number}.options_with_values.${number}.value` | `items.${number}.options_with_values.${number}.name` | `items.${number}.line_level_discount_allocations.${number}` | `items.${number}.line_level_discount_allocations.${number}.amount` | `items.${number}.line_level_discount_allocations.${number}.discount_application` | `items.${number}.line_level_discount_allocations.${number}.discount_application.title` | `items.${number}.line_level_discount_allocations.${number}.discount_application.value` | `items.${number}.line_level_discount_allocations.${number}.discount_application.description` | `items.${number}.line_level_discount_allocations.${number}.discount_application.target_selection` | `items.${number}.line_level_discount_allocations.${number}.discount_application.target_type` | `items.${number}.line_level_discount_allocations.${number}.discount_application.total_allocated_amount` | `items.${number}.line_level_discount_allocations.${number}.discount_application.type` | `items.${number}.line_level_discount_allocations.${number}.discount_application.value_type` | `items.${number}.properties_array.${number}` | `items.${number}.properties_array.${number}.value` | `items.${number}.properties_array.${number}.key` | `items.${number}.private_properties.${string}` | `items.${number}.private_properties_array.${number}` | `items.${number}.private_properties_array.${number}.value` | `items.${number}.private_properties_array.${number}.key` | `items.${number}.public_properties.${string}` | `items.${number}.public_properties_array.${number}` | `items.${number}.public_properties_array.${number}.value` | `items.${number}.public_properties_array.${number}.key` | `cart_level_discount_applications.${number}` | `cart_level_discount_applications.${number}.title` | `cart_level_discount_applications.${number}.value` | `cart_level_discount_applications.${number}.description` | `cart_level_discount_applications.${number}.target_selection` | `cart_level_discount_applications.${number}.target_type` | `cart_level_discount_applications.${number}.total_allocated_amount` | `cart_level_discount_applications.${number}.type` | `cart_level_discount_applications.${number}.value_type` | `attributes_array.${number}` | `attributes_array.${number}.value` | `attributes_array.${number}.key` | `private_attributes.${string}` | `private_attributes_array.${number}` | `private_attributes_array.${number}.value` | `private_attributes_array.${number}.key` | `public_attributes.${string}` | `public_attributes_array.${number}` | `public_attributes_array.${number}.value` | `public_attributes_array.${number}.key`>(options: {
1364
+ path: import("solid-js").Accessor<P>;
1365
+ format?: Format;
1366
+ data: import("solid-js").Accessor<PathValue<{
1367
+ readonly attributes: {
1368
+ readonly [x: string]: string | number | boolean | null;
1236
1369
  };
1237
- readonly compare_at_price: number;
1238
- readonly per_delivery_price: number;
1239
- } | null;
1240
- readonly unit_price_measurement?: {
1241
- readonly measured_type: "volume" | "weight" | "dimension";
1242
- readonly quantity_unit: string;
1243
- readonly quantity_value: number;
1244
- readonly reference_unit: string;
1245
- readonly reference_value: number;
1246
- } | undefined;
1247
- readonly variant_options: readonly string[];
1248
- readonly properties: {
1249
- readonly [x: string]: string | number | boolean | null;
1250
- };
1251
- readonly quantity: number;
1252
- readonly variant_id: string | number;
1253
- readonly original_price: number;
1254
- readonly discounted_price: number;
1255
- readonly line_price: number;
1256
- readonly original_line_price: number;
1257
- readonly total_discount: number;
1258
- readonly discounts: readonly {
1259
- readonly title: string;
1260
- readonly amount: number;
1261
- }[];
1262
- readonly sku: string | null;
1263
- readonly grams: number;
1264
- readonly vendor: string;
1265
- readonly taxable: boolean;
1266
- readonly product_id: string | number;
1267
- readonly product_has_only_default_variant: boolean;
1268
- readonly gift_card: boolean;
1269
- readonly final_line_price: number;
1270
- readonly final_price: number;
1271
- readonly featured_image: {
1272
- readonly aspect_ratio: number | null;
1273
- readonly alt: string | null;
1274
- readonly height: number | null;
1275
- readonly url: string | null;
1276
- readonly width: number | null;
1277
- };
1278
- readonly handle: string;
1279
- readonly requires_shipping: boolean;
1280
- readonly product_type: string | null;
1281
- readonly product_title: string;
1282
- readonly product_description: string | null;
1283
- readonly variant_title: string | null;
1284
- readonly options_with_values: readonly {
1285
- readonly value: string;
1286
- readonly name: string;
1287
- }[];
1288
- readonly line_level_discount_allocations: readonly {
1289
- readonly discount_application: {
1370
+ readonly total_discount: number;
1371
+ readonly discounts: readonly {
1290
1372
  readonly title: string;
1291
- readonly description: string | null;
1292
- readonly value: number;
1293
- readonly target_selection: "all" | "entitled" | "explicit";
1294
- readonly target_type: "line_item" | "shipping_line";
1295
- readonly total_allocated_amount: number;
1296
- readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
1297
- readonly value_type: "fixed_amount" | "percentage";
1298
- };
1299
- readonly amount: number;
1300
- }[];
1301
- readonly line_level_total_discount: number;
1302
- readonly has_components: boolean;
1303
- readonly unit_price?: number | undefined;
1304
- } & {
1305
- readonly properties_array: readonly {
1306
- readonly key: string;
1307
- readonly value: string | number | boolean | null;
1308
- }[];
1309
- readonly private_properties: {
1310
- readonly [x: string]: string | number | boolean | null;
1311
- };
1312
- readonly private_properties_array: readonly {
1313
- readonly key: string;
1314
- readonly value: string | number | boolean | null;
1315
- }[];
1316
- readonly public_properties: {
1317
- readonly [x: string]: string | number | boolean | null;
1318
- };
1319
- readonly public_properties_array: readonly {
1320
- readonly key: string;
1321
- readonly value: string | number | boolean | null;
1322
- }[];
1323
- })[];
1324
- readonly currency: string;
1325
- readonly items_subtotal_price: number;
1326
- readonly cart_level_discount_applications: readonly {
1327
- readonly title: string;
1328
- readonly description: string | null;
1329
- readonly value: number;
1330
- readonly target_selection: "all" | "entitled" | "explicit";
1331
- readonly target_type: "line_item" | "shipping_line";
1332
- readonly total_allocated_amount: number;
1333
- readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
1334
- readonly value_type: "fixed_amount" | "percentage";
1335
- }[];
1336
- } & {
1337
- readonly attributes_array: readonly {
1338
- readonly key: string;
1339
- readonly value: string | number | boolean | null;
1340
- }[];
1341
- readonly private_attributes: {
1342
- readonly [x: string]: string | number | boolean | null;
1343
- };
1344
- readonly private_attributes_array: readonly {
1345
- readonly key: string;
1346
- readonly value: string | number | boolean | null;
1347
- }[];
1348
- readonly public_attributes: {
1349
- readonly [x: string]: string | number | boolean | null;
1350
- };
1351
- readonly public_attributes_array: readonly {
1352
- readonly key: string;
1353
- readonly value: string | number | boolean | null;
1354
- }[];
1355
- }, P>>;
1356
- export declare const useCartPath: (props: {
1357
- element: HTMLElement & import("component-register").ICustomElement;
1358
- path?: import("solid-js").Accessor<"attributes" | "total_discount" | "discounts" | "requires_shipping" | "token" | "note" | "discount_codes" | "original_total_price" | "total_price" | "total_weight" | "item_count" | "items" | "currency" | "items_subtotal_price" | "cart_level_discount_applications" | "attributes_array" | "private_attributes" | "private_attributes_array" | "public_attributes" | "public_attributes_array" | `attributes.${string}` | `discounts.${number}` | `discounts.${number}.title` | `discounts.${number}.amount` | `discount_codes.${number}` | `discount_codes.${number}.code` | `discount_codes.${number}.applicable` | `items.${number}` | `items.${number}.title` | `items.${number}.key` | `items.${number}.price` | `items.${number}.total_discount` | `items.${number}.discounts` | `items.${number}.requires_shipping` | `items.${number}.image` | `items.${number}.id` | `items.${number}.discounts.${number}` | `items.${number}.discounts.${number}.title` | `items.${number}.discounts.${number}.amount` | `items.${number}.url` | `items.${number}.quantity_rule` | `items.${number}.selling_plan_allocation` | `items.${number}.unit_price_measurement` | `items.${number}.variant_options` | `items.${number}.properties` | `items.${number}.quantity` | `items.${number}.variant_id` | `items.${number}.original_price` | `items.${number}.discounted_price` | `items.${number}.line_price` | `items.${number}.original_line_price` | `items.${number}.sku` | `items.${number}.grams` | `items.${number}.vendor` | `items.${number}.taxable` | `items.${number}.product_id` | `items.${number}.product_has_only_default_variant` | `items.${number}.gift_card` | `items.${number}.final_line_price` | `items.${number}.final_price` | `items.${number}.featured_image` | `items.${number}.handle` | `items.${number}.product_type` | `items.${number}.product_title` | `items.${number}.product_description` | `items.${number}.variant_title` | `items.${number}.options_with_values` | `items.${number}.line_level_discount_allocations` | `items.${number}.line_level_total_discount` | `items.${number}.has_components` | `items.${number}.unit_price` | `items.${number}.properties_array` | `items.${number}.private_properties` | `items.${number}.private_properties_array` | `items.${number}.public_properties` | `items.${number}.public_properties_array` | `items.${number}.variant_options.${number}` | `items.${number}.properties.${string}` | `items.${number}.featured_image.url` | `items.${number}.featured_image.aspect_ratio` | `items.${number}.featured_image.alt` | `items.${number}.featured_image.height` | `items.${number}.featured_image.width` | `items.${number}.options_with_values.${number}` | `items.${number}.options_with_values.${number}.value` | `items.${number}.options_with_values.${number}.name` | `items.${number}.line_level_discount_allocations.${number}` | `items.${number}.line_level_discount_allocations.${number}.amount` | `items.${number}.line_level_discount_allocations.${number}.discount_application` | `items.${number}.line_level_discount_allocations.${number}.discount_application.title` | `items.${number}.line_level_discount_allocations.${number}.discount_application.value` | `items.${number}.line_level_discount_allocations.${number}.discount_application.description` | `items.${number}.line_level_discount_allocations.${number}.discount_application.target_selection` | `items.${number}.line_level_discount_allocations.${number}.discount_application.target_type` | `items.${number}.line_level_discount_allocations.${number}.discount_application.total_allocated_amount` | `items.${number}.line_level_discount_allocations.${number}.discount_application.type` | `items.${number}.line_level_discount_allocations.${number}.discount_application.value_type` | `items.${number}.properties_array.${number}` | `items.${number}.properties_array.${number}.value` | `items.${number}.properties_array.${number}.key` | `items.${number}.private_properties.${string}` | `items.${number}.private_properties_array.${number}` | `items.${number}.private_properties_array.${number}.value` | `items.${number}.private_properties_array.${number}.key` | `items.${number}.public_properties.${string}` | `items.${number}.public_properties_array.${number}` | `items.${number}.public_properties_array.${number}.value` | `items.${number}.public_properties_array.${number}.key` | `cart_level_discount_applications.${number}` | `cart_level_discount_applications.${number}.title` | `cart_level_discount_applications.${number}.value` | `cart_level_discount_applications.${number}.description` | `cart_level_discount_applications.${number}.target_selection` | `cart_level_discount_applications.${number}.target_type` | `cart_level_discount_applications.${number}.total_allocated_amount` | `cart_level_discount_applications.${number}.type` | `cart_level_discount_applications.${number}.value_type` | `attributes_array.${number}` | `attributes_array.${number}.value` | `attributes_array.${number}.key` | `private_attributes.${string}` | `private_attributes_array.${number}` | `private_attributes_array.${number}.value` | `private_attributes_array.${number}.key` | `public_attributes.${string}` | `public_attributes_array.${number}` | `public_attributes_array.${number}.value` | `public_attributes_array.${number}.key`> | undefined;
1359
- }) => import("solid-js").Accessor<"attributes" | "total_discount" | "discounts" | "requires_shipping" | "token" | "note" | "discount_codes" | "original_total_price" | "total_price" | "total_weight" | "item_count" | "items" | "currency" | "items_subtotal_price" | "cart_level_discount_applications" | "attributes_array" | "private_attributes" | "private_attributes_array" | "public_attributes" | "public_attributes_array" | `attributes.${string}` | `discounts.${number}` | `discounts.${number}.title` | `discounts.${number}.amount` | `discount_codes.${number}` | `discount_codes.${number}.code` | `discount_codes.${number}.applicable` | `items.${number}` | `items.${number}.title` | `items.${number}.key` | `items.${number}.price` | `items.${number}.total_discount` | `items.${number}.discounts` | `items.${number}.requires_shipping` | `items.${number}.image` | `items.${number}.id` | `items.${number}.discounts.${number}` | `items.${number}.discounts.${number}.title` | `items.${number}.discounts.${number}.amount` | `items.${number}.url` | `items.${number}.quantity_rule` | `items.${number}.selling_plan_allocation` | `items.${number}.unit_price_measurement` | `items.${number}.variant_options` | `items.${number}.properties` | `items.${number}.quantity` | `items.${number}.variant_id` | `items.${number}.original_price` | `items.${number}.discounted_price` | `items.${number}.line_price` | `items.${number}.original_line_price` | `items.${number}.sku` | `items.${number}.grams` | `items.${number}.vendor` | `items.${number}.taxable` | `items.${number}.product_id` | `items.${number}.product_has_only_default_variant` | `items.${number}.gift_card` | `items.${number}.final_line_price` | `items.${number}.final_price` | `items.${number}.featured_image` | `items.${number}.handle` | `items.${number}.product_type` | `items.${number}.product_title` | `items.${number}.product_description` | `items.${number}.variant_title` | `items.${number}.options_with_values` | `items.${number}.line_level_discount_allocations` | `items.${number}.line_level_total_discount` | `items.${number}.has_components` | `items.${number}.unit_price` | `items.${number}.properties_array` | `items.${number}.private_properties` | `items.${number}.private_properties_array` | `items.${number}.public_properties` | `items.${number}.public_properties_array` | `items.${number}.variant_options.${number}` | `items.${number}.properties.${string}` | `items.${number}.featured_image.url` | `items.${number}.featured_image.aspect_ratio` | `items.${number}.featured_image.alt` | `items.${number}.featured_image.height` | `items.${number}.featured_image.width` | `items.${number}.options_with_values.${number}` | `items.${number}.options_with_values.${number}.value` | `items.${number}.options_with_values.${number}.name` | `items.${number}.line_level_discount_allocations.${number}` | `items.${number}.line_level_discount_allocations.${number}.amount` | `items.${number}.line_level_discount_allocations.${number}.discount_application` | `items.${number}.line_level_discount_allocations.${number}.discount_application.title` | `items.${number}.line_level_discount_allocations.${number}.discount_application.value` | `items.${number}.line_level_discount_allocations.${number}.discount_application.description` | `items.${number}.line_level_discount_allocations.${number}.discount_application.target_selection` | `items.${number}.line_level_discount_allocations.${number}.discount_application.target_type` | `items.${number}.line_level_discount_allocations.${number}.discount_application.total_allocated_amount` | `items.${number}.line_level_discount_allocations.${number}.discount_application.type` | `items.${number}.line_level_discount_allocations.${number}.discount_application.value_type` | `items.${number}.properties_array.${number}` | `items.${number}.properties_array.${number}.value` | `items.${number}.properties_array.${number}.key` | `items.${number}.private_properties.${string}` | `items.${number}.private_properties_array.${number}` | `items.${number}.private_properties_array.${number}.value` | `items.${number}.private_properties_array.${number}.key` | `items.${number}.public_properties.${string}` | `items.${number}.public_properties_array.${number}` | `items.${number}.public_properties_array.${number}.value` | `items.${number}.public_properties_array.${number}.key` | `cart_level_discount_applications.${number}` | `cart_level_discount_applications.${number}.title` | `cart_level_discount_applications.${number}.value` | `cart_level_discount_applications.${number}.description` | `cart_level_discount_applications.${number}.target_selection` | `cart_level_discount_applications.${number}.target_type` | `cart_level_discount_applications.${number}.total_allocated_amount` | `cart_level_discount_applications.${number}.type` | `cart_level_discount_applications.${number}.value_type` | `attributes_array.${number}` | `attributes_array.${number}.value` | `attributes_array.${number}.key` | `private_attributes.${string}` | `private_attributes_array.${number}` | `private_attributes_array.${number}.value` | `private_attributes_array.${number}.key` | `public_attributes.${string}` | `public_attributes_array.${number}` | `public_attributes_array.${number}.value` | `public_attributes_array.${number}.key`>;
1360
- export declare const useCartFormattedValue: <P extends "attributes" | "total_discount" | "discounts" | "requires_shipping" | "token" | "note" | "discount_codes" | "original_total_price" | "total_price" | "total_weight" | "item_count" | "items" | "currency" | "items_subtotal_price" | "cart_level_discount_applications" | "attributes_array" | "private_attributes" | "private_attributes_array" | "public_attributes" | "public_attributes_array" | `attributes.${string}` | `discounts.${number}` | `discounts.${number}.title` | `discounts.${number}.amount` | `discount_codes.${number}` | `discount_codes.${number}.code` | `discount_codes.${number}.applicable` | `items.${number}` | `items.${number}.title` | `items.${number}.key` | `items.${number}.price` | `items.${number}.total_discount` | `items.${number}.discounts` | `items.${number}.requires_shipping` | `items.${number}.image` | `items.${number}.id` | `items.${number}.discounts.${number}` | `items.${number}.discounts.${number}.title` | `items.${number}.discounts.${number}.amount` | `items.${number}.url` | `items.${number}.quantity_rule` | `items.${number}.selling_plan_allocation` | `items.${number}.unit_price_measurement` | `items.${number}.variant_options` | `items.${number}.properties` | `items.${number}.quantity` | `items.${number}.variant_id` | `items.${number}.original_price` | `items.${number}.discounted_price` | `items.${number}.line_price` | `items.${number}.original_line_price` | `items.${number}.sku` | `items.${number}.grams` | `items.${number}.vendor` | `items.${number}.taxable` | `items.${number}.product_id` | `items.${number}.product_has_only_default_variant` | `items.${number}.gift_card` | `items.${number}.final_line_price` | `items.${number}.final_price` | `items.${number}.featured_image` | `items.${number}.handle` | `items.${number}.product_type` | `items.${number}.product_title` | `items.${number}.product_description` | `items.${number}.variant_title` | `items.${number}.options_with_values` | `items.${number}.line_level_discount_allocations` | `items.${number}.line_level_total_discount` | `items.${number}.has_components` | `items.${number}.unit_price` | `items.${number}.properties_array` | `items.${number}.private_properties` | `items.${number}.private_properties_array` | `items.${number}.public_properties` | `items.${number}.public_properties_array` | `items.${number}.variant_options.${number}` | `items.${number}.properties.${string}` | `items.${number}.featured_image.url` | `items.${number}.featured_image.aspect_ratio` | `items.${number}.featured_image.alt` | `items.${number}.featured_image.height` | `items.${number}.featured_image.width` | `items.${number}.options_with_values.${number}` | `items.${number}.options_with_values.${number}.value` | `items.${number}.options_with_values.${number}.name` | `items.${number}.line_level_discount_allocations.${number}` | `items.${number}.line_level_discount_allocations.${number}.amount` | `items.${number}.line_level_discount_allocations.${number}.discount_application` | `items.${number}.line_level_discount_allocations.${number}.discount_application.title` | `items.${number}.line_level_discount_allocations.${number}.discount_application.value` | `items.${number}.line_level_discount_allocations.${number}.discount_application.description` | `items.${number}.line_level_discount_allocations.${number}.discount_application.target_selection` | `items.${number}.line_level_discount_allocations.${number}.discount_application.target_type` | `items.${number}.line_level_discount_allocations.${number}.discount_application.total_allocated_amount` | `items.${number}.line_level_discount_allocations.${number}.discount_application.type` | `items.${number}.line_level_discount_allocations.${number}.discount_application.value_type` | `items.${number}.properties_array.${number}` | `items.${number}.properties_array.${number}.value` | `items.${number}.properties_array.${number}.key` | `items.${number}.private_properties.${string}` | `items.${number}.private_properties_array.${number}` | `items.${number}.private_properties_array.${number}.value` | `items.${number}.private_properties_array.${number}.key` | `items.${number}.public_properties.${string}` | `items.${number}.public_properties_array.${number}` | `items.${number}.public_properties_array.${number}.value` | `items.${number}.public_properties_array.${number}.key` | `cart_level_discount_applications.${number}` | `cart_level_discount_applications.${number}.title` | `cart_level_discount_applications.${number}.value` | `cart_level_discount_applications.${number}.description` | `cart_level_discount_applications.${number}.target_selection` | `cart_level_discount_applications.${number}.target_type` | `cart_level_discount_applications.${number}.total_allocated_amount` | `cart_level_discount_applications.${number}.type` | `cart_level_discount_applications.${number}.value_type` | `attributes_array.${number}` | `attributes_array.${number}.value` | `attributes_array.${number}.key` | `private_attributes.${string}` | `private_attributes_array.${number}` | `private_attributes_array.${number}.value` | `private_attributes_array.${number}.key` | `public_attributes.${string}` | `public_attributes_array.${number}` | `public_attributes_array.${number}.value` | `public_attributes_array.${number}.key`>(options: {
1361
- path: import("solid-js").Accessor<P>;
1362
- format?: Format;
1363
- element: HTMLElement & import("component-register").ICustomElement;
1364
- data: import("solid-js").Accessor<PathValue<{
1373
+ readonly amount: number;
1374
+ }[];
1375
+ readonly requires_shipping: boolean;
1376
+ readonly token: string;
1377
+ readonly note: string | null;
1378
+ readonly discount_codes: readonly {
1379
+ readonly code: string;
1380
+ readonly applicable: boolean;
1381
+ }[];
1382
+ readonly original_total_price: number;
1383
+ readonly total_price: number;
1384
+ readonly total_weight: number;
1385
+ readonly item_count: number;
1386
+ readonly items: readonly ({
1387
+ readonly title: string;
1388
+ readonly key: string;
1389
+ readonly url: string;
1390
+ readonly image: string | null;
1391
+ readonly quantity_rule?: {
1392
+ readonly min: number;
1393
+ readonly max: number | null;
1394
+ readonly increment: number;
1395
+ } | undefined;
1396
+ readonly price: number;
1397
+ readonly id: string | number;
1398
+ readonly selling_plan_allocation: {
1399
+ readonly price: number;
1400
+ readonly price_adjustments: readonly {
1401
+ readonly position: number;
1402
+ readonly price: number;
1403
+ }[];
1404
+ readonly selling_plan: {
1405
+ readonly description: string | null;
1406
+ readonly name: string;
1407
+ readonly id: string | number;
1408
+ readonly options: readonly {
1409
+ readonly value: string;
1410
+ readonly name: string;
1411
+ readonly position: number;
1412
+ }[];
1413
+ readonly recurring_deliveries: boolean;
1414
+ readonly fixed_selling_plan: boolean;
1415
+ readonly price_adjustments: readonly {
1416
+ readonly value: string | number;
1417
+ readonly value_type: "fixed_amount" | "percentage" | "price";
1418
+ readonly position: number;
1419
+ readonly order_count: number | null;
1420
+ }[];
1421
+ };
1422
+ readonly compare_at_price: number;
1423
+ readonly per_delivery_price: number;
1424
+ } | null;
1425
+ readonly unit_price_measurement?: {
1426
+ readonly measured_type: "volume" | "weight" | "dimension";
1427
+ readonly quantity_unit: string;
1428
+ readonly quantity_value: number;
1429
+ readonly reference_unit: string;
1430
+ readonly reference_value: number;
1431
+ } | undefined;
1432
+ readonly variant_options: readonly string[];
1433
+ readonly properties: {
1434
+ readonly [x: string]: string | number | boolean | null;
1435
+ };
1436
+ readonly quantity: number;
1437
+ readonly variant_id: string | number;
1438
+ readonly original_price: number;
1439
+ readonly discounted_price: number;
1440
+ readonly line_price: number;
1441
+ readonly original_line_price: number;
1442
+ readonly total_discount: number;
1443
+ readonly discounts: readonly {
1444
+ readonly title: string;
1445
+ readonly amount: number;
1446
+ }[];
1447
+ readonly sku: string | null;
1448
+ readonly grams: number;
1449
+ readonly vendor: string;
1450
+ readonly taxable: boolean;
1451
+ readonly product_id: string | number;
1452
+ readonly product_has_only_default_variant: boolean;
1453
+ readonly gift_card: boolean;
1454
+ readonly final_line_price: number;
1455
+ readonly final_price: number;
1456
+ readonly featured_image: {
1457
+ readonly aspect_ratio: number | null;
1458
+ readonly alt: string | null;
1459
+ readonly height: number | null;
1460
+ readonly url: string | null;
1461
+ readonly width: number | null;
1462
+ };
1463
+ readonly handle: string;
1464
+ readonly requires_shipping: boolean;
1465
+ readonly product_type: string | null;
1466
+ readonly product_title: string;
1467
+ readonly product_description: string | null;
1468
+ readonly variant_title: string | null;
1469
+ readonly options_with_values: readonly {
1470
+ readonly value: string;
1471
+ readonly name: string;
1472
+ }[];
1473
+ readonly line_level_discount_allocations: readonly {
1474
+ readonly discount_application: {
1475
+ readonly title: string;
1476
+ readonly description: string | null;
1477
+ readonly value: number;
1478
+ readonly target_selection: "all" | "entitled" | "explicit";
1479
+ readonly target_type: "line_item" | "shipping_line";
1480
+ readonly total_allocated_amount: number;
1481
+ readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
1482
+ readonly value_type: "fixed_amount" | "percentage";
1483
+ };
1484
+ readonly amount: number;
1485
+ }[];
1486
+ readonly line_level_total_discount: number;
1487
+ readonly has_components: boolean;
1488
+ readonly unit_price?: number | undefined;
1489
+ } & {
1490
+ readonly properties_array: readonly {
1491
+ readonly key: string;
1492
+ readonly value: string | number | boolean | null;
1493
+ }[];
1494
+ readonly private_properties: {
1495
+ readonly [x: string]: string | number | boolean | null;
1496
+ };
1497
+ readonly private_properties_array: readonly {
1498
+ readonly key: string;
1499
+ readonly value: string | number | boolean | null;
1500
+ }[];
1501
+ readonly public_properties: {
1502
+ readonly [x: string]: string | number | boolean | null;
1503
+ };
1504
+ readonly public_properties_array: readonly {
1505
+ readonly key: string;
1506
+ readonly value: string | number | boolean | null;
1507
+ }[];
1508
+ })[];
1509
+ readonly currency: string;
1510
+ readonly items_subtotal_price: number;
1511
+ readonly cart_level_discount_applications: readonly {
1512
+ readonly title: string;
1513
+ readonly description: string | null;
1514
+ readonly value: number;
1515
+ readonly target_selection: "all" | "entitled" | "explicit";
1516
+ readonly target_type: "line_item" | "shipping_line";
1517
+ readonly total_allocated_amount: number;
1518
+ readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
1519
+ readonly value_type: "fixed_amount" | "percentage";
1520
+ }[];
1521
+ } & {
1522
+ readonly attributes_array: readonly {
1523
+ readonly key: string;
1524
+ readonly value: string | number | boolean | null;
1525
+ }[];
1526
+ readonly private_attributes: {
1527
+ readonly [x: string]: string | number | boolean | null;
1528
+ };
1529
+ readonly private_attributes_array: readonly {
1530
+ readonly key: string;
1531
+ readonly value: string | number | boolean | null;
1532
+ }[];
1533
+ readonly public_attributes: {
1534
+ readonly [x: string]: string | number | boolean | null;
1535
+ };
1536
+ readonly public_attributes_array: readonly {
1537
+ readonly key: string;
1538
+ readonly value: string | number | boolean | null;
1539
+ }[];
1540
+ }, P>>;
1541
+ }) => import("solid-js").Accessor<PathValue<{
1365
1542
  readonly attributes: {
1366
1543
  readonly [x: string]: string | number | boolean | null;
1367
1544
  };
@@ -1536,152 +1713,335 @@ export declare const useCartFormattedValue: <P extends "attributes" | "total_dis
1536
1713
  readonly value: string | number | boolean | null;
1537
1714
  }[];
1538
1715
  }, P>>;
1539
- }) => import("solid-js").Accessor<PathValue<{
1540
- readonly attributes: {
1716
+ };
1717
+ export type CartPath = Path<CartData>;
1718
+ export type CartPathValue<Path extends CartPath> = PathValue<CartData, Path>;
1719
+ export declare const useCartValue: (options: Omit<Parameters<typeof hooks.usePathValue>[0], "data"> & {
1720
+ element: HTMLElement & ICustomElement;
1721
+ }) => import("solid-js").Accessor<string | number | boolean | {
1722
+ readonly [x: string]: string | number | boolean | null;
1723
+ } | {
1724
+ readonly title: string;
1725
+ readonly amount: number;
1726
+ } | readonly {
1727
+ readonly title: string;
1728
+ readonly amount: number;
1729
+ }[] | {
1730
+ readonly code: string;
1731
+ readonly applicable: boolean;
1732
+ } | readonly {
1733
+ readonly code: string;
1734
+ readonly applicable: boolean;
1735
+ }[] | ({
1736
+ readonly title: string;
1737
+ readonly key: string;
1738
+ readonly url: string;
1739
+ readonly image: string | null;
1740
+ readonly quantity_rule?: {
1741
+ readonly min: number;
1742
+ readonly max: number | null;
1743
+ readonly increment: number;
1744
+ } | undefined;
1745
+ readonly price: number;
1746
+ readonly id: string | number;
1747
+ readonly selling_plan_allocation: {
1748
+ readonly price: number;
1749
+ readonly price_adjustments: readonly {
1750
+ readonly position: number;
1751
+ readonly price: number;
1752
+ }[];
1753
+ readonly selling_plan: {
1754
+ readonly description: string | null;
1755
+ readonly name: string;
1756
+ readonly id: string | number;
1757
+ readonly options: readonly {
1758
+ readonly value: string;
1759
+ readonly name: string;
1760
+ readonly position: number;
1761
+ }[];
1762
+ readonly recurring_deliveries: boolean;
1763
+ readonly fixed_selling_plan: boolean;
1764
+ readonly price_adjustments: readonly {
1765
+ readonly value: string | number;
1766
+ readonly value_type: "fixed_amount" | "percentage" | "price";
1767
+ readonly position: number;
1768
+ readonly order_count: number | null;
1769
+ }[];
1770
+ };
1771
+ readonly compare_at_price: number;
1772
+ readonly per_delivery_price: number;
1773
+ } | null;
1774
+ readonly unit_price_measurement?: {
1775
+ readonly measured_type: "volume" | "weight" | "dimension";
1776
+ readonly quantity_unit: string;
1777
+ readonly quantity_value: number;
1778
+ readonly reference_unit: string;
1779
+ readonly reference_value: number;
1780
+ } | undefined;
1781
+ readonly variant_options: readonly string[];
1782
+ readonly properties: {
1541
1783
  readonly [x: string]: string | number | boolean | null;
1542
1784
  };
1785
+ readonly quantity: number;
1786
+ readonly variant_id: string | number;
1787
+ readonly original_price: number;
1788
+ readonly discounted_price: number;
1789
+ readonly line_price: number;
1790
+ readonly original_line_price: number;
1543
1791
  readonly total_discount: number;
1544
1792
  readonly discounts: readonly {
1545
1793
  readonly title: string;
1546
1794
  readonly amount: number;
1547
1795
  }[];
1796
+ readonly sku: string | null;
1797
+ readonly grams: number;
1798
+ readonly vendor: string;
1799
+ readonly taxable: boolean;
1800
+ readonly product_id: string | number;
1801
+ readonly product_has_only_default_variant: boolean;
1802
+ readonly gift_card: boolean;
1803
+ readonly final_line_price: number;
1804
+ readonly final_price: number;
1805
+ readonly featured_image: {
1806
+ readonly aspect_ratio: number | null;
1807
+ readonly alt: string | null;
1808
+ readonly height: number | null;
1809
+ readonly url: string | null;
1810
+ readonly width: number | null;
1811
+ };
1812
+ readonly handle: string;
1548
1813
  readonly requires_shipping: boolean;
1549
- readonly token: string;
1550
- readonly note: string | null;
1551
- readonly discount_codes: readonly {
1552
- readonly code: string;
1553
- readonly applicable: boolean;
1814
+ readonly product_type: string | null;
1815
+ readonly product_title: string;
1816
+ readonly product_description: string | null;
1817
+ readonly variant_title: string | null;
1818
+ readonly options_with_values: readonly {
1819
+ readonly value: string;
1820
+ readonly name: string;
1554
1821
  }[];
1555
- readonly original_total_price: number;
1556
- readonly total_price: number;
1557
- readonly total_weight: number;
1558
- readonly item_count: number;
1559
- readonly items: readonly ({
1560
- readonly title: string;
1822
+ readonly line_level_discount_allocations: readonly {
1823
+ readonly discount_application: {
1824
+ readonly title: string;
1825
+ readonly description: string | null;
1826
+ readonly value: number;
1827
+ readonly target_selection: "all" | "entitled" | "explicit";
1828
+ readonly target_type: "line_item" | "shipping_line";
1829
+ readonly total_allocated_amount: number;
1830
+ readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
1831
+ readonly value_type: "fixed_amount" | "percentage";
1832
+ };
1833
+ readonly amount: number;
1834
+ }[];
1835
+ readonly line_level_total_discount: number;
1836
+ readonly has_components: boolean;
1837
+ readonly unit_price?: number | undefined;
1838
+ } & {
1839
+ readonly properties_array: readonly {
1561
1840
  readonly key: string;
1562
- readonly url: string;
1563
- readonly image: string | null;
1564
- readonly quantity_rule?: {
1565
- readonly min: number;
1566
- readonly max: number | null;
1567
- readonly increment: number;
1568
- } | undefined;
1841
+ readonly value: string | number | boolean | null;
1842
+ }[];
1843
+ readonly private_properties: {
1844
+ readonly [x: string]: string | number | boolean | null;
1845
+ };
1846
+ readonly private_properties_array: readonly {
1847
+ readonly key: string;
1848
+ readonly value: string | number | boolean | null;
1849
+ }[];
1850
+ readonly public_properties: {
1851
+ readonly [x: string]: string | number | boolean | null;
1852
+ };
1853
+ readonly public_properties_array: readonly {
1854
+ readonly key: string;
1855
+ readonly value: string | number | boolean | null;
1856
+ }[];
1857
+ }) | readonly ({
1858
+ readonly title: string;
1859
+ readonly key: string;
1860
+ readonly url: string;
1861
+ readonly image: string | null;
1862
+ readonly quantity_rule?: {
1863
+ readonly min: number;
1864
+ readonly max: number | null;
1865
+ readonly increment: number;
1866
+ } | undefined;
1867
+ readonly price: number;
1868
+ readonly id: string | number;
1869
+ readonly selling_plan_allocation: {
1569
1870
  readonly price: number;
1570
- readonly id: string | number;
1571
- readonly selling_plan_allocation: {
1871
+ readonly price_adjustments: readonly {
1872
+ readonly position: number;
1572
1873
  readonly price: number;
1874
+ }[];
1875
+ readonly selling_plan: {
1876
+ readonly description: string | null;
1877
+ readonly name: string;
1878
+ readonly id: string | number;
1879
+ readonly options: readonly {
1880
+ readonly value: string;
1881
+ readonly name: string;
1882
+ readonly position: number;
1883
+ }[];
1884
+ readonly recurring_deliveries: boolean;
1885
+ readonly fixed_selling_plan: boolean;
1573
1886
  readonly price_adjustments: readonly {
1887
+ readonly value: string | number;
1888
+ readonly value_type: "fixed_amount" | "percentage" | "price";
1574
1889
  readonly position: number;
1575
- readonly price: number;
1890
+ readonly order_count: number | null;
1576
1891
  }[];
1577
- readonly selling_plan: {
1578
- readonly description: string | null;
1579
- readonly name: string;
1580
- readonly id: string | number;
1581
- readonly options: readonly {
1582
- readonly value: string;
1583
- readonly name: string;
1584
- readonly position: number;
1585
- }[];
1586
- readonly recurring_deliveries: boolean;
1587
- readonly fixed_selling_plan: boolean;
1588
- readonly price_adjustments: readonly {
1589
- readonly value: string | number;
1590
- readonly value_type: "fixed_amount" | "percentage" | "price";
1591
- readonly position: number;
1592
- readonly order_count: number | null;
1593
- }[];
1594
- };
1595
- readonly compare_at_price: number;
1596
- readonly per_delivery_price: number;
1597
- } | null;
1598
- readonly unit_price_measurement?: {
1599
- readonly measured_type: "volume" | "weight" | "dimension";
1600
- readonly quantity_unit: string;
1601
- readonly quantity_value: number;
1602
- readonly reference_unit: string;
1603
- readonly reference_value: number;
1604
- } | undefined;
1605
- readonly variant_options: readonly string[];
1606
- readonly properties: {
1607
- readonly [x: string]: string | number | boolean | null;
1608
1892
  };
1609
- readonly quantity: number;
1610
- readonly variant_id: string | number;
1611
- readonly original_price: number;
1612
- readonly discounted_price: number;
1613
- readonly line_price: number;
1614
- readonly original_line_price: number;
1615
- readonly total_discount: number;
1616
- readonly discounts: readonly {
1893
+ readonly compare_at_price: number;
1894
+ readonly per_delivery_price: number;
1895
+ } | null;
1896
+ readonly unit_price_measurement?: {
1897
+ readonly measured_type: "volume" | "weight" | "dimension";
1898
+ readonly quantity_unit: string;
1899
+ readonly quantity_value: number;
1900
+ readonly reference_unit: string;
1901
+ readonly reference_value: number;
1902
+ } | undefined;
1903
+ readonly variant_options: readonly string[];
1904
+ readonly properties: {
1905
+ readonly [x: string]: string | number | boolean | null;
1906
+ };
1907
+ readonly quantity: number;
1908
+ readonly variant_id: string | number;
1909
+ readonly original_price: number;
1910
+ readonly discounted_price: number;
1911
+ readonly line_price: number;
1912
+ readonly original_line_price: number;
1913
+ readonly total_discount: number;
1914
+ readonly discounts: readonly {
1915
+ readonly title: string;
1916
+ readonly amount: number;
1917
+ }[];
1918
+ readonly sku: string | null;
1919
+ readonly grams: number;
1920
+ readonly vendor: string;
1921
+ readonly taxable: boolean;
1922
+ readonly product_id: string | number;
1923
+ readonly product_has_only_default_variant: boolean;
1924
+ readonly gift_card: boolean;
1925
+ readonly final_line_price: number;
1926
+ readonly final_price: number;
1927
+ readonly featured_image: {
1928
+ readonly aspect_ratio: number | null;
1929
+ readonly alt: string | null;
1930
+ readonly height: number | null;
1931
+ readonly url: string | null;
1932
+ readonly width: number | null;
1933
+ };
1934
+ readonly handle: string;
1935
+ readonly requires_shipping: boolean;
1936
+ readonly product_type: string | null;
1937
+ readonly product_title: string;
1938
+ readonly product_description: string | null;
1939
+ readonly variant_title: string | null;
1940
+ readonly options_with_values: readonly {
1941
+ readonly value: string;
1942
+ readonly name: string;
1943
+ }[];
1944
+ readonly line_level_discount_allocations: readonly {
1945
+ readonly discount_application: {
1617
1946
  readonly title: string;
1618
- readonly amount: number;
1619
- }[];
1620
- readonly sku: string | null;
1621
- readonly grams: number;
1622
- readonly vendor: string;
1623
- readonly taxable: boolean;
1624
- readonly product_id: string | number;
1625
- readonly product_has_only_default_variant: boolean;
1626
- readonly gift_card: boolean;
1627
- readonly final_line_price: number;
1628
- readonly final_price: number;
1629
- readonly featured_image: {
1630
- readonly aspect_ratio: number | null;
1631
- readonly alt: string | null;
1632
- readonly height: number | null;
1633
- readonly url: string | null;
1634
- readonly width: number | null;
1947
+ readonly description: string | null;
1948
+ readonly value: number;
1949
+ readonly target_selection: "all" | "entitled" | "explicit";
1950
+ readonly target_type: "line_item" | "shipping_line";
1951
+ readonly total_allocated_amount: number;
1952
+ readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
1953
+ readonly value_type: "fixed_amount" | "percentage";
1635
1954
  };
1636
- readonly handle: string;
1637
- readonly requires_shipping: boolean;
1638
- readonly product_type: string | null;
1639
- readonly product_title: string;
1640
- readonly product_description: string | null;
1641
- readonly variant_title: string | null;
1642
- readonly options_with_values: readonly {
1955
+ readonly amount: number;
1956
+ }[];
1957
+ readonly line_level_total_discount: number;
1958
+ readonly has_components: boolean;
1959
+ readonly unit_price?: number | undefined;
1960
+ } & {
1961
+ readonly properties_array: readonly {
1962
+ readonly key: string;
1963
+ readonly value: string | number | boolean | null;
1964
+ }[];
1965
+ readonly private_properties: {
1966
+ readonly [x: string]: string | number | boolean | null;
1967
+ };
1968
+ readonly private_properties_array: readonly {
1969
+ readonly key: string;
1970
+ readonly value: string | number | boolean | null;
1971
+ }[];
1972
+ readonly public_properties: {
1973
+ readonly [x: string]: string | number | boolean | null;
1974
+ };
1975
+ readonly public_properties_array: readonly {
1976
+ readonly key: string;
1977
+ readonly value: string | number | boolean | null;
1978
+ }[];
1979
+ })[] | {
1980
+ readonly title: string;
1981
+ readonly description: string | null;
1982
+ readonly value: number;
1983
+ readonly target_selection: "all" | "entitled" | "explicit";
1984
+ readonly target_type: "line_item" | "shipping_line";
1985
+ readonly total_allocated_amount: number;
1986
+ readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
1987
+ readonly value_type: "fixed_amount" | "percentage";
1988
+ } | readonly {
1989
+ readonly title: string;
1990
+ readonly description: string | null;
1991
+ readonly value: number;
1992
+ readonly target_selection: "all" | "entitled" | "explicit";
1993
+ readonly target_type: "line_item" | "shipping_line";
1994
+ readonly total_allocated_amount: number;
1995
+ readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
1996
+ readonly value_type: "fixed_amount" | "percentage";
1997
+ }[] | {
1998
+ readonly price: number;
1999
+ readonly price_adjustments: readonly {
2000
+ readonly position: number;
2001
+ readonly price: number;
2002
+ }[];
2003
+ readonly selling_plan: {
2004
+ readonly description: string | null;
2005
+ readonly name: string;
2006
+ readonly id: string | number;
2007
+ readonly options: readonly {
1643
2008
  readonly value: string;
1644
2009
  readonly name: string;
2010
+ readonly position: number;
1645
2011
  }[];
1646
- readonly line_level_discount_allocations: readonly {
1647
- readonly discount_application: {
1648
- readonly title: string;
1649
- readonly description: string | null;
1650
- readonly value: number;
1651
- readonly target_selection: "all" | "entitled" | "explicit";
1652
- readonly target_type: "line_item" | "shipping_line";
1653
- readonly total_allocated_amount: number;
1654
- readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
1655
- readonly value_type: "fixed_amount" | "percentage";
1656
- };
1657
- readonly amount: number;
2012
+ readonly recurring_deliveries: boolean;
2013
+ readonly fixed_selling_plan: boolean;
2014
+ readonly price_adjustments: readonly {
2015
+ readonly value: string | number;
2016
+ readonly value_type: "fixed_amount" | "percentage" | "price";
2017
+ readonly position: number;
2018
+ readonly order_count: number | null;
1658
2019
  }[];
1659
- readonly line_level_total_discount: number;
1660
- readonly has_components: boolean;
1661
- readonly unit_price?: number | undefined;
1662
- } & {
1663
- readonly properties_array: readonly {
1664
- readonly key: string;
1665
- readonly value: string | number | boolean | null;
1666
- }[];
1667
- readonly private_properties: {
1668
- readonly [x: string]: string | number | boolean | null;
1669
- };
1670
- readonly private_properties_array: readonly {
1671
- readonly key: string;
1672
- readonly value: string | number | boolean | null;
1673
- }[];
1674
- readonly public_properties: {
1675
- readonly [x: string]: string | number | boolean | null;
1676
- };
1677
- readonly public_properties_array: readonly {
1678
- readonly key: string;
1679
- readonly value: string | number | boolean | null;
1680
- }[];
1681
- })[];
1682
- readonly currency: string;
1683
- readonly items_subtotal_price: number;
1684
- readonly cart_level_discount_applications: readonly {
2020
+ };
2021
+ readonly compare_at_price: number;
2022
+ readonly per_delivery_price: number;
2023
+ } | readonly string[] | {
2024
+ readonly [x: string]: string | number | boolean | null;
2025
+ } | {
2026
+ readonly title: string;
2027
+ readonly amount: number;
2028
+ } | readonly {
2029
+ readonly title: string;
2030
+ readonly amount: number;
2031
+ }[] | {
2032
+ readonly aspect_ratio: number | null;
2033
+ readonly alt: string | null;
2034
+ readonly height: number | null;
2035
+ readonly url: string | null;
2036
+ readonly width: number | null;
2037
+ } | {
2038
+ readonly value: string;
2039
+ readonly name: string;
2040
+ } | readonly {
2041
+ readonly value: string;
2042
+ readonly name: string;
2043
+ }[] | {
2044
+ readonly discount_application: {
1685
2045
  readonly title: string;
1686
2046
  readonly description: string | null;
1687
2047
  readonly value: number;
@@ -1690,27 +2050,500 @@ export declare const useCartFormattedValue: <P extends "attributes" | "total_dis
1690
2050
  readonly total_allocated_amount: number;
1691
2051
  readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
1692
2052
  readonly value_type: "fixed_amount" | "percentage";
2053
+ };
2054
+ readonly amount: number;
2055
+ } | readonly {
2056
+ readonly discount_application: {
2057
+ readonly title: string;
2058
+ readonly description: string | null;
2059
+ readonly value: number;
2060
+ readonly target_selection: "all" | "entitled" | "explicit";
2061
+ readonly target_type: "line_item" | "shipping_line";
2062
+ readonly total_allocated_amount: number;
2063
+ readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
2064
+ readonly value_type: "fixed_amount" | "percentage";
2065
+ };
2066
+ readonly amount: number;
2067
+ }[] | {
2068
+ readonly min: number;
2069
+ readonly max: number | null;
2070
+ readonly increment: number;
2071
+ } | {
2072
+ readonly measured_type: "volume" | "weight" | "dimension";
2073
+ readonly quantity_unit: string;
2074
+ readonly quantity_value: number;
2075
+ readonly reference_unit: string;
2076
+ readonly reference_value: number;
2077
+ } | {
2078
+ readonly title: string;
2079
+ readonly description: string | null;
2080
+ readonly value: number;
2081
+ readonly target_selection: "all" | "entitled" | "explicit";
2082
+ readonly target_type: "line_item" | "shipping_line";
2083
+ readonly total_allocated_amount: number;
2084
+ readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
2085
+ readonly value_type: "fixed_amount" | "percentage";
2086
+ } | {
2087
+ readonly key: string;
2088
+ readonly value: string | number | boolean | null;
2089
+ } | readonly {
2090
+ readonly key: string;
2091
+ readonly value: string | number | boolean | null;
2092
+ }[] | {
2093
+ readonly [x: string]: string | number | boolean | null;
2094
+ } | {
2095
+ readonly key: string;
2096
+ readonly value: string | number | boolean | null;
2097
+ } | readonly {
2098
+ readonly key: string;
2099
+ readonly value: string | number | boolean | null;
2100
+ }[] | {
2101
+ readonly [x: string]: string | number | boolean | null;
2102
+ } | {
2103
+ readonly key: string;
2104
+ readonly value: string | number | boolean | null;
2105
+ } | readonly {
2106
+ readonly key: string;
2107
+ readonly value: string | number | boolean | null;
2108
+ }[] | {
2109
+ readonly key: string;
2110
+ readonly value: string | number | boolean | null;
2111
+ } | readonly {
2112
+ readonly key: string;
2113
+ readonly value: string | number | boolean | null;
2114
+ }[] | {
2115
+ readonly [x: string]: string | number | boolean | null;
2116
+ } | {
2117
+ readonly key: string;
2118
+ readonly value: string | number | boolean | null;
2119
+ } | readonly {
2120
+ readonly key: string;
2121
+ readonly value: string | number | boolean | null;
2122
+ }[] | {
2123
+ readonly [x: string]: string | number | boolean | null;
2124
+ } | {
2125
+ readonly key: string;
2126
+ readonly value: string | number | boolean | null;
2127
+ } | readonly {
2128
+ readonly key: string;
2129
+ readonly value: string | number | boolean | null;
2130
+ }[] | null | undefined>;
2131
+ export declare const useCartPath: (props: {
2132
+ element: HTMLElement & ICustomElement;
2133
+ path?: import("solid-js").Accessor<"attributes" | "total_discount" | "discounts" | "requires_shipping" | "token" | "note" | "discount_codes" | "original_total_price" | "total_price" | "total_weight" | "item_count" | "items" | "currency" | "items_subtotal_price" | "cart_level_discount_applications" | "attributes_array" | "private_attributes" | "private_attributes_array" | "public_attributes" | "public_attributes_array" | `attributes.${string}` | `discounts.${number}` | `discounts.${number}.title` | `discounts.${number}.amount` | `discount_codes.${number}` | `discount_codes.${number}.code` | `discount_codes.${number}.applicable` | `items.${number}` | `items.${number}.title` | `items.${number}.key` | `items.${number}.price` | `items.${number}.total_discount` | `items.${number}.discounts` | `items.${number}.requires_shipping` | `items.${number}.image` | `items.${number}.id` | `items.${number}.discounts.${number}` | `items.${number}.discounts.${number}.title` | `items.${number}.discounts.${number}.amount` | `items.${number}.url` | `items.${number}.quantity_rule` | `items.${number}.selling_plan_allocation` | `items.${number}.unit_price_measurement` | `items.${number}.variant_options` | `items.${number}.properties` | `items.${number}.quantity` | `items.${number}.variant_id` | `items.${number}.original_price` | `items.${number}.discounted_price` | `items.${number}.line_price` | `items.${number}.original_line_price` | `items.${number}.sku` | `items.${number}.grams` | `items.${number}.vendor` | `items.${number}.taxable` | `items.${number}.product_id` | `items.${number}.product_has_only_default_variant` | `items.${number}.gift_card` | `items.${number}.final_line_price` | `items.${number}.final_price` | `items.${number}.featured_image` | `items.${number}.handle` | `items.${number}.product_type` | `items.${number}.product_title` | `items.${number}.product_description` | `items.${number}.variant_title` | `items.${number}.options_with_values` | `items.${number}.line_level_discount_allocations` | `items.${number}.line_level_total_discount` | `items.${number}.has_components` | `items.${number}.unit_price` | `items.${number}.properties_array` | `items.${number}.private_properties` | `items.${number}.private_properties_array` | `items.${number}.public_properties` | `items.${number}.public_properties_array` | `items.${number}.variant_options.${number}` | `items.${number}.properties.${string}` | `items.${number}.featured_image.url` | `items.${number}.featured_image.aspect_ratio` | `items.${number}.featured_image.alt` | `items.${number}.featured_image.height` | `items.${number}.featured_image.width` | `items.${number}.options_with_values.${number}` | `items.${number}.options_with_values.${number}.value` | `items.${number}.options_with_values.${number}.name` | `items.${number}.line_level_discount_allocations.${number}` | `items.${number}.line_level_discount_allocations.${number}.amount` | `items.${number}.line_level_discount_allocations.${number}.discount_application` | `items.${number}.line_level_discount_allocations.${number}.discount_application.title` | `items.${number}.line_level_discount_allocations.${number}.discount_application.value` | `items.${number}.line_level_discount_allocations.${number}.discount_application.description` | `items.${number}.line_level_discount_allocations.${number}.discount_application.target_selection` | `items.${number}.line_level_discount_allocations.${number}.discount_application.target_type` | `items.${number}.line_level_discount_allocations.${number}.discount_application.total_allocated_amount` | `items.${number}.line_level_discount_allocations.${number}.discount_application.type` | `items.${number}.line_level_discount_allocations.${number}.discount_application.value_type` | `items.${number}.properties_array.${number}` | `items.${number}.properties_array.${number}.value` | `items.${number}.properties_array.${number}.key` | `items.${number}.private_properties.${string}` | `items.${number}.private_properties_array.${number}` | `items.${number}.private_properties_array.${number}.value` | `items.${number}.private_properties_array.${number}.key` | `items.${number}.public_properties.${string}` | `items.${number}.public_properties_array.${number}` | `items.${number}.public_properties_array.${number}.value` | `items.${number}.public_properties_array.${number}.key` | `cart_level_discount_applications.${number}` | `cart_level_discount_applications.${number}.title` | `cart_level_discount_applications.${number}.value` | `cart_level_discount_applications.${number}.description` | `cart_level_discount_applications.${number}.target_selection` | `cart_level_discount_applications.${number}.target_type` | `cart_level_discount_applications.${number}.total_allocated_amount` | `cart_level_discount_applications.${number}.type` | `cart_level_discount_applications.${number}.value_type` | `attributes_array.${number}` | `attributes_array.${number}.value` | `attributes_array.${number}.key` | `private_attributes.${string}` | `private_attributes_array.${number}` | `private_attributes_array.${number}.value` | `private_attributes_array.${number}.key` | `public_attributes.${string}` | `public_attributes_array.${number}` | `public_attributes_array.${number}.value` | `public_attributes_array.${number}.key`> | undefined;
2134
+ }) => import("solid-js").Accessor<"attributes" | "total_discount" | "discounts" | "requires_shipping" | "token" | "note" | "discount_codes" | "original_total_price" | "total_price" | "total_weight" | "item_count" | "items" | "currency" | "items_subtotal_price" | "cart_level_discount_applications" | "attributes_array" | "private_attributes" | "private_attributes_array" | "public_attributes" | "public_attributes_array" | `attributes.${string}` | `discounts.${number}` | `discounts.${number}.title` | `discounts.${number}.amount` | `discount_codes.${number}` | `discount_codes.${number}.code` | `discount_codes.${number}.applicable` | `items.${number}` | `items.${number}.title` | `items.${number}.key` | `items.${number}.price` | `items.${number}.total_discount` | `items.${number}.discounts` | `items.${number}.requires_shipping` | `items.${number}.image` | `items.${number}.id` | `items.${number}.discounts.${number}` | `items.${number}.discounts.${number}.title` | `items.${number}.discounts.${number}.amount` | `items.${number}.url` | `items.${number}.quantity_rule` | `items.${number}.selling_plan_allocation` | `items.${number}.unit_price_measurement` | `items.${number}.variant_options` | `items.${number}.properties` | `items.${number}.quantity` | `items.${number}.variant_id` | `items.${number}.original_price` | `items.${number}.discounted_price` | `items.${number}.line_price` | `items.${number}.original_line_price` | `items.${number}.sku` | `items.${number}.grams` | `items.${number}.vendor` | `items.${number}.taxable` | `items.${number}.product_id` | `items.${number}.product_has_only_default_variant` | `items.${number}.gift_card` | `items.${number}.final_line_price` | `items.${number}.final_price` | `items.${number}.featured_image` | `items.${number}.handle` | `items.${number}.product_type` | `items.${number}.product_title` | `items.${number}.product_description` | `items.${number}.variant_title` | `items.${number}.options_with_values` | `items.${number}.line_level_discount_allocations` | `items.${number}.line_level_total_discount` | `items.${number}.has_components` | `items.${number}.unit_price` | `items.${number}.properties_array` | `items.${number}.private_properties` | `items.${number}.private_properties_array` | `items.${number}.public_properties` | `items.${number}.public_properties_array` | `items.${number}.variant_options.${number}` | `items.${number}.properties.${string}` | `items.${number}.featured_image.url` | `items.${number}.featured_image.aspect_ratio` | `items.${number}.featured_image.alt` | `items.${number}.featured_image.height` | `items.${number}.featured_image.width` | `items.${number}.options_with_values.${number}` | `items.${number}.options_with_values.${number}.value` | `items.${number}.options_with_values.${number}.name` | `items.${number}.line_level_discount_allocations.${number}` | `items.${number}.line_level_discount_allocations.${number}.amount` | `items.${number}.line_level_discount_allocations.${number}.discount_application` | `items.${number}.line_level_discount_allocations.${number}.discount_application.title` | `items.${number}.line_level_discount_allocations.${number}.discount_application.value` | `items.${number}.line_level_discount_allocations.${number}.discount_application.description` | `items.${number}.line_level_discount_allocations.${number}.discount_application.target_selection` | `items.${number}.line_level_discount_allocations.${number}.discount_application.target_type` | `items.${number}.line_level_discount_allocations.${number}.discount_application.total_allocated_amount` | `items.${number}.line_level_discount_allocations.${number}.discount_application.type` | `items.${number}.line_level_discount_allocations.${number}.discount_application.value_type` | `items.${number}.properties_array.${number}` | `items.${number}.properties_array.${number}.value` | `items.${number}.properties_array.${number}.key` | `items.${number}.private_properties.${string}` | `items.${number}.private_properties_array.${number}` | `items.${number}.private_properties_array.${number}.value` | `items.${number}.private_properties_array.${number}.key` | `items.${number}.public_properties.${string}` | `items.${number}.public_properties_array.${number}` | `items.${number}.public_properties_array.${number}.value` | `items.${number}.public_properties_array.${number}.key` | `cart_level_discount_applications.${number}` | `cart_level_discount_applications.${number}.title` | `cart_level_discount_applications.${number}.value` | `cart_level_discount_applications.${number}.description` | `cart_level_discount_applications.${number}.target_selection` | `cart_level_discount_applications.${number}.target_type` | `cart_level_discount_applications.${number}.total_allocated_amount` | `cart_level_discount_applications.${number}.type` | `cart_level_discount_applications.${number}.value_type` | `attributes_array.${number}` | `attributes_array.${number}.value` | `attributes_array.${number}.key` | `private_attributes.${string}` | `private_attributes_array.${number}` | `private_attributes_array.${number}.value` | `private_attributes_array.${number}.key` | `public_attributes.${string}` | `public_attributes_array.${number}` | `public_attributes_array.${number}.value` | `public_attributes_array.${number}.key`>;
2135
+ export declare const useCartFormattedValue: (options: Omit<Parameters<typeof hooks.useFormattedValue>[0], "data"> & {
2136
+ element: HTMLElement & ICustomElement;
2137
+ }) => import("solid-js").Accessor<string | number | boolean | {
2138
+ readonly [x: string]: string | number | boolean | null;
2139
+ } | {
2140
+ readonly title: string;
2141
+ readonly amount: number;
2142
+ } | readonly {
2143
+ readonly title: string;
2144
+ readonly amount: number;
2145
+ }[] | {
2146
+ readonly code: string;
2147
+ readonly applicable: boolean;
2148
+ } | readonly {
2149
+ readonly code: string;
2150
+ readonly applicable: boolean;
2151
+ }[] | ({
2152
+ readonly title: string;
2153
+ readonly key: string;
2154
+ readonly url: string;
2155
+ readonly image: string | null;
2156
+ readonly quantity_rule?: {
2157
+ readonly min: number;
2158
+ readonly max: number | null;
2159
+ readonly increment: number;
2160
+ } | undefined;
2161
+ readonly price: number;
2162
+ readonly id: string | number;
2163
+ readonly selling_plan_allocation: {
2164
+ readonly price: number;
2165
+ readonly price_adjustments: readonly {
2166
+ readonly position: number;
2167
+ readonly price: number;
2168
+ }[];
2169
+ readonly selling_plan: {
2170
+ readonly description: string | null;
2171
+ readonly name: string;
2172
+ readonly id: string | number;
2173
+ readonly options: readonly {
2174
+ readonly value: string;
2175
+ readonly name: string;
2176
+ readonly position: number;
2177
+ }[];
2178
+ readonly recurring_deliveries: boolean;
2179
+ readonly fixed_selling_plan: boolean;
2180
+ readonly price_adjustments: readonly {
2181
+ readonly value: string | number;
2182
+ readonly value_type: "fixed_amount" | "percentage" | "price";
2183
+ readonly position: number;
2184
+ readonly order_count: number | null;
2185
+ }[];
2186
+ };
2187
+ readonly compare_at_price: number;
2188
+ readonly per_delivery_price: number;
2189
+ } | null;
2190
+ readonly unit_price_measurement?: {
2191
+ readonly measured_type: "volume" | "weight" | "dimension";
2192
+ readonly quantity_unit: string;
2193
+ readonly quantity_value: number;
2194
+ readonly reference_unit: string;
2195
+ readonly reference_value: number;
2196
+ } | undefined;
2197
+ readonly variant_options: readonly string[];
2198
+ readonly properties: {
2199
+ readonly [x: string]: string | number | boolean | null;
2200
+ };
2201
+ readonly quantity: number;
2202
+ readonly variant_id: string | number;
2203
+ readonly original_price: number;
2204
+ readonly discounted_price: number;
2205
+ readonly line_price: number;
2206
+ readonly original_line_price: number;
2207
+ readonly total_discount: number;
2208
+ readonly discounts: readonly {
2209
+ readonly title: string;
2210
+ readonly amount: number;
2211
+ }[];
2212
+ readonly sku: string | null;
2213
+ readonly grams: number;
2214
+ readonly vendor: string;
2215
+ readonly taxable: boolean;
2216
+ readonly product_id: string | number;
2217
+ readonly product_has_only_default_variant: boolean;
2218
+ readonly gift_card: boolean;
2219
+ readonly final_line_price: number;
2220
+ readonly final_price: number;
2221
+ readonly featured_image: {
2222
+ readonly aspect_ratio: number | null;
2223
+ readonly alt: string | null;
2224
+ readonly height: number | null;
2225
+ readonly url: string | null;
2226
+ readonly width: number | null;
2227
+ };
2228
+ readonly handle: string;
2229
+ readonly requires_shipping: boolean;
2230
+ readonly product_type: string | null;
2231
+ readonly product_title: string;
2232
+ readonly product_description: string | null;
2233
+ readonly variant_title: string | null;
2234
+ readonly options_with_values: readonly {
2235
+ readonly value: string;
2236
+ readonly name: string;
2237
+ }[];
2238
+ readonly line_level_discount_allocations: readonly {
2239
+ readonly discount_application: {
2240
+ readonly title: string;
2241
+ readonly description: string | null;
2242
+ readonly value: number;
2243
+ readonly target_selection: "all" | "entitled" | "explicit";
2244
+ readonly target_type: "line_item" | "shipping_line";
2245
+ readonly total_allocated_amount: number;
2246
+ readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
2247
+ readonly value_type: "fixed_amount" | "percentage";
2248
+ };
2249
+ readonly amount: number;
2250
+ }[];
2251
+ readonly line_level_total_discount: number;
2252
+ readonly has_components: boolean;
2253
+ readonly unit_price?: number | undefined;
2254
+ } & {
2255
+ readonly properties_array: readonly {
2256
+ readonly key: string;
2257
+ readonly value: string | number | boolean | null;
2258
+ }[];
2259
+ readonly private_properties: {
2260
+ readonly [x: string]: string | number | boolean | null;
2261
+ };
2262
+ readonly private_properties_array: readonly {
2263
+ readonly key: string;
2264
+ readonly value: string | number | boolean | null;
2265
+ }[];
2266
+ readonly public_properties: {
2267
+ readonly [x: string]: string | number | boolean | null;
2268
+ };
2269
+ readonly public_properties_array: readonly {
2270
+ readonly key: string;
2271
+ readonly value: string | number | boolean | null;
2272
+ }[];
2273
+ }) | readonly ({
2274
+ readonly title: string;
2275
+ readonly key: string;
2276
+ readonly url: string;
2277
+ readonly image: string | null;
2278
+ readonly quantity_rule?: {
2279
+ readonly min: number;
2280
+ readonly max: number | null;
2281
+ readonly increment: number;
2282
+ } | undefined;
2283
+ readonly price: number;
2284
+ readonly id: string | number;
2285
+ readonly selling_plan_allocation: {
2286
+ readonly price: number;
2287
+ readonly price_adjustments: readonly {
2288
+ readonly position: number;
2289
+ readonly price: number;
2290
+ }[];
2291
+ readonly selling_plan: {
2292
+ readonly description: string | null;
2293
+ readonly name: string;
2294
+ readonly id: string | number;
2295
+ readonly options: readonly {
2296
+ readonly value: string;
2297
+ readonly name: string;
2298
+ readonly position: number;
2299
+ }[];
2300
+ readonly recurring_deliveries: boolean;
2301
+ readonly fixed_selling_plan: boolean;
2302
+ readonly price_adjustments: readonly {
2303
+ readonly value: string | number;
2304
+ readonly value_type: "fixed_amount" | "percentage" | "price";
2305
+ readonly position: number;
2306
+ readonly order_count: number | null;
2307
+ }[];
2308
+ };
2309
+ readonly compare_at_price: number;
2310
+ readonly per_delivery_price: number;
2311
+ } | null;
2312
+ readonly unit_price_measurement?: {
2313
+ readonly measured_type: "volume" | "weight" | "dimension";
2314
+ readonly quantity_unit: string;
2315
+ readonly quantity_value: number;
2316
+ readonly reference_unit: string;
2317
+ readonly reference_value: number;
2318
+ } | undefined;
2319
+ readonly variant_options: readonly string[];
2320
+ readonly properties: {
2321
+ readonly [x: string]: string | number | boolean | null;
2322
+ };
2323
+ readonly quantity: number;
2324
+ readonly variant_id: string | number;
2325
+ readonly original_price: number;
2326
+ readonly discounted_price: number;
2327
+ readonly line_price: number;
2328
+ readonly original_line_price: number;
2329
+ readonly total_discount: number;
2330
+ readonly discounts: readonly {
2331
+ readonly title: string;
2332
+ readonly amount: number;
2333
+ }[];
2334
+ readonly sku: string | null;
2335
+ readonly grams: number;
2336
+ readonly vendor: string;
2337
+ readonly taxable: boolean;
2338
+ readonly product_id: string | number;
2339
+ readonly product_has_only_default_variant: boolean;
2340
+ readonly gift_card: boolean;
2341
+ readonly final_line_price: number;
2342
+ readonly final_price: number;
2343
+ readonly featured_image: {
2344
+ readonly aspect_ratio: number | null;
2345
+ readonly alt: string | null;
2346
+ readonly height: number | null;
2347
+ readonly url: string | null;
2348
+ readonly width: number | null;
2349
+ };
2350
+ readonly handle: string;
2351
+ readonly requires_shipping: boolean;
2352
+ readonly product_type: string | null;
2353
+ readonly product_title: string;
2354
+ readonly product_description: string | null;
2355
+ readonly variant_title: string | null;
2356
+ readonly options_with_values: readonly {
2357
+ readonly value: string;
2358
+ readonly name: string;
2359
+ }[];
2360
+ readonly line_level_discount_allocations: readonly {
2361
+ readonly discount_application: {
2362
+ readonly title: string;
2363
+ readonly description: string | null;
2364
+ readonly value: number;
2365
+ readonly target_selection: "all" | "entitled" | "explicit";
2366
+ readonly target_type: "line_item" | "shipping_line";
2367
+ readonly total_allocated_amount: number;
2368
+ readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
2369
+ readonly value_type: "fixed_amount" | "percentage";
2370
+ };
2371
+ readonly amount: number;
1693
2372
  }[];
2373
+ readonly line_level_total_discount: number;
2374
+ readonly has_components: boolean;
2375
+ readonly unit_price?: number | undefined;
1694
2376
  } & {
1695
- readonly attributes_array: readonly {
2377
+ readonly properties_array: readonly {
1696
2378
  readonly key: string;
1697
2379
  readonly value: string | number | boolean | null;
1698
2380
  }[];
1699
- readonly private_attributes: {
2381
+ readonly private_properties: {
1700
2382
  readonly [x: string]: string | number | boolean | null;
1701
2383
  };
1702
- readonly private_attributes_array: readonly {
2384
+ readonly private_properties_array: readonly {
1703
2385
  readonly key: string;
1704
2386
  readonly value: string | number | boolean | null;
1705
2387
  }[];
1706
- readonly public_attributes: {
2388
+ readonly public_properties: {
1707
2389
  readonly [x: string]: string | number | boolean | null;
1708
2390
  };
1709
- readonly public_attributes_array: readonly {
2391
+ readonly public_properties_array: readonly {
1710
2392
  readonly key: string;
1711
2393
  readonly value: string | number | boolean | null;
1712
2394
  }[];
1713
- }, P>>;
2395
+ })[] | {
2396
+ readonly title: string;
2397
+ readonly description: string | null;
2398
+ readonly value: number;
2399
+ readonly target_selection: "all" | "entitled" | "explicit";
2400
+ readonly target_type: "line_item" | "shipping_line";
2401
+ readonly total_allocated_amount: number;
2402
+ readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
2403
+ readonly value_type: "fixed_amount" | "percentage";
2404
+ } | readonly {
2405
+ readonly title: string;
2406
+ readonly description: string | null;
2407
+ readonly value: number;
2408
+ readonly target_selection: "all" | "entitled" | "explicit";
2409
+ readonly target_type: "line_item" | "shipping_line";
2410
+ readonly total_allocated_amount: number;
2411
+ readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
2412
+ readonly value_type: "fixed_amount" | "percentage";
2413
+ }[] | {
2414
+ readonly price: number;
2415
+ readonly price_adjustments: readonly {
2416
+ readonly position: number;
2417
+ readonly price: number;
2418
+ }[];
2419
+ readonly selling_plan: {
2420
+ readonly description: string | null;
2421
+ readonly name: string;
2422
+ readonly id: string | number;
2423
+ readonly options: readonly {
2424
+ readonly value: string;
2425
+ readonly name: string;
2426
+ readonly position: number;
2427
+ }[];
2428
+ readonly recurring_deliveries: boolean;
2429
+ readonly fixed_selling_plan: boolean;
2430
+ readonly price_adjustments: readonly {
2431
+ readonly value: string | number;
2432
+ readonly value_type: "fixed_amount" | "percentage" | "price";
2433
+ readonly position: number;
2434
+ readonly order_count: number | null;
2435
+ }[];
2436
+ };
2437
+ readonly compare_at_price: number;
2438
+ readonly per_delivery_price: number;
2439
+ } | readonly string[] | {
2440
+ readonly [x: string]: string | number | boolean | null;
2441
+ } | {
2442
+ readonly title: string;
2443
+ readonly amount: number;
2444
+ } | readonly {
2445
+ readonly title: string;
2446
+ readonly amount: number;
2447
+ }[] | {
2448
+ readonly aspect_ratio: number | null;
2449
+ readonly alt: string | null;
2450
+ readonly height: number | null;
2451
+ readonly url: string | null;
2452
+ readonly width: number | null;
2453
+ } | {
2454
+ readonly value: string;
2455
+ readonly name: string;
2456
+ } | readonly {
2457
+ readonly value: string;
2458
+ readonly name: string;
2459
+ }[] | {
2460
+ readonly discount_application: {
2461
+ readonly title: string;
2462
+ readonly description: string | null;
2463
+ readonly value: number;
2464
+ readonly target_selection: "all" | "entitled" | "explicit";
2465
+ readonly target_type: "line_item" | "shipping_line";
2466
+ readonly total_allocated_amount: number;
2467
+ readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
2468
+ readonly value_type: "fixed_amount" | "percentage";
2469
+ };
2470
+ readonly amount: number;
2471
+ } | readonly {
2472
+ readonly discount_application: {
2473
+ readonly title: string;
2474
+ readonly description: string | null;
2475
+ readonly value: number;
2476
+ readonly target_selection: "all" | "entitled" | "explicit";
2477
+ readonly target_type: "line_item" | "shipping_line";
2478
+ readonly total_allocated_amount: number;
2479
+ readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
2480
+ readonly value_type: "fixed_amount" | "percentage";
2481
+ };
2482
+ readonly amount: number;
2483
+ }[] | {
2484
+ readonly min: number;
2485
+ readonly max: number | null;
2486
+ readonly increment: number;
2487
+ } | {
2488
+ readonly measured_type: "volume" | "weight" | "dimension";
2489
+ readonly quantity_unit: string;
2490
+ readonly quantity_value: number;
2491
+ readonly reference_unit: string;
2492
+ readonly reference_value: number;
2493
+ } | {
2494
+ readonly title: string;
2495
+ readonly description: string | null;
2496
+ readonly value: number;
2497
+ readonly target_selection: "all" | "entitled" | "explicit";
2498
+ readonly target_type: "line_item" | "shipping_line";
2499
+ readonly total_allocated_amount: number;
2500
+ readonly type: "" | "automatic" | "discount_code" | "manual" | "script";
2501
+ readonly value_type: "fixed_amount" | "percentage";
2502
+ } | {
2503
+ readonly key: string;
2504
+ readonly value: string | number | boolean | null;
2505
+ } | readonly {
2506
+ readonly key: string;
2507
+ readonly value: string | number | boolean | null;
2508
+ }[] | {
2509
+ readonly [x: string]: string | number | boolean | null;
2510
+ } | {
2511
+ readonly key: string;
2512
+ readonly value: string | number | boolean | null;
2513
+ } | readonly {
2514
+ readonly key: string;
2515
+ readonly value: string | number | boolean | null;
2516
+ }[] | {
2517
+ readonly [x: string]: string | number | boolean | null;
2518
+ } | {
2519
+ readonly key: string;
2520
+ readonly value: string | number | boolean | null;
2521
+ } | readonly {
2522
+ readonly key: string;
2523
+ readonly value: string | number | boolean | null;
2524
+ }[] | {
2525
+ readonly key: string;
2526
+ readonly value: string | number | boolean | null;
2527
+ } | readonly {
2528
+ readonly key: string;
2529
+ readonly value: string | number | boolean | null;
2530
+ }[] | {
2531
+ readonly [x: string]: string | number | boolean | null;
2532
+ } | {
2533
+ readonly key: string;
2534
+ readonly value: string | number | boolean | null;
2535
+ } | readonly {
2536
+ readonly key: string;
2537
+ readonly value: string | number | boolean | null;
2538
+ }[] | {
2539
+ readonly [x: string]: string | number | boolean | null;
2540
+ } | {
2541
+ readonly key: string;
2542
+ readonly value: string | number | boolean | null;
2543
+ } | readonly {
2544
+ readonly key: string;
2545
+ readonly value: string | number | boolean | null;
2546
+ }[] | null | undefined>;
1714
2547
  export declare const provideCartPathContext: ({ element, path, }: {
1715
2548
  element: WalkableNode;
1716
2549
  path: import("solid-js").Accessor<"attributes" | "total_discount" | "discounts" | "requires_shipping" | "token" | "note" | "discount_codes" | "original_total_price" | "total_price" | "total_weight" | "item_count" | "items" | "currency" | "items_subtotal_price" | "cart_level_discount_applications" | "attributes_array" | "private_attributes" | "private_attributes_array" | "public_attributes" | "public_attributes_array" | `attributes.${string}` | `discounts.${number}` | `discounts.${number}.title` | `discounts.${number}.amount` | `discount_codes.${number}` | `discount_codes.${number}.code` | `discount_codes.${number}.applicable` | `items.${number}` | `items.${number}.title` | `items.${number}.key` | `items.${number}.price` | `items.${number}.total_discount` | `items.${number}.discounts` | `items.${number}.requires_shipping` | `items.${number}.image` | `items.${number}.id` | `items.${number}.discounts.${number}` | `items.${number}.discounts.${number}.title` | `items.${number}.discounts.${number}.amount` | `items.${number}.url` | `items.${number}.quantity_rule` | `items.${number}.selling_plan_allocation` | `items.${number}.unit_price_measurement` | `items.${number}.variant_options` | `items.${number}.properties` | `items.${number}.quantity` | `items.${number}.variant_id` | `items.${number}.original_price` | `items.${number}.discounted_price` | `items.${number}.line_price` | `items.${number}.original_line_price` | `items.${number}.sku` | `items.${number}.grams` | `items.${number}.vendor` | `items.${number}.taxable` | `items.${number}.product_id` | `items.${number}.product_has_only_default_variant` | `items.${number}.gift_card` | `items.${number}.final_line_price` | `items.${number}.final_price` | `items.${number}.featured_image` | `items.${number}.handle` | `items.${number}.product_type` | `items.${number}.product_title` | `items.${number}.product_description` | `items.${number}.variant_title` | `items.${number}.options_with_values` | `items.${number}.line_level_discount_allocations` | `items.${number}.line_level_total_discount` | `items.${number}.has_components` | `items.${number}.unit_price` | `items.${number}.properties_array` | `items.${number}.private_properties` | `items.${number}.private_properties_array` | `items.${number}.public_properties` | `items.${number}.public_properties_array` | `items.${number}.variant_options.${number}` | `items.${number}.properties.${string}` | `items.${number}.featured_image.url` | `items.${number}.featured_image.aspect_ratio` | `items.${number}.featured_image.alt` | `items.${number}.featured_image.height` | `items.${number}.featured_image.width` | `items.${number}.options_with_values.${number}` | `items.${number}.options_with_values.${number}.value` | `items.${number}.options_with_values.${number}.name` | `items.${number}.line_level_discount_allocations.${number}` | `items.${number}.line_level_discount_allocations.${number}.amount` | `items.${number}.line_level_discount_allocations.${number}.discount_application` | `items.${number}.line_level_discount_allocations.${number}.discount_application.title` | `items.${number}.line_level_discount_allocations.${number}.discount_application.value` | `items.${number}.line_level_discount_allocations.${number}.discount_application.description` | `items.${number}.line_level_discount_allocations.${number}.discount_application.target_selection` | `items.${number}.line_level_discount_allocations.${number}.discount_application.target_type` | `items.${number}.line_level_discount_allocations.${number}.discount_application.total_allocated_amount` | `items.${number}.line_level_discount_allocations.${number}.discount_application.type` | `items.${number}.line_level_discount_allocations.${number}.discount_application.value_type` | `items.${number}.properties_array.${number}` | `items.${number}.properties_array.${number}.value` | `items.${number}.properties_array.${number}.key` | `items.${number}.private_properties.${string}` | `items.${number}.private_properties_array.${number}` | `items.${number}.private_properties_array.${number}.value` | `items.${number}.private_properties_array.${number}.key` | `items.${number}.public_properties.${string}` | `items.${number}.public_properties_array.${number}` | `items.${number}.public_properties_array.${number}.value` | `items.${number}.public_properties_array.${number}.key` | `cart_level_discount_applications.${number}` | `cart_level_discount_applications.${number}.title` | `cart_level_discount_applications.${number}.value` | `cart_level_discount_applications.${number}.description` | `cart_level_discount_applications.${number}.target_selection` | `cart_level_discount_applications.${number}.target_type` | `cart_level_discount_applications.${number}.total_allocated_amount` | `cart_level_discount_applications.${number}.type` | `cart_level_discount_applications.${number}.value_type` | `attributes_array.${number}` | `attributes_array.${number}.value` | `attributes_array.${number}.key` | `private_attributes.${string}` | `private_attributes_array.${number}` | `private_attributes_array.${number}.value` | `private_attributes_array.${number}.key` | `public_attributes.${string}` | `public_attributes_array.${number}` | `public_attributes_array.${number}.value` | `public_attributes_array.${number}.key`>;