@economist/web-apple-pay 1.13.0 → 1.14.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
@@ -128,6 +128,7 @@ Consumers should listen for this event and continue payment orchestration.
128
128
  - `DUAL_OFFER_BANNER` (or omitted): always-on after offer exclusions — no homepage/Safari gate at `createIfEnabled` (device gating via `isApplePayAvailable` on mount).
129
129
  - `FREE_TRIAL_BANNER`: same always-on-after-exclusions gate as Dual; wallet impression `entry_point` is `free_trial_banner`.
130
130
  - `FREE_TRIAL_POPUP`: same always-on-after-exclusions gate. Wallet impression `entry_point` is `free_trial_popup`.
131
+ - `SUBSCRIBE`: same always-on-after-exclusions gate for `/subscribe` (sma-checkout); no Amplitude. Wallet impression `entry_point` is `subscribe`.
131
132
  - `PAYWALL`: always-on after offer exclusions + Safari/Apple placement eligibility. No Amplitude experiment / `$exposure`.
132
133
  - `REGWALL`: inert — always returns `null`.
133
134
  - `ApplePayModal`: modal component class.
package/dist/index.js CHANGED
@@ -1952,6 +1952,7 @@ var ApplePayEntryPoint = /* @__PURE__ */ ((ApplePayEntryPoint2) => {
1952
1952
  ApplePayEntryPoint2["DUAL_OFFER_BANNER"] = "dual_offer_banner";
1953
1953
  ApplePayEntryPoint2["FREE_TRIAL_BANNER"] = "free_trial_banner";
1954
1954
  ApplePayEntryPoint2["FREE_TRIAL_POPUP"] = "free_trial_popup";
1955
+ ApplePayEntryPoint2["SUBSCRIBE"] = "subscribe";
1955
1956
  return ApplePayEntryPoint2;
1956
1957
  })(ApplePayEntryPoint || {});
1957
1958
 
@@ -1972,6 +1973,10 @@ var ENTRY_POINT_CONFIG = {
1972
1973
  },
1973
1974
  ["free_trial_popup" /* FREE_TRIAL_POPUP */]: {
1974
1975
  isEligible: () => true
1976
+ },
1977
+ ["subscribe" /* SUBSCRIBE */]: {
1978
+ isEligible: () => true
1979
+ // Always-on after offer exclusions — host (sma-checkout) owns rollout toggle
1975
1980
  }
1976
1981
  };
1977
1982
  var TOTAL_LABEL = "The Economist";
@@ -1957,6 +1957,10 @@ var ENTRY_POINT_CONFIG = {
1957
1957
  },
1958
1958
  ["free_trial_popup" /* FREE_TRIAL_POPUP */]: {
1959
1959
  isEligible: () => true
1960
+ },
1961
+ ["subscribe" /* SUBSCRIBE */]: {
1962
+ isEligible: () => true
1963
+ // Always-on after offer exclusions — host (sma-checkout) owns rollout toggle
1960
1964
  }
1961
1965
  };
1962
1966
  var TOTAL_LABEL = "The Economist";
@@ -1965,6 +1965,10 @@ var ENTRY_POINT_CONFIG = {
1965
1965
  },
1966
1966
  ["free_trial_popup" /* FREE_TRIAL_POPUP */]: {
1967
1967
  isEligible: () => true
1968
+ },
1969
+ ["subscribe" /* SUBSCRIBE */]: {
1970
+ isEligible: () => true
1971
+ // Always-on after offer exclusions — host (sma-checkout) owns rollout toggle
1968
1972
  }
1969
1973
  };
1970
1974
  var TOTAL_LABEL = "The Economist";
@@ -1957,6 +1957,10 @@ var ENTRY_POINT_CONFIG = {
1957
1957
  },
1958
1958
  ["free_trial_popup" /* FREE_TRIAL_POPUP */]: {
1959
1959
  isEligible: () => true
1960
+ },
1961
+ ["subscribe" /* SUBSCRIBE */]: {
1962
+ isEligible: () => true
1963
+ // Always-on after offer exclusions — host (sma-checkout) owns rollout toggle
1960
1964
  }
1961
1965
  };
1962
1966
  var TOTAL_LABEL = "The Economist";
@@ -4,5 +4,7 @@ export declare enum ApplePayEntryPoint {
4
4
  DUAL_OFFER_BANNER = "dual_offer_banner",
5
5
  FREE_TRIAL_BANNER = "free_trial_banner",
6
6
  /** Post-registration free-trial popup. Not Amplitude-gated. */
7
- FREE_TRIAL_POPUP = "free_trial_popup"
7
+ FREE_TRIAL_POPUP = "free_trial_popup",
8
+ /** /subscribe offers page (sma-checkout). Not Amplitude-gated. */
9
+ SUBSCRIBE = "subscribe"
8
10
  }
@@ -5,6 +5,7 @@ var ApplePayEntryPoint = /* @__PURE__ */ ((ApplePayEntryPoint2) => {
5
5
  ApplePayEntryPoint2["DUAL_OFFER_BANNER"] = "dual_offer_banner";
6
6
  ApplePayEntryPoint2["FREE_TRIAL_BANNER"] = "free_trial_banner";
7
7
  ApplePayEntryPoint2["FREE_TRIAL_POPUP"] = "free_trial_popup";
8
+ ApplePayEntryPoint2["SUBSCRIBE"] = "subscribe";
8
9
  return ApplePayEntryPoint2;
9
10
  })(ApplePayEntryPoint || {});
10
11
  export {
package/dist/src/index.js CHANGED
@@ -1952,6 +1952,7 @@ var ApplePayEntryPoint = /* @__PURE__ */ ((ApplePayEntryPoint2) => {
1952
1952
  ApplePayEntryPoint2["DUAL_OFFER_BANNER"] = "dual_offer_banner";
1953
1953
  ApplePayEntryPoint2["FREE_TRIAL_BANNER"] = "free_trial_banner";
1954
1954
  ApplePayEntryPoint2["FREE_TRIAL_POPUP"] = "free_trial_popup";
1955
+ ApplePayEntryPoint2["SUBSCRIBE"] = "subscribe";
1955
1956
  return ApplePayEntryPoint2;
1956
1957
  })(ApplePayEntryPoint || {});
1957
1958
 
@@ -1972,6 +1973,10 @@ var ENTRY_POINT_CONFIG = {
1972
1973
  },
1973
1974
  ["free_trial_popup" /* FREE_TRIAL_POPUP */]: {
1974
1975
  isEligible: () => true
1976
+ },
1977
+ ["subscribe" /* SUBSCRIBE */]: {
1978
+ isEligible: () => true
1979
+ // Always-on after offer exclusions — host (sma-checkout) owns rollout toggle
1975
1980
  }
1976
1981
  };
1977
1982
  var TOTAL_LABEL = "The Economist";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@economist/web-apple-pay",
3
3
  "description": "Web component package for Apple Pay checkout UI",
4
- "version": "1.13.0",
4
+ "version": "1.14.0",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",