@car-cutter/next-webplayer 0.9.0 → 0.11.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/dist/index.d.ts CHANGED
@@ -44,15 +44,15 @@ export declare const EVENT_ITEM_CHANGE = "item-change";
44
44
  /**
45
45
  * Generates a URL for fetching the composition JSON for a given customer and vehicle.
46
46
  *
47
- * @param {string} hashedCustomerId - The ID of the customer (hashed with SHA-256).
47
+ * @param {string} customerToken - The CarCutter Customer Token (computed by hasing the Customer ID with SHA-256).
48
48
  * @param {string} vin - The Vehicle Identification Number.
49
49
  * @returns {string} The URL to fetch the composition JSON.
50
50
  */
51
51
  export declare function generateCompositionUrl(
52
- hashedCustomerId: string,
52
+ customerToken: string,
53
53
  vin: string
54
54
  ): string {
55
- return `https://cdn.car-cutter.com/gallery/${hashedCustomerId}/${vin}/composition_v3.json`;
55
+ return `https://cdn.car-cutter.com/gallery/${customerToken}/${vin}/composition_v3.json`;
56
56
  }
57
57
 
58
58
  declare type Hotspot = {
package/dist/legacy.d.ts CHANGED
@@ -47,15 +47,15 @@ export declare const EVENT_ITEM_CHANGE = "item-change";
47
47
  /**
48
48
  * Generates a URL for fetching the composition JSON for a given customer and vehicle.
49
49
  *
50
- * @param {string} hashedCustomerId - The ID of the customer (hashed with SHA-256).
50
+ * @param {string} customerToken - The CarCutter Customer Token (computed by hasing the Customer ID with SHA-256).
51
51
  * @param {string} vin - The Vehicle Identification Number.
52
52
  * @returns {string} The URL to fetch the composition JSON.
53
53
  */
54
54
  export declare function generateCompositionUrl(
55
- hashedCustomerId: string,
55
+ customerToken: string,
56
56
  vin: string
57
57
  ): string {
58
- return `https://cdn.car-cutter.com/gallery/${hashedCustomerId}/${vin}/composition_v3.json`;
58
+ return `https://cdn.car-cutter.com/gallery/${customerToken}/${vin}/composition_v3.json`;
59
59
  }
60
60
 
61
61
  declare type Hotspot = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@car-cutter/next-webplayer",
3
- "version": "0.9.0",
3
+ "version": "0.11.0",
4
4
  "license": "Apache-2.0",
5
5
  "author": {
6
6
  "name": "CarCutter",
@@ -41,7 +41,7 @@
41
41
  "analyze": "vite-bundle-visualizer"
42
42
  },
43
43
  "dependencies": {
44
- "@car-cutter/react-webplayer": "0.9.0"
44
+ "@car-cutter/react-webplayer": "0.11.0"
45
45
  },
46
46
  "peerDependencies": {
47
47
  "next": ">=10"