@xsolla/backpack-js 1.8.0 → 1.9.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 +1 -1
- package/dist/backpack-js.js +25949 -25373
- package/dist/backpack-js.umd.cjs +435 -425
- package/dist/types.d.ts +3 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -42,7 +42,7 @@ Set `openItem` / `open-item` to open that inventory item as the element loads, w
|
|
|
42
42
|
|
|
43
43
|
The action wheel shows the item's 2D artwork in the middle. An embed can put the 3D model there instead with `enableWheel3dModel` / `enable-wheel-3d-model`, which is off by default: the viewer is a WebGL canvas that keeps rendering for as long as the wheel is open, and it takes frames the wheel's own spin and drag need. Item details is unaffected either way and always shows the model.
|
|
44
44
|
|
|
45
|
-
Xsolla Metrika analytics is
|
|
45
|
+
Xsolla Metrika analytics is on by default. Pass your project ID as `externalId` / `external-id` so every Backpack event carries it as `eid`. Metrika builds a device fingerprint, so collecting that is your call as the owner of the user's consent: without it, turn analytics off with `enableAnalytics = false` / `enable-analytics="false"`. Removing the attribute turns it back on. If your page already runs Metrika, Backpack reuses that instance, so initialise it before the element mounts. Otherwise Backpack starts its own, with automatic page tracking off. `external-id` does nothing while analytics is off.
|
|
46
46
|
|
|
47
47
|
Hosts can refresh or remount the mounted Backpack without reloading their page:
|
|
48
48
|
|