@mindful-web/marko-web-omeda-identity-x 1.89.2 → 1.90.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.
@@ -2,7 +2,7 @@
2
2
  "use strict";
3
3
 
4
4
  var marko_template = module.exports = require("marko/dist/html").t(__filename),
5
- marko_componentType = "/@mindful-web/marko-web-omeda-identity-x$1.89.2/components/identify.marko",
5
+ marko_componentType = "/@mindful-web/marko-web-omeda-identity-x$1.90.0/components/identify.marko",
6
6
  marko_component = require("./identify.marko"),
7
7
  marko_renderer = require("marko/dist/runtime/components/renderer"),
8
8
  module_getCookieId = require("@mindful-web/marko-web-omeda-identity-x/utils/get-cookie-id"),
@@ -51,7 +51,7 @@ marko_template._ = marko_renderer(render, {
51
51
  }, marko_component);
52
52
 
53
53
  marko_template.meta = {
54
- id: "/@mindful-web/marko-web-omeda-identity-x$1.89.2/components/identify.marko",
54
+ id: "/@mindful-web/marko-web-omeda-identity-x$1.90.0/components/identify.marko",
55
55
  component: "./identify.marko",
56
56
  tags: [
57
57
  "@mindful-web/marko-web-identity-x/components/identify.marko",
@@ -15,6 +15,7 @@ const { get } = require('@mindful-web/object-path');
15
15
  * @param {string} [params.comments='Comments']
16
16
  * @param {object} [params.contentMeterLogin]
17
17
  * @param {string} [params.contentGate='HardGate']
18
+ * @param {string} [params.googleOneTap='GoogleOneTap']
18
19
  * @param {object} [params.req]
19
20
  * @returns {string}
20
21
  */
@@ -36,6 +37,10 @@ module.exports = ({
36
37
  overlay: 'MeterGate',
37
38
  },
38
39
  contentGate = 'HardGate',
40
+ // Google Sign-In. `routes/google.js` uses one `loginSource` for both of its
41
+ // surfaces (the One-Tap prompt and the rendered button), so this single code
42
+ // covers both.
43
+ googleOneTap = 'GoogleOneTap',
39
44
  req,
40
45
  }) => {
41
46
  if (get(req, 'cookies.omeda_promo_code')) return get(req, 'cookies.omeda_promo_code');
@@ -53,6 +58,8 @@ module.exports = ({
53
58
  return `${promoCodePrefix}${contentMeterLogin.default}`;
54
59
  case 'contentGate':
55
60
  return `${promoCodePrefix}${contentGate}`;
61
+ case 'google-one-tap':
62
+ return `${promoCodePrefix}${googleOneTap}`;
56
63
  default:
57
64
  return `${promoCodePrefix}${defaultPromoCode}`;
58
65
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mindful-web/marko-web-omeda-identity-x",
3
- "version": "1.89.2",
3
+ "version": "1.90.0",
4
4
  "description": "Marko Omeda+IdentityX integration tools",
5
5
  "repository": "https://github.com/parameter1/mindful-web/tree/main/packages/marko-web-omeda-identity-x",
6
6
  "author": "Josh Worden <josh@parameter1.com>",
@@ -33,5 +33,5 @@
33
33
  "chai": "^4.3.7",
34
34
  "mocha": "^6.2.3"
35
35
  },
36
- "gitHead": "a813aca477e54e14bc61e5bbb5c77fd7d870ea01"
36
+ "gitHead": "a211cd726396ecc45da80a4571d40d01d5b3f555"
37
37
  }