@fasttrack-solutions/rewards 1.49.0-beta.0 → 1.49.2-beta.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
|
@@ -143,9 +143,10 @@ Everything goes under `window.fasttrack`:
|
|
|
143
143
|
| Event on `window` | When |
|
|
144
144
|
| --- | --- |
|
|
145
145
|
| `ft-rewards-ready` | Rewards started and is on for this player. |
|
|
146
|
-
| `ft-config-error` | The start stopped. `event.detail.reason` is `'disabled'` (Rewards is off for this player)
|
|
146
|
+
| `ft-config-error` | The start stopped, or Rewards was turned off for this player. `event.detail.reason` is `'disabled'` (Rewards is off for this player) or `'unauthenticated'` (the backend refused the token). An event without a `reason` means the start failed; only that is an error, and `window.ftRewardsError.reason` is then `'failed'`. |
|
|
147
147
|
| `ft-rewards-signed-out` | The player logged out. |
|
|
148
|
-
|
|
148
|
+
|
|
149
|
+
To open or close the rewards modal from your own code, dispatch `show-my-rewards` or `close-my-rewards` on `window`, for example `window.dispatchEvent(new CustomEvent('show-my-rewards'))`. They are commands, not notifications: closing the modal with its close button or Escape fires neither.
|
|
149
150
|
|
|
150
151
|
The [front-end integration guide](https://www.fasttrack.ai/en/resources/integration/rewards/front-end-integration)
|
|
151
152
|
describes the components, their attributes and styling in full.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Ar as e, t } from "./sdkCallback-
|
|
1
|
+
import { Ar as e, t } from "./sdkCallback-CPnrRAKo.js";
|
|
2
2
|
//#region node_modules/.pnpm/gsap@3.15.0/node_modules/gsap/gsap-core.js
|
|
3
3
|
function n(e) {
|
|
4
4
|
if (e === void 0) throw ReferenceError("this hasn't been initialised - super() hasn't been called");
|