@dataships/launcher 0.3.0 → 0.3.1

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,4 +1,4 @@
1
1
  {
2
- "launcher.js": "sha384-vwZeTLLmB6BK/WHxTbkMlHNo/f4TwOZGpTFhCMZdC7bA/LKSl7/Q9jlV6KB6hXLx",
3
- "modules/alia-0.3.0.js": "sha384-xT/0dMdBCmn66PCdLNkknVwj2piQlxI2mc/AjrjFgbBLhXg776dyJRWNftzCB1+N"
2
+ "launcher.js": "sha384-KeYYDjz7cg+4rVIV/Mat2Xc3PVfcrV/yvTdEBixpKnfM6rpqYrTdEQ1NuZ7nNa1X",
3
+ "modules/alia-0.3.1.js": "sha384-IJI/bSn1LfESc4P54YhWMyFJ1ijB0KH+26AfjMvWFI4sai6DDNYSmcOaeas2LviK"
4
4
  }
package/dist/launcher.js CHANGED
@@ -166,7 +166,7 @@
166
166
  var MODULES = [
167
167
  {
168
168
  type: "ALIA_FORM",
169
- file: `modules/alia-${"0.3.0"}.js`,
169
+ file: `modules/alia-${"0.3.1"}.js`,
170
170
  watch: watchAlia
171
171
  }
172
172
  ];
@@ -275,7 +275,7 @@
275
275
  if (!config) return;
276
276
  const guard = win;
277
277
  if (guard.__datashipsLauncher) return;
278
- guard.__datashipsLauncher = { version: "0.3.0" };
278
+ guard.__datashipsLauncher = { version: "0.3.1" };
279
279
  const modules = env.modules ?? MODULES;
280
280
  const importModule = env.importModule ?? defaultImport;
281
281
  const load = (definition, context, beforeStart) => startModule(importModule, config, definition, context, beforeStart);
@@ -1375,7 +1375,7 @@ var BASE_STYLES = (
1375
1375
  `
1376
1376
  );
1377
1377
  var WORDS = {
1378
- en: { clickHere: "Click here", privacyPolicy: "Privacy Policy", termsOfService: "Terms of Service", consent: "consent", object: "object", optIn: "opt in", optOut: "opt out" },
1378
+ en: { clickHere: "Click here", privacyPolicy: "Privacy Policy", termsOfService: "Terms of Service", contactUs: "Contact Us", consent: "consent", object: "object", optIn: "opt in", optOut: "opt out" },
1379
1379
  es: { clickHere: "Haz clic aqu\xED", privacyPolicy: "Pol\xEDtica de privacidad", termsOfService: "Condiciones del servicio", consent: "consentimiento", object: "oponerte", optIn: "inscribirte", optOut: "no quieres recibirlo" },
1380
1380
  de: { clickHere: "Klicken Sie hier", privacyPolicy: "Datenschutzrichtlinie", termsOfService: "Servicebedingungen", consent: "Zustimmung", object: "protestieren", optIn: "zuzustimmen", optOut: "widersprechen" },
1381
1381
  fr: { clickHere: "Cliquez ici", privacyPolicy: "Politique de confidentialit\xE9", termsOfService: "Conditions d'utilisation", consent: "consentement", object: "d\xE9sapprouver", optIn: "accepter", optOut: "refuser" }
@@ -1565,6 +1565,7 @@ renderInto_fn = function(response, { page, locale = "en", heading = "Email marke
1565
1565
  return b;
1566
1566
  },
1567
1567
  privacyPolicy: (m) => link(m, policyURL),
1568
+ contactUs: (m) => link(m, cfg.contactUsURL),
1568
1569
  // SMS copy also names the mobile terms; email copy keeps linking the privacy policy only.
1569
1570
  ...channel === "SMS" ? { termsOfService: (m) => link(m, cfg.mobileTermsOfServiceURL) } : {}
1570
1571
  });
@@ -1651,7 +1652,7 @@ var createSdkClient = (opts) => {
1651
1652
  ...preview ? {} : opts.unsafeServerKey ? { auth: { unsafeServerKey: opts.unsafeServerKey } } : { auth: { publicKey: opts.publicKey, token: opts.token } },
1652
1653
  env: opts.env ?? "production",
1653
1654
  app: ELEMENTS_APP_NAME,
1654
- version: "2.6.0",
1655
+ version: "2.7.0",
1655
1656
  adapter,
1656
1657
  ...opts.baseUrl ? { baseUrl: opts.baseUrl } : {},
1657
1658
  ...opts.fetch ? { fetch: opts.fetch } : {}
@@ -3521,7 +3522,7 @@ var createRenderClient = (options) => {
3521
3522
  return new DatashipsClient2({
3522
3523
  adapter,
3523
3524
  app: "launcher",
3524
- version: "0.3.0",
3525
+ version: "0.3.1",
3525
3526
  baseUrl: options.baseUrl,
3526
3527
  ...options.auth ? {
3527
3528
  auth: {
@@ -3541,7 +3542,7 @@ var createListenClient = (options) => new DatashipsClient2({
3541
3542
  ...options.termsUrl ? { termsUrl: options.termsUrl } : {}
3542
3543
  }),
3543
3544
  app: "launcher",
3544
- version: "0.3.0",
3545
+ version: "0.3.1",
3545
3546
  baseUrl: options.baseUrl,
3546
3547
  auth: {
3547
3548
  publicKey: options.publicKey,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dataships/launcher",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "Dataships Launcher — the one storefront script. Reads the public key from its script tag, asks the Dataships API what to render and loads the matching module.",
5
5
  "private": false,
6
6
  "license": "Apache-2.0",
@@ -33,7 +33,7 @@
33
33
  "smoke:cdn": "node scripts/smoke-cdn.mjs"
34
34
  },
35
35
  "devDependencies": {
36
- "@dataships/elements": "2.6.0",
36
+ "@dataships/elements": "2.7.0",
37
37
  "@dataships/sdk": "2.5.0",
38
38
  "@types/node": "^20.12.11",
39
39
  "@typescript-eslint/eslint-plugin": "^7.0.0",