@c1m-public/dash-site-kit 0.13.0 → 0.13.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.
@@ -2,6 +2,11 @@ import { FIRST_TOUCH_COOKIE, FIRST_TOUCH_MAX_AGE_SECONDS } from "./attribution.j
2
2
  function operatorOf(facts) {
3
3
  return facts.operator?.trim() || facts.siteName;
4
4
  }
5
+ /** "SimpleVan" or "SimpleVan, run by SimpleVan Ltd," when the operator differs. */
6
+ function runBy(facts) {
7
+ const operator = operatorOf(facts);
8
+ return operator === facts.siteName ? facts.siteName : `${facts.siteName}, run by ${operator},`;
9
+ }
5
10
  function contactLine(facts) {
6
11
  return facts.contactHref ? `through our contact page (${facts.contactHref})` : "using the contact details on this site";
7
12
  }
@@ -12,7 +17,6 @@ const firstTouchDays = Math.round(FIRST_TOUCH_MAX_AGE_SECONDS / 86_400);
12
17
  * details before relying on it.
13
18
  */
14
19
  export function privacyNotice(facts) {
15
- const operator = operatorOf(facts);
16
20
  const collected = [
17
21
  "Requests you send us: your name, email address, phone number and the details you enter about the job.",
18
22
  "An email address when you ask for a link to your existing requests.",
@@ -23,9 +27,9 @@ export function privacyNotice(facts) {
23
27
  return {
24
28
  title: "Privacy notice",
25
29
  updated: facts.updated,
26
- summary: `How ${operator} collects and uses personal information on ${facts.siteName}.`,
30
+ summary: `How ${facts.siteName} collects and uses your personal information.`,
27
31
  sections: [
28
- { heading: "Who we are", paragraphs: [`${facts.siteName} is run by ${operator}, the controller of the personal information described here. The site runs on the SaaSDash platform, which stores and processes that information on our behalf.`] },
32
+ { heading: "Who we are", paragraphs: [`${runBy(facts)} is responsible for the personal information described here. The site runs on the SaaSDash platform, which stores and processes that information on our behalf.`] },
29
33
  { heading: "What we collect", bullets: collected },
30
34
  {
31
35
  heading: "How we use it",
@@ -63,13 +67,12 @@ export function cookieNotice(facts) {
63
67
  }
64
68
  /** Terms of use for a Dash site. */
65
69
  export function termsOfUse(facts) {
66
- const operator = operatorOf(facts);
67
70
  return {
68
71
  title: "Terms of use",
69
72
  updated: facts.updated,
70
73
  summary: `The terms for using ${facts.siteName}.`,
71
74
  sections: [
72
- { heading: "About these terms", paragraphs: [`These terms apply when you use ${facts.siteName}, run by ${operator}. By using the site you accept them.`] },
75
+ { heading: "About these terms", paragraphs: [`These terms apply when you use ${runBy(facts).replace(/,$/, "")}. By using the site you accept them.`] },
73
76
  ...(facts.sharesWithProviders ? [{ heading: "Providers", paragraphs: ["Providers listed on the site are independent businesses. Any job you agree with a provider is a contract between you and that provider, who is responsible for the service, its price and its insurance. We help you find and contact providers but do not carry out the work."] }] : []),
74
77
  { heading: "Using the site", bullets: ["Give accurate information when you send a request.", "Do not misuse the site, interfere with it or try to access it without permission.", "Do not submit other people's details without their agreement."] },
75
78
  { heading: "Information on the site", paragraphs: ["We keep the site accurate but cannot guarantee every listing, price or guide is complete or current."] },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@c1m-public/dash-site-kit",
3
- "version": "0.13.0",
3
+ "version": "0.13.1",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "description": "Shared transport, domain and UI layer for MML dash-scoped public sites",