shopar-plugin 1.2.0-alpha.0 → 1.2.0-alpha.1

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
@@ -270,6 +270,12 @@ Options used for the plugin setup:
270
270
  - `loading.ar`: `Loading Try On...`
271
271
  - `loading.3d`: `Loading 3D...`
272
272
  - `prompt.ar.{category}`: undefined
273
+ - `onFirstAREngagement` (optional)
274
+ - Type: `function`
275
+ - If provided, it will be called the first time the user's subject is detected in AR (e.g. face, feet, wrist). Fires only once per setup.
276
+ - `onFirst3DEngagement` (optional)
277
+ - Type: `function`
278
+ - If provided, it will be called the first time the user engages with the 3D view (rotate, pan or zoom). Fires only once per setup.
273
279
  - `debounceAREngagementMs` (optional)
274
280
  - Type: `number`
275
281
  - If provided, it will be used as the debounce duration for debounced AR engagement tracking.
@@ -373,6 +373,16 @@ type SetupOptions = {
373
373
  * ]
374
374
  */
375
375
  initialAnimation?: KeyFrameConfig[] | string;
376
+ /**
377
+ * If provided, it will be called the first time the user's subject is detected in AR (e.g. face, feet, wrist).
378
+ * It fires only once per setup.
379
+ */
380
+ onFirstAREngagement?: () => void;
381
+ /**
382
+ * If provided, it will be called the first time the user engages with the 3D view (rotate, pan or zoom).
383
+ * It fires only once per setup.
384
+ */
385
+ onFirst3DEngagement?: () => void;
376
386
  /**
377
387
  * If provided, it will be used as the debounce duration for debounced AR engagement tracking.
378
388
  *