@scayle/storefront-product-detail 0.1.2 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -70,9 +70,3 @@ Learn more about [SCAYLE’s architecture](https://scayle.dev/en/getting-started
70
70
  [npm-downloads-href]: https://npmjs.com/package/@scayle/storefront-product-detail
71
71
  [license-src]: https://img.shields.io/npm/l/@scayle/storefront-product-detail.svg?style=flat&colorA=18181B&colorB=28CF8D
72
72
  [license-href]: https://npmjs.com/package/@scayle/storefront-product-detail
73
-
74
- ## License
75
-
76
- Licensed under the [MIT License](https://opensource.org/license/mit/)
77
-
78
- ---
@@ -2,20 +2,17 @@ import { type ComputedRef } from 'vue';
2
2
  import type { BreadcrumbItem, Variant } from '@scayle/storefront-nuxt';
3
3
  import type { WithContext, Product, BreadcrumbList } from 'schema-dts';
4
4
  type CanonicalLink = Record<'rel' | 'key' | 'href', string>;
5
- interface UrlParams {
6
- baseUrl: string;
7
- fullPath: string;
8
- }
5
+ type UrlParams = Record<'baseUrl' | 'fullPath', string>;
9
6
  interface ProductInfo {
10
7
  name: string;
11
8
  brand: string;
12
9
  productDescription: string;
13
10
  variants: Variant[];
14
11
  }
15
- interface UseProductSeoDataReturn {
12
+ export interface UseProductSeoDataReturn {
13
+ title: string;
16
14
  robots: string;
17
15
  canonicalLink: ComputedRef<CanonicalLink[]>;
18
- title: string;
19
16
  productJsonLd: ComputedRef<WithContext<Product>>;
20
17
  productBreadcrumbJsonLd: ComputedRef<WithContext<BreadcrumbList>>;
21
18
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scayle/storefront-product-detail",
3
- "version": "0.1.2",
3
+ "version": "0.2.0",
4
4
  "description": "Collection of essential composables and utilities to work with product detail",
5
5
  "author": "SCAYLE Commerce Engine",
6
6
  "license": "MIT",