@foo-software/content 0.1.404 → 0.1.408

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.
@@ -1 +1 @@
1
- "use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=exports.contentByLanguage=exports.DEFAULT_LANGUAGE=void 0;var _lodash=_interopRequireDefault(require("lodash.get")),en=_interopRequireWildcard(require("./en"));function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var cache=new WeakMap;return _getRequireWildcardCache=function(){return cache},cache}function _interopRequireWildcard(obj){if(obj&&obj.__esModule)return obj;if(null===obj||"object"!==_typeof(obj)&&"function"!=typeof obj)return{default:obj};var cache=_getRequireWildcardCache();if(cache&&cache.has(obj))return cache.get(obj);var newObj={},hasPropertyDescriptor=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var key in obj)if(Object.prototype.hasOwnProperty.call(obj,key)){var desc=hasPropertyDescriptor?Object.getOwnPropertyDescriptor(obj,key):null;desc&&(desc.get||desc.set)?Object.defineProperty(newObj,key,desc):newObj[key]=obj[key]}return newObj.default=obj,cache&&cache.set(obj,newObj),newObj}function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var DEFAULT_LANGUAGE="en";exports.DEFAULT_LANGUAGE=DEFAULT_LANGUAGE;var contentByLanguage={en:en};exports.contentByLanguage=contentByLanguage;var _default=function(_ref){var contentCode=_ref.contentCode,contentKey=_ref.contentKey,data=_ref.data,language=_ref.language,content=(0,_lodash.default)(contentByLanguage,"[".concat(language||DEFAULT_LANGUAGE,"][").concat(contentKey,"]"),null);return data&&content&&content.get?content.get(data):contentCode?"".concat(content," [").concat(contentCode,"]"):content};exports.default=_default;
1
+ "use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=exports.contentByLanguage=exports.DEFAULT_LANGUAGE=void 0;var _lodash=_interopRequireDefault(require("lodash.get")),en=_interopRequireWildcard(require("./en"));function _getRequireWildcardCache(nodeInterop){if("function"!=typeof WeakMap)return null;var cacheBabelInterop=new WeakMap,cacheNodeInterop=new WeakMap;return(_getRequireWildcardCache=function(nodeInterop){return nodeInterop?cacheNodeInterop:cacheBabelInterop})(nodeInterop)}function _interopRequireWildcard(obj,nodeInterop){if(!nodeInterop&&obj&&obj.__esModule)return obj;if(null===obj||"object"!==_typeof(obj)&&"function"!=typeof obj)return{default:obj};var cache=_getRequireWildcardCache(nodeInterop);if(cache&&cache.has(obj))return cache.get(obj);var desc,newObj={},hasPropertyDescriptor=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var key in obj){"default"!==key&&Object.prototype.hasOwnProperty.call(obj,key)&&((desc=hasPropertyDescriptor?Object.getOwnPropertyDescriptor(obj,key):null)&&(desc.get||desc.set)?Object.defineProperty(newObj,key,desc):newObj[key]=obj[key])}return newObj.default=obj,cache&&cache.set(obj,newObj),newObj}function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var DEFAULT_LANGUAGE="en";exports.DEFAULT_LANGUAGE=DEFAULT_LANGUAGE;var contentByLanguage={en:en};exports.contentByLanguage=contentByLanguage;var _default=function(_ref){var contentCode=_ref.contentCode,contentKey=_ref.contentKey,data=_ref.data,language=_ref.language,content=(0,_lodash.default)(contentByLanguage,"[".concat(language||DEFAULT_LANGUAGE,"][").concat(contentKey,"]"),null);return data&&content&&content.get?content.get(data):contentCode?"".concat(content," [").concat(contentCode,"]"):content};exports.default=_default;
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- "use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"getContent",{enumerable:!0,get:function(){return _getContent.default}}),Object.defineProperty(exports,"DEFAULT_LANGUAGE",{enumerable:!0,get:function(){return _getContent.DEFAULT_LANGUAGE}}),exports.en=void 0;var en=_interopRequireWildcard(require("./en"));exports.en=en;var _getContent=_interopRequireWildcard(require("./getContent"));function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var cache=new WeakMap;return _getRequireWildcardCache=function(){return cache},cache}function _interopRequireWildcard(obj){if(obj&&obj.__esModule)return obj;if(null===obj||"object"!==_typeof(obj)&&"function"!=typeof obj)return{default:obj};var cache=_getRequireWildcardCache();if(cache&&cache.has(obj))return cache.get(obj);var newObj={},hasPropertyDescriptor=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var key in obj)if(Object.prototype.hasOwnProperty.call(obj,key)){var desc=hasPropertyDescriptor?Object.getOwnPropertyDescriptor(obj,key):null;desc&&(desc.get||desc.set)?Object.defineProperty(newObj,key,desc):newObj[key]=obj[key]}return newObj.default=obj,cache&&cache.set(obj,newObj),newObj}
1
+ "use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"DEFAULT_LANGUAGE",{enumerable:!0,get:function(){return _getContent.DEFAULT_LANGUAGE}}),exports.en=void 0,Object.defineProperty(exports,"getContent",{enumerable:!0,get:function(){return _getContent.default}});var en=_interopRequireWildcard(require("./en"));exports.en=en;var _getContent=_interopRequireWildcard(require("./getContent"));function _getRequireWildcardCache(nodeInterop){if("function"!=typeof WeakMap)return null;var cacheBabelInterop=new WeakMap,cacheNodeInterop=new WeakMap;return(_getRequireWildcardCache=function(nodeInterop){return nodeInterop?cacheNodeInterop:cacheBabelInterop})(nodeInterop)}function _interopRequireWildcard(obj,nodeInterop){if(!nodeInterop&&obj&&obj.__esModule)return obj;if(null===obj||"object"!==_typeof(obj)&&"function"!=typeof obj)return{default:obj};var cache=_getRequireWildcardCache(nodeInterop);if(cache&&cache.has(obj))return cache.get(obj);var desc,newObj={},hasPropertyDescriptor=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var key in obj){"default"!==key&&Object.prototype.hasOwnProperty.call(obj,key)&&((desc=hasPropertyDescriptor?Object.getOwnPropertyDescriptor(obj,key):null)&&(desc.get||desc.set)?Object.defineProperty(newObj,key,desc):newObj[key]=obj[key])}return newObj.default=obj,cache&&cache.set(obj,newObj),newObj}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@foo-software/content",
3
- "version": "0.1.404",
3
+ "version": "0.1.408",
4
4
  "description": "Content for Foo",
5
5
  "main": "dist/index.js",
6
6
  "module": "src/index.js",
@@ -8,10 +8,12 @@
8
8
  "license": "UNLICENSED",
9
9
  "scripts": {
10
10
  "build": "npm run transpile && npm run minify:js:en && npm run minify:js:getContent && npm run minify:js:index",
11
+ "clean": "rimraf dist",
11
12
  "transpile": "npx babel src --out-dir dist",
12
13
  "minify:js:en": "npx uglifyjs dist/en.js -o dist/en.js -c",
13
14
  "minify:js:getContent": "npx uglifyjs dist/getContent.js -o dist/getContent.js -c",
14
- "minify:js:index": "npx uglifyjs dist/index.js -o dist/index.js -c"
15
+ "minify:js:index": "npx uglifyjs dist/index.js -o dist/index.js -c",
16
+ "prepare": "npm run clean && npm run build"
15
17
  },
16
18
  "dependencies": {
17
19
  "lodash.get": "^4.4.2"
@@ -20,7 +22,8 @@
20
22
  "@babel/cli": "^7.2.3",
21
23
  "@babel/core": "^7.2.2",
22
24
  "@babel/preset-env": "^7.2.3",
25
+ "rimraf": "^2.6.3",
23
26
  "uglify-js": "^3.4.9"
24
27
  },
25
- "gitHead": "0143779ab980d851ba986a4dbb6a4b6a609dba25"
28
+ "gitHead": "e086c5a3bc1d14f62e998a16bdcd7c099521e2b3"
26
29
  }
package/src/en.js CHANGED
@@ -1,16 +1,16 @@
1
1
  export const EMAIL_TEMPLATE_ACCOUNT_CANCEL_CTA = 'Come back again!';
2
- export const EMAIL_TEMPLATE_ACCOUNT_CANCEL_HEADLINE = 'Account Canceled';
2
+ export const EMAIL_TEMPLATE_ACCOUNT_CANCEL_HEADLINE = 'Account Cancelled';
3
3
  export const EMAIL_TEMPLATE_ACCOUNT_CANCEL_MAIN = {
4
4
  get: ({ accountName }) =>
5
- `Sorry to see you go! "${accountName}" has been canceled. A prorated refund will be issued shortly (if applicable). Feel free to contact us with any questions.`,
5
+ `Sorry to see you go! "${accountName}" has been cancelled. A prorated refund will be issued shortly (if applicable). Feel free to contact us with any questions.`,
6
6
  };
7
- export const EMAIL_TEMPLATE_ACCOUNT_CANCEL_SUBJECT = 'Account Canceled';
7
+ export const EMAIL_TEMPLATE_ACCOUNT_CANCEL_SUBJECT = 'Account Cancelled';
8
8
  export const EMAIL_TEMPLATE_ACCOUNT_USER_ADDED_CTA =
9
9
  'Manage your accounts here.';
10
10
  export const EMAIL_TEMPLATE_ACCOUNT_USER_ADDED_HEADLINE = `You're Added!`;
11
11
  export const EMAIL_TEMPLATE_ACCOUNT_USER_ADDED_MAIN = {
12
12
  get: ({ accountName }) =>
13
- `You've been added to "${accountName}" Foo account.`,
13
+ `You've been added to "${accountName}" account.`,
14
14
  };
15
15
  export const EMAIL_TEMPLATE_ACCOUNT_USER_ADDED_SUBJECT = `You Have Been Added`;
16
16
  export const EMAIL_TEMPLATE_ACCOUNT_USER_INVITED_CTA =
@@ -18,7 +18,7 @@ export const EMAIL_TEMPLATE_ACCOUNT_USER_INVITED_CTA =
18
18
  export const EMAIL_TEMPLATE_ACCOUNT_USER_INVITED_HEADLINE = `You're Invited!`;
19
19
  export const EMAIL_TEMPLATE_ACCOUNT_USER_INVITED_MAIN = {
20
20
  get: ({ accountName }) =>
21
- `You've been invited to "${accountName}" Foo account.`,
21
+ `You've been invited to "${accountName}" account.`,
22
22
  };
23
23
  export const EMAIL_TEMPLATE_ACCOUNT_USER_INVITED_SUBJECT = `You Have Been Invited`;
24
24
  export const EMAIL_TEMPLATE_ACCOUNT_USER_REMOVED_CONFIRMATION_CTA =
@@ -36,14 +36,16 @@ export const EMAIL_TEMPLATE_EMAIL_CONFIRM =
36
36
  export const EMAIL_TEMPLATE_EMAIL_CONFIRM_CTA = 'Click here to confirm.';
37
37
  export const EMAIL_TEMPLATE_EMAIL_CONFIRM_HEADLINE = 'Email Confirm';
38
38
  export const EMAIL_TEMPLATE_EMAIL_CONFIRM_SUBJECT =
39
- 'Confirm Your Email with Foo';
39
+ 'Confirm Your Email';
40
40
  export const EMAIL_TEMPLATE_EMAIL_ALERT_CONFIRM_CTA = 'Click here to confirm.';
41
41
  export const EMAIL_TEMPLATE_EMAIL_ALERT_CONFIRM_HEADLINE = 'Confirm';
42
42
  export const EMAIL_TEMPLATE_EMAIL_ALERT_CONFIRM_MAIN =
43
- 'Please confirm this email as an alert for Foo. This email will be notified with status updates as they occur.';
43
+ 'Please confirm this email as an alert. This email will be notified with status updates as they occur.';
44
44
  export const EMAIL_TEMPLATE_EMAIL_ALERT_CONFIRM_SUBJECT = 'Email Alert Confirm';
45
45
  export const EMAIL_TEMPLATE_ID_ACCOUNT_CANCEL =
46
46
  'd-5d850cea0d6e4262aea1677d5a4e45dc';
47
+ export const EMAIL_TEMPLATE_ID_ACCOUNT_CANCEL_LASER_VISION =
48
+ 'd-cd6c42d359fc4805b900bcf4bbdee8be';
47
49
  export const EMAIL_TEMPLATE_ID_ACCOUNT_USER_ADDED =
48
50
  'd-ff5d8e55aace43cca73583ac4e54ca81';
49
51
  export const EMAIL_TEMPLATE_ID_ACCOUNT_USER_INVITED =
@@ -54,6 +56,8 @@ export const EMAIL_TEMPLATE_ID_EMAIL_ALERT_CONFIRM =
54
56
  'd-f0e2fe2890ed47b5811c20812587a1cb';
55
57
  export const EMAIL_TEMPLATE_ID_EMAIL_CONFIRM =
56
58
  'd-044e308ea69741c7b9349d9970ec48f6';
59
+ export const EMAIL_TEMPLATE_ID_EMAIL_CONFIRM_LASER_VISION =
60
+ 'd-d22594905d2646318ec975b595a99bf2';
57
61
  export const EMAIL_TEMPLATE_ID_FREE_USER_UPSELL =
58
62
  'd-01c4d06fc8fc4936b8f777c15b105820';
59
63
  export const EMAIL_TEMPLATE_ID_INVITE_ACCEPTED =
@@ -64,15 +68,25 @@ export const EMAIL_TEMPLATE_ID_PAGE_ALERT_UNHEALTHY =
64
68
  'd-eca574ba0dfa4fe59be8f29a2b32424d';
65
69
  export const EMAIL_TEMPLATE_ID_PASSWORD_RESET =
66
70
  'd-e4f89c8943d9436c95fe2aae3e07a312';
71
+ export const EMAIL_TEMPLATE_ID_PASSWORD_RESET_LASER_VISION =
72
+ 'd-6ff8188c69074ad5adf50d936cbedf41'
67
73
  export const EMAIL_TEMPLATE_ID_SUBSCRIPTION_CREATED =
68
74
  'd-2c0dbb1acd7045ae8ff7879015cbbd91';
75
+ export const EMAIL_TEMPLATE_ID_SUBSCRIPTION_CREATED_LASER_VISION =
76
+ 'd-b2d99808c6a34534a80dc0dbbe8d1395';
69
77
  export const EMAIL_TEMPLATE_ID_SUBSCRIPTION_UPGRADED =
70
78
  'd-e32c0427ea4241678eda50b86f99903c';
79
+ export const EMAIL_TEMPLATE_ID_SUBSCRIPTION_UPGRADED_LASER_VISION =
80
+ 'd-ff7db3726e024ef58fdc820f495bcfff';
71
81
  export const EMAIL_TEMPLATE_ID_SUBSCRIPTION_PAYMENT_PAST_DUE =
72
82
  'd-ae7346390e2c42b69414c51f725aace9';
83
+ export const EMAIL_TEMPLATE_ID_SUBSCRIPTION_PAYMENT_PAST_DUE_LASER_VISION =
84
+ 'd-8e77dbdd86e3487a9983ffdca300e043';
73
85
  export const EMAIL_TEMPLATE_ID_TOGGLES_DAILY_API_LIMIT_EXCEEDED =
74
86
  'd-ec509d14b84f4515a59b0935d53f3529';
75
87
  export const EMAIL_TEMPLATE_ID_WELCOME = 'd-ccb4f0689c484dda8f2ffc3c41c9b649';
88
+ export const EMAIL_TEMPLATE_ID_WELCOME_LASER_VISION =
89
+ 'd-35aecf7b65ac4402bf049561c03a37f5';
76
90
  export const EMAIL_TEMPLATE_INVITE_ACCEPTED_CTA = 'See all users.';
77
91
  export const EMAIL_TEMPLATE_INVITE_ACCEPTED_HEADLINE = 'Invite Accepted';
78
92
  export const EMAIL_TEMPLATE_INVITE_ACCEPTED_MAIN = {
@@ -173,7 +187,7 @@ export const EMAIL_TEMPLATE_TOGGLES_DAILY_API_LIMIT_EXCEEDED_SUBJECT =
173
187
  export const EMAIL_TEMPLATE_WELCOME_HEADLINE = 'Welcome!';
174
188
  export const EMAIL_TEMPLATE_WELCOME_MAIN = 'Thanks for registering.';
175
189
  export const EMAIL_TEMPLATE_WELCOME_SUBJECT =
176
- 'Thanks for Registering with Foo - Please Confirm Email';
190
+ 'Thanks for Registering with - Please Confirm Email';
177
191
  export const ERROR_AB_VARIATION_MAX =
178
192
  'A maximum of 10 variations is supported.';
179
193
  export const ERROR_AB_VARIATION_REQUIRED_FIELDS =
package/index.js DELETED
File without changes