@zonos/elements 1.2.4-alpha.1 → 1.2.4-alpha.2

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.
@@ -36,11 +36,19 @@ export const formattedUrl = ({ branchName, inCI: _inCI, inVercel: _inVercel, isV
36
36
  // url: zonos-elements-serverless-git-something
37
37
  domainOnlyUrl.includes('serverless-git');
38
38
  if (branchName === 'qa' && isServerless) {
39
- // qa branch for the API is not versioned, should always use the latest version
40
- return `https://${domainOnlyUrl}`;
39
+ // qa branch for the API is not versioned, should always has alpha prefix
40
+ return `https://alpha.${domainOnlyUrl}`;
41
41
  }
42
- // only run this in Vercel (not production and alpha/qa branch)
42
+ const isTest =
43
+ // url: test.js.zonos.com
44
+ domainOnlyUrl.includes('test.') ||
45
+ // url: zonos-elements-test-git-something
46
+ domainOnlyUrl.includes('test-git') ||
47
+ // url: something.preview.js.zonos.com (this is only applicable on preview deployment of `zonos-elements` and `zonos-elements-test`)
48
+ domainOnlyUrl.includes('preview.js.zonos.com');
49
+ // always use vercel url if in vercel env, non-production branch (not qa or main branch) or the domain using is a test url
43
50
  if ((_isVercelPreview && !isProdBranch) ||
51
+ isTest ||
44
52
  (_inVercel && type === 'vercel-git')) {
45
53
  // use vercel branch_url instead of the production url
46
54
  if (!branchName) {
@@ -52,13 +60,6 @@ export const formattedUrl = ({ branchName, inCI: _inCI, inVercel: _inVercel, isV
52
60
  domainOnlyUrl.includes('storybook.js') ||
53
61
  // url: zonos-elements-storybook-git-something
54
62
  domainOnlyUrl.includes('storybook-git');
55
- const isTest =
56
- // url: test.js.zonos.com
57
- domainOnlyUrl.includes('test.') ||
58
- // url: zonos-elements-test-git-something
59
- domainOnlyUrl.includes('test-git') ||
60
- // url: something.preview.js.zonos.com (this is only applicable on preview deployment of `zonos-elements` and `zonos-elements-test`)
61
- domainOnlyUrl.includes('preview.js.zonos.com');
62
63
  const projectName = isStorybook
63
64
  ? 'zonos-elements-storybook'
64
65
  : isServerless
@@ -198,8 +198,8 @@ const zonosQaUrl = (() => {
198
198
  });
199
199
  return fullUrl;
200
200
  })();
201
- const ZONOS_URL = zonosQaUrl || "https://v1.2.4-alpha.1.js.zonos.com";
202
- const UNPKG_ZONOS_URL = "https://unpkg.com/@zonos/elements@1.2.4-alpha.1";
201
+ const ZONOS_URL = zonosQaUrl || "https://v1.2.4-alpha.2.js.zonos.com";
202
+ const UNPKG_ZONOS_URL = "https://unpkg.com/@zonos/elements@1.2.4-alpha.2";
203
203
  const INTER_FONT_URL = 'https://rsms.me';
204
204
  const GOOGLE_FONT_URL = 'https://fonts.googleapis.com';
205
205
  const INTER_FONT_REGEX = /^https:\/\/rsms\.me\/inter\/inter\.css(.*)$/;
@@ -212,7 +212,7 @@ Zonos.debug = !!window.location.search.match(/\?.*(&*)zonosDebug=1/);
212
212
  Zonos.isBigCommerce = false;
213
213
  Zonos.internationalHideSelector = '';
214
214
  Zonos.zonosQaUrl = zonosQaUrl;
215
- Zonos.version = `v${"1.2.4-alpha.1"}`;
215
+ Zonos.version = `v${"1.2.4-alpha.2"}`;
216
216
  Zonos.modeAlerted = false;
217
217
  Zonos.getCurrentTimestamp = () => new Date().getTime();
218
218
  Zonos.zonosController = null;
@@ -198,8 +198,8 @@ const zonosQaUrl = (() => {
198
198
  });
199
199
  return fullUrl;
200
200
  })();
201
- const ZONOS_URL = zonosQaUrl || "https://v1.2.4-alpha.1.js.zonos.com";
202
- const UNPKG_ZONOS_URL = "https://unpkg.com/@zonos/elements@1.2.4-alpha.1";
201
+ const ZONOS_URL = zonosQaUrl || "https://v1.2.4-alpha.2.js.zonos.com";
202
+ const UNPKG_ZONOS_URL = "https://unpkg.com/@zonos/elements@1.2.4-alpha.2";
203
203
  const INTER_FONT_URL = 'https://rsms.me';
204
204
  const GOOGLE_FONT_URL = 'https://fonts.googleapis.com';
205
205
  const INTER_FONT_REGEX = /^https:\/\/rsms\.me\/inter\/inter\.css(.*)$/;
@@ -212,7 +212,7 @@ Zonos.debug = !!window.location.search.match(/\?.*(&*)zonosDebug=1/);
212
212
  Zonos.isBigCommerce = false;
213
213
  Zonos.internationalHideSelector = '';
214
214
  Zonos.zonosQaUrl = zonosQaUrl;
215
- Zonos.version = `v${"1.2.4-alpha.1"}`;
215
+ Zonos.version = `v${"1.2.4-alpha.2"}`;
216
216
  Zonos.modeAlerted = false;
217
217
  Zonos.getCurrentTimestamp = () => new Date().getTime();
218
218
  Zonos.zonosController = null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zonos/elements",
3
- "version": "1.2.4-alpha.1",
3
+ "version": "1.2.4-alpha.2",
4
4
  "description": "Zonos component UI for Stripe elements",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.cjs.js",