@uptick-ads/react-native-web-sdk 0.2.9 → 0.3.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
@@ -66,7 +66,7 @@ They travel in the URL fragment, which is never sent to a server, so they do not
66
66
 
67
67
  ### Events
68
68
 
69
- `callback` receives the web SDK's lifecycle events with the same names and payloads: `init`, `flow_initialized`, `flow_delayed`, `offer_requested`, `offer_viewed`, `offer_accepted`, `offer_rejected`, `flow_complete`, plus `flow_hidden` when the user closes the offer.
69
+ `callback` receives the web SDK's lifecycle events with the same names and payloads: `init`, `flow_initialized`, `flow_delayed`, `offer_requested`, `offer_viewed`, `offer_accepted`, `offer_rejected`, `flow_complete`, and `flow_closed` when the user closes the offer.
70
70
  The component adds `render_type` (`{ rendered: "inline" | "popup" }`) once the first offer renders, `popup_dismissed`, `webview_error`, `webview_http_error` and `open_url_failed`.
71
71
 
72
72
  ## How click-out works
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uptick-ads/react-native-web-sdk",
3
- "version": "0.2.9",
3
+ "version": "0.3.0",
4
4
  "description": "React Native component that runs the Uptick web SDK inside a WebView, inline or as a popup, with the web integration's parameters",
5
5
  "keywords": [
6
6
  "uptick",
package/src/UptickFlow.js CHANGED
@@ -9,7 +9,7 @@ const MAX_HEIGHT = 1400;
9
9
 
10
10
  // Messages from the host page that the component acts on itself; every message is also forwarded to `callback`.
11
11
  const SHOW_EVENTS = ["offer_viewed"];
12
- const HIDE_EVENTS = ["flow_complete", "flow_hidden"];
12
+ const HIDE_EVENTS = ["flow_complete", "flow_closed"];
13
13
 
14
14
  const FILL = { position: "absolute", top: 0, left: 0, right: 0, bottom: 0 };
15
15
 
package/src/version.js CHANGED
@@ -1,2 +1,2 @@
1
1
  // Kept in step with package.json by the release pipeline; the API records it on every event as integration_version.
2
- export const version = "0.2.9";
2
+ export const version = "0.3.0";