@naturalcycles/internal-web-lib 1.2.2 → 1.4.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.
@@ -305,7 +305,7 @@ export interface AnalyticsClientCfg {
305
305
  */
306
306
  localStorageKeyPrefix?: string;
307
307
  /**
308
- * Default `console`.
308
+ * Default `consoleLogger`.
309
309
  */
310
310
  logger?: CommonLogger;
311
311
  /**
@@ -3,6 +3,7 @@ import { ANALYTICS_IDENTIFY_EVENT_NAME, CANONICAL_UTM_PARAMS, truncateAnalyticsP
3
3
  import { _mapToObject } from "@naturalcycles/js-lib/array";
4
4
  import { AppError, _errorDataAppend } from "@naturalcycles/js-lib/error";
5
5
  import { getFetcher } from "@naturalcycles/js-lib/http";
6
+ import { consoleLogger } from "@naturalcycles/js-lib/log";
6
7
  import { nanoidBrowser, nanoidBrowserCustomAlphabet } from "@naturalcycles/js-lib/nanoid";
7
8
  import { _filterNullishValues, _filterObject } from "@naturalcycles/js-lib/object";
8
9
  import { _safeJsonStringify } from "@naturalcycles/js-lib/string";
@@ -52,7 +53,7 @@ var AnalyticsClient = class {
52
53
  persistQueue: true,
53
54
  maxPersistedAge: 864e5,
54
55
  localStorageKeyPrefix,
55
- logger: console,
56
+ logger: consoleLogger,
56
57
  debug: false,
57
58
  ...cfg
58
59
  };
@@ -125,7 +126,7 @@ var AnalyticsClient = class {
125
126
  if (event) this.notifyEventListeners(event);
126
127
  }
127
128
  } catch (err) {
128
- this.cfg.logger.warn("[analytics] could not replay a stubbed call", err);
129
+ this.cfg.logger.warn("[analytics] could not replay a stubbed call", { err });
129
130
  }
130
131
  stub.q.length = 0;
131
132
  }
@@ -148,7 +149,7 @@ var AnalyticsClient = class {
148
149
  for (const listener of this.eventListeners) try {
149
150
  listener(snapshot, distinctId);
150
151
  } catch (err) {
151
- this.cfg.logger.warn("[analytics] onEvent listener threw", err);
152
+ this.cfg.logger.warn("[analytics] onEvent listener threw", { err });
152
153
  }
153
154
  }
154
155
  /**
@@ -178,7 +179,7 @@ var AnalyticsClient = class {
178
179
  },
179
180
  userId: this.identity.getDistinctId()
180
181
  };
181
- if (this.cfg.debug) this.cfg.logger.log(`[analytics] ${event.name}`, event.props);
182
+ if (this.cfg.debug) this.cfg.logger.log(`[analytics] ${event.name}`, { props: event.props });
182
183
  this.queue.push(event);
183
184
  if (this.queue.length > this.cfg.maxQueueSize) {
184
185
  this.queue.shift();
@@ -238,7 +239,7 @@ var AnalyticsClient = class {
238
239
  if (!this.queue.length) return;
239
240
  this.clearFlushTimer();
240
241
  for (const batch of this.prepareBatches()) this.postBatch(batch, true).catch((err) => {
241
- this.cfg.logger.warn("[analytics] lifecycle batch failed to send; retained for retry", err);
242
+ this.cfg.logger.warn("[analytics] lifecycle batch failed to send; retained for retry", { err });
242
243
  });
243
244
  this.scheduleFlush();
244
245
  }
@@ -288,7 +289,7 @@ var AnalyticsClient = class {
288
289
  try {
289
290
  this.cfg.onError(_errorDataAppend(res.err, { firstTouch: true }));
290
291
  } catch (err) {
291
- this.cfg.logger.warn("[analytics] onError hook threw", err);
292
+ this.cfg.logger.warn("[analytics] onError hook threw", { err });
292
293
  }
293
294
  }
294
295
  getDefaultProps() {
@@ -316,7 +317,7 @@ var AnalyticsClient = class {
316
317
  try {
317
318
  res = await this.postBatch(batch, false, AbortSignal.timeout?.(this.cfg.requestTimeout));
318
319
  } catch (err) {
319
- this.cfg.logger.warn("[analytics] batch failed to send, will retry", err);
320
+ this.cfg.logger.warn("[analytics] batch failed to send, will retry", { err });
320
321
  return "retry";
321
322
  }
322
323
  if (res.ok) return "ok";
@@ -333,7 +334,7 @@ var AnalyticsClient = class {
333
334
  eventCount: batch.events.length
334
335
  }));
335
336
  } catch (err) {
336
- this.cfg.logger.warn("[analytics] onError hook threw", err);
337
+ this.cfg.logger.warn("[analytics] onError hook threw", { err });
337
338
  }
338
339
  return "drop";
339
340
  }
@@ -1,2 +1 @@
1
- import { AnalyticsClient, AnalyticsClientError, AnalyticsIdentity, getCookie, setCookie } from "./analyticsClient.js";
2
- export { AnalyticsClient, AnalyticsClientError, AnalyticsIdentity, getCookie, setCookie };
1
+ export { AnalyticsClient, AnalyticsClientError, AnalyticsIdentity, getCookie, setCookie } from "./analyticsClient.js";
@@ -2,22 +2,29 @@ import type { StringMap } from '@naturalcycles/js-lib/types';
2
2
  import type { ClientId, PageViewInput, PurchaseInput } from '@naturalcycles/shared';
3
3
  /**
4
4
  * Client for our Conversions API endpoints (`web/p`, `web/purchase`). Captures ad click ids from
5
- * the URL into cookies and sends them as headers. Calls never throw, failures go to `onError`.
5
+ * the URL, stores them in cookies once marketing consent is given and sends them as headers. Nothing
6
+ * is sent without marketing consent. Calls never throw, failures go to `onError`.
6
7
  */
7
8
  export declare class ConversionClient {
8
9
  constructor(cfg: ConversionClientCfg);
9
10
  private readonly cfg;
10
11
  private readonly fetcher;
11
12
  private lastCapturedHref;
12
- /** Captures ad click ids from the landing URL. Call on page load, before consent is known. */
13
+ private pendingClickIds;
14
+ /** Captures ad click ids from the landing URL into memory. Call on page load. */
13
15
  init(): void;
14
16
  pageView(input: PageViewInput, opt?: ConversionRequestOptions): void;
15
17
  purchase(input: PurchaseInput, opt?: ConversionRequestOptions): void;
18
+ private hasMarketingConsent;
19
+ /** Returns null outside the allowed domains or on a path of their exclusion list. */
20
+ private getAllowedPathname;
16
21
  private send;
17
- getHeaders(): ConversionHeaders;
22
+ /** Click ids are only included with marketing consent. */
23
+ getHeaders(input: ConversionHeadersInput): ConversionHeaders;
24
+ private storeClickIds;
18
25
  private tryOrReport;
19
26
  private captureClickIds;
20
- /** Returns undefined when the cookie already holds this click, so its timestamp is kept. */
27
+ /** Returns undefined when this click is already captured, so its timestamp is kept. */
21
28
  private toFbc;
22
29
  }
23
30
  export interface ConversionClientCfg {
@@ -33,6 +40,9 @@ export interface ConversionClientCfg {
33
40
  export interface ConversionRequestOptions {
34
41
  extraHeaders?: StringMap;
35
42
  }
43
+ export interface ConversionHeadersInput {
44
+ marketingConsent: boolean | undefined;
45
+ }
36
46
  export interface ConversionHeaders {
37
47
  clientId: string;
38
48
  fbc?: string;
@@ -3,14 +3,15 @@ import { _anyToError } from "@naturalcycles/js-lib/error";
3
3
  import { getFetcher } from "@naturalcycles/js-lib/http";
4
4
  import { _filterEmptyValues } from "@naturalcycles/js-lib/object";
5
5
  import { _noop } from "@naturalcycles/js-lib/types";
6
- import { WebSignupQueryParam, clickIdParameters, cookieService, formatMetaClickId, sanitizeFbclid } from "@naturalcycles/shared";
6
+ import { WebSignupQueryParam, allowedDomains, clickIdParameters, cookieService, debugDomainMap, domainPathKeywordSuppressionMap, formatMetaClickId, sanitizeFbclid } from "@naturalcycles/shared";
7
7
  //#region src/conversion/conversionClient.ts
8
8
  var CLICK_ID_COOKIE_DAYS = 30;
9
9
  var MAX_CLICK_ID_LENGTH = 200;
10
10
  var MIN_FBCLID_LENGTH = 20;
11
11
  /**
12
12
  * Client for our Conversions API endpoints (`web/p`, `web/purchase`). Captures ad click ids from
13
- * the URL into cookies and sends them as headers. Calls never throw, failures go to `onError`.
13
+ * the URL, stores them in cookies once marketing consent is given and sends them as headers. Nothing
14
+ * is sent without marketing consent. Calls never throw, failures go to `onError`.
14
15
  */
15
16
  var ConversionClient = class {
16
17
  constructor(cfg) {
@@ -24,18 +25,39 @@ var ConversionClient = class {
24
25
  cfg;
25
26
  fetcher;
26
27
  lastCapturedHref;
27
- /** Captures ad click ids from the landing URL. Call on page load, before consent is known. */
28
+ pendingClickIds = {};
29
+ /** Captures ad click ids from the landing URL into memory. Call on page load. */
28
30
  init() {
29
31
  if (!this.cfg.enabled) return;
30
32
  this.tryOrReport(() => this.captureClickIds(), void 0);
31
33
  }
32
34
  pageView(input, opt = {}) {
33
- if (!this.cfg.enabled) return;
34
- runInBackground(this.send("p", input, opt));
35
+ if (!this.cfg.enabled || !this.hasMarketingConsent(input)) return;
36
+ const pathname = this.getAllowedPathname(input.pathname);
37
+ if (pathname === null) return;
38
+ runInBackground(this.send("p", {
39
+ ...input,
40
+ pathname
41
+ }, opt));
35
42
  }
36
43
  purchase(input, opt = {}) {
37
- if (!this.cfg.enabled) return;
38
- runInBackground(this.send("purchase", input, opt));
44
+ if (!this.cfg.enabled || !this.hasMarketingConsent(input)) return;
45
+ const pathname = this.getAllowedPathname(input.pathname);
46
+ if (pathname === null) return;
47
+ runInBackground(this.send("purchase", {
48
+ ...input,
49
+ pathname
50
+ }, opt));
51
+ }
52
+ hasMarketingConsent(input) {
53
+ return (input.marketingConsent ?? input.marketingCookie) === true;
54
+ }
55
+ /** Returns null outside the allowed domains or on a path of their exclusion list. */
56
+ getAllowedPathname(pathname) {
57
+ const { href, origin } = globalThis.location;
58
+ const domain = allowedDomains.find((allowedDomain) => href.startsWith(allowedDomain)) || debugDomainMap[origin];
59
+ if (!domain) return null;
60
+ return domainPathKeywordSuppressionMap[domain].some((keyword) => pathname.includes(keyword)) ? null : pathname;
39
61
  }
40
62
  async send(path, json, opt) {
41
63
  try {
@@ -44,7 +66,7 @@ var ConversionClient = class {
44
66
  method: "POST",
45
67
  json,
46
68
  headers: {
47
- ...this.getHeaders(),
69
+ ...this.getHeaders({ marketingConsent: json.marketingConsent ?? json.marketingCookie }),
48
70
  ...opt.extraHeaders
49
71
  },
50
72
  keepalive: true,
@@ -55,10 +77,12 @@ var ConversionClient = class {
55
77
  this.cfg.onError(_anyToError(err));
56
78
  }
57
79
  }
58
- getHeaders() {
80
+ /** Click ids are only included with marketing consent. */
81
+ getHeaders(input) {
59
82
  const clientId = String(this.cfg.clientId);
83
+ if (!input.marketingConsent) return { clientId };
60
84
  return this.tryOrReport(() => {
61
- if (this.cfg.enabled) this.captureClickIds();
85
+ if (this.cfg.enabled) this.storeClickIds();
62
86
  return _filterEmptyValues({
63
87
  clientId,
64
88
  fbc: cookieService.getCookie("_fbc") || formatMetaClickId(cookieService.getCookie(WebSignupQueryParam.fbclid)),
@@ -71,6 +95,11 @@ var ConversionClient = class {
71
95
  });
72
96
  }, { clientId });
73
97
  }
98
+ storeClickIds() {
99
+ this.captureClickIds();
100
+ for (const [param, value] of Object.entries(this.pendingClickIds)) cookieService.setCookie(param, value, CLICK_ID_COOKIE_DAYS, this.cfg.cookieDomain);
101
+ this.pendingClickIds = {};
102
+ }
74
103
  tryOrReport(fn, fallback) {
75
104
  try {
76
105
  return fn();
@@ -88,14 +117,14 @@ var ConversionClient = class {
88
117
  const raw = searchParams.get(param) || searchParams.get(param.toLowerCase());
89
118
  if (!raw) continue;
90
119
  const value = param === WebSignupQueryParam.fbclid ? this.toFbc(raw) : raw.slice(0, MAX_CLICK_ID_LENGTH);
91
- if (value) cookieService.setCookie(param, value, CLICK_ID_COOKIE_DAYS, this.cfg.cookieDomain);
120
+ if (value) this.pendingClickIds[param] = value;
92
121
  }
93
122
  }
94
- /** Returns undefined when the cookie already holds this click, so its timestamp is kept. */
123
+ /** Returns undefined when this click is already captured, so its timestamp is kept. */
95
124
  toFbc(raw) {
96
125
  const fbclid = sanitizeFbclid(raw);
97
126
  if (!fbclid || fbclid.length < MIN_FBCLID_LENGTH) return;
98
- if (cookieService.getCookie(WebSignupQueryParam.fbclid)?.endsWith(`.${fbclid}`)) return;
127
+ if ((this.pendingClickIds[WebSignupQueryParam.fbclid] || cookieService.getCookie(WebSignupQueryParam.fbclid))?.endsWith(`.${fbclid}`)) return;
99
128
  return formatMetaClickId(fbclid);
100
129
  }
101
130
  };
@@ -1,4 +1,4 @@
1
- import _palette_default from "../../node_modules/.pnpm/@naturalcycles_ncuikit@1.14.0_react@19.3.0_undici@8.11.2/node_modules/@naturalcycles/ncuikit/dist/styles/_palette.js";
1
+ import _palette_default from "../../node_modules/.pnpm/@naturalcycles_ncuikit@1.15.0_react@19.3.0_undici@8.11.2/node_modules/@naturalcycles/ncuikit/dist/styles/_palette.js";
2
2
  import fonts_default from "./fonts.js";
3
3
  import general_default from "./general.js";
4
4
  //#region src/cookie-monster/css/shared-sheets.ts
@@ -0,0 +1,4 @@
1
+ //#region ../../node_modules/.pnpm/@naturalcycles+ncuikit@1.15.0_react@19.3.0_undici@8.11.2/node_modules/@naturalcycles/ncuikit/dist/styles/_palette.css?inline
2
+ var _palette_default = "/**\n * Do not edit directly, this file was auto-generated.\n */\n\n:root {\n --color-purple-200: #f8f2f7;\n --color-purple-300: #edc4e6;\n --color-purple-400: #c377b4;\n --color-purple-500: #72035d;\n --color-purple-600: #560246;\n --color-purple-700: #3c0231;\n --color-purple-1000: #310629;\n --color-lavender-300: #ffcbff;\n --color-lavender-400: #fdabf5;\n --color-lavender-500: #f796ee;\n --color-lavender-600: #f471e8;\n --color-neue-blue-200: #e9f3ff;\n --color-neue-blue-250: #c9e0fd;\n --color-neue-blue-300: #9cbbff;\n --color-neue-blue-400: #709dff;\n --color-neue-blue-500: #3c6df0;\n --color-neue-blue-600: #204cc5;\n --color-neue-blue-700: #2547a7;\n --color-raspberry-300: #febfcf;\n --color-raspberry-400: #ed7f9d;\n --color-raspberry-500: #d71c5a;\n --color-raspberry-600: #c90d4b;\n --color-ink-100: rgba(26, 26, 26, 0.050980392156862744);\n --color-ink-200: rgba(26, 26, 26, 0.10196078431372549);\n --color-ink-300: #dedede;\n --color-ink-400: #a3a3a3;\n --color-ink-500: #757575;\n --color-ink-600: #5f5f5f;\n --color-ink-1000: #1a1a1a;\n --color-sand-50: rgba(252, 248, 248, 0.1607843137254902);\n --color-sand-100: #fcf8f8;\n --color-sand-300: #f8f2f2;\n --color-sand-500: #f3eeee;\n --color-sand-600: #e2d4d4;\n --color-sand-700: #d1c0c0;\n --color-white-100: rgba(255, 255, 255, 0.0784313725490196);\n --color-white-200: rgba(255, 255, 255, 0.1607843137254902);\n --color-white-1000: #ffffff;\n --color-green-50: rgba(243, 248, 236, 0.10196078431372549);\n --color-green-100: #f3f8ec;\n --color-green-300: #a0c95e;\n --color-green-500: #87b738;\n --color-green-600: #658d25;\n --color-red-50: rgba(252, 235, 235, 0.10196078431372549);\n --color-red-100: #fcebeb;\n --color-red-500: #ff7c7c;\n --color-red-600: #d83030;\n --color-orange-50: rgba(255, 244, 230, 0.10196078431372549);\n --color-orange-100: #f6d7b2;\n --color-orange-300: #ffa64d;\n --color-orange-500: #ff9000;\n --color-orange-700: #d16900;\n --color-orange-900: #65291f;\n --color-trackers-mood-100: rgba(255, 223, 92, 0.4);\n --color-trackers-mood-300: #fee996;\n --color-trackers-mood-500: #ffdf5c;\n --color-trackers-mood-600: #e0cb79;\n --color-trackers-pain-100: rgba(255, 154, 117, 0.4);\n --color-trackers-pain-300: #f39ab5;\n --color-trackers-pain-500: #ff9a75;\n --color-trackers-pain-600: #d57e98;\n --color-trackers-pain-700: #ac2e00;\n --color-trackers-lifestyle-100: rgba(166, 209, 166, 0.4);\n --color-trackers-lifestyle-300: #afd6af;\n --color-trackers-lifestyle-500: #a6d1a6;\n --color-trackers-lifestyle-600: #92b892;\n --color-trackers-lifestyle-700: #1a5c41;\n --color-trackers-external-factor-100: rgba(255, 184, 0, 0.4);\n --color-trackers-external-factor-300: #ffbf1a;\n --color-trackers-external-factor-500: #ffb800;\n --color-trackers-external-factor-600: #e0a200;\n --color-trackers-external-factor-700: #915f04;\n --color-trackers-skin-100: rgba(255, 146, 142, 0.4);\n --color-trackers-skin-300: #ff9d99;\n --color-trackers-skin-500: #ff928e;\n --color-trackers-skin-600: #e0807d;\n --color-trackers-skin-700: #b12a25;\n --color-trackers-sex-100: rgba(253, 144, 180, 0.4);\n --color-trackers-sex-300: #fd9bbc;\n --color-trackers-sex-500: #fd90b4;\n --color-trackers-sex-600: #df7f9e;\n --color-trackers-sex-700: #a93059;\n --color-trackers-tracker-500: #620d4e;\n --color-trackers-cervical-mucus-100: rgba(241, 150, 231, 0.4);\n --color-trackers-cervical-mucus-300: #dcb2ea;\n --color-trackers-cervical-mucus-500: #f196e7;\n --color-trackers-cervical-mucus-600: #be95cc;\n --color-trackers-cervical-mucus-700: #8f1f83;\n --color-trackers-bleeding-100: rgba(210, 148, 239, 0.4);\n --color-trackers-bleeding-300: #c48fd8;\n --color-trackers-bleeding-500: #d294ef;\n --color-trackers-bleeding-600: #a673bb;\n --color-trackers-excluded-500: #ff736f;\n --color-trackers-lh-test-100: rgba(141, 190, 255, 0.4);\n --color-trackers-lh-test-300: #98c5ff;\n --color-trackers-lh-test-500: #8dbeff;\n --color-trackers-lh-test-600: #7ca7e0;\n --color-trackers-lh-test-700: #16427b;\n --color-trackers-pregnancy-test-100: rgba(99, 164, 248, 0.4);\n --color-trackers-pregnancy-test-300: #73adf9;\n --color-trackers-pregnancy-test-500: #63a4f8;\n --color-trackers-pregnancy-test-600: #5790da;\n --color-trackers-pregnancy-test-700: #16427b;\n --color-trackers-sensitive-500: #e2d4d4;\n --color-trackers-sleep-100: rgba(171, 177, 210, 0.4);\n --color-trackers-sleep-300: #d1d5e6;\n --color-trackers-sleep-500: #abb1d2;\n --color-trackers-sleep-600: #8c91ad;\n --color-trackers-sleep-700: #4d5478;\n --color-trackers-breastfeeding-100: rgba(255, 205, 211, 0.4);\n --color-trackers-breastfeeding-300: #ffd2d7;\n --color-trackers-breastfeeding-500: #ffcdd3;\n --color-trackers-breastfeeding-600: #e0b4ba;\n --color-trackers-breastfeeding-700: #8f343f;\n --color-trackers-bottle-feeding-100: rgba(114, 214, 196, 0.4);\n --color-trackers-bottle-feeding-300: #80daca;\n --color-trackers-bottle-feeding-500: #72d6c4;\n --color-trackers-bottle-feeding-600: #64bcac;\n --color-trackers-bottle-feeding-700: #005a46;\n --color-trackers-pumping-100: rgba(255, 184, 0, 0.4);\n --color-trackers-pumping-300: #ffbf1a;\n --color-trackers-pumping-500: #ffb800;\n --color-trackers-pumping-600: #e0a200;\n --color-trackers-pumping-700: #915f04;\n --color-pale-purple-300: #512d4a;\n --color-pale-purple-500: #4a2d47;\n --color-pale-purple-700: #411a3a;\n --color-fertility-red-50: rgba(243, 59, 110, 0.5019607843137255); /** Peak Fertility */\n --color-fertility-red-100: #f3b6c7; /** Fertility unlikely */\n --color-fertility-red-200: #f590ad; /** Low Fertility */\n --color-fertility-red-500: #fb7598; /** Use Protection and Medium fertility */\n --color-fertility-red-800: #f15880; /** High Fertility */\n --color-fertility-red-900: #f74577; /** Very High Fertility */\n --color-fertility-red-1000: #f33b6e; /** Peak Fertility */\n --color-fertility-grey-500: #e8d2c6;\n --color-fertility-lavender-100: #f3e6f9;\n --color-fertility-lavender-500: #d294ef;\n --color-fertility-blue-500: #63a4f8;\n --color-fertility-green-600: #3ed08e;\n}\n";
3
+ //#endregion
4
+ export { _palette_default as default };
package/package.json CHANGED
@@ -42,13 +42,13 @@
42
42
  "publishConfig": {
43
43
  "access": "public"
44
44
  },
45
- "version": "1.2.2",
45
+ "version": "1.4.0",
46
46
  "description": "Internal web libraries for Natural Cycles, served via CDN and published from the NCBackend3 monorepo",
47
47
  "author": "Natural Cycles Team",
48
48
  "license": "UNLICENSED",
49
49
  "scripts": {
50
- "build": "vite build && pnpm bundle && tsc -P tsconfig.prod.json",
51
- "bundle": "rm -rf bundle && pnpm bundle:analytics-client && pnpm bundle:conversion-client && pnpm bundle:cookie-monster",
50
+ "build": "vite build && tsc -P tsconfig.prod.json",
51
+ "bundle": "rm -rf bundle && pnpm --silent bundle:analytics-client && pnpm --silent bundle:conversion-client && pnpm --silent bundle:cookie-monster",
52
52
  "bundle:analytics-client": "BUNDLE_ENTRY=analyticsClient vite build --config vite.bundle.config.ts",
53
53
  "bundle:conversion-client": "BUNDLE_ENTRY=conversionClient vite build --config vite.bundle.config.ts",
54
54
  "bundle:cookie-monster": "BUNDLE_ENTRY=cookieMonster vite build --config vite.bundle.config.ts",
@@ -1,4 +0,0 @@
1
- //#region ../../node_modules/.pnpm/@naturalcycles+ncuikit@1.14.0_react@19.3.0_undici@8.11.2/node_modules/@naturalcycles/ncuikit/dist/styles/_palette.css?inline
2
- var _palette_default = "/**\n * Do not edit directly, this file was auto-generated.\n */\n\n:root {\n --color-purple-200: #f8f2f7;\n --color-purple-300: #edc4e6;\n --color-purple-400: #c377b4;\n --color-purple-500: #72035d;\n --color-purple-600: #560246;\n --color-purple-700: #3c0231;\n --color-purple-1000: #310629;\n --color-lavender-300: #ffcbff;\n --color-lavender-400: #fdabf5;\n --color-lavender-500: #f796ee;\n --color-lavender-600: #f471e8;\n --color-neue-blue-200: #e9f3ff;\n --color-neue-blue-250: #c9e0fd;\n --color-neue-blue-300: #9cbbff;\n --color-neue-blue-400: #709dff;\n --color-neue-blue-500: #3c6df0;\n --color-neue-blue-600: #204cc5;\n --color-neue-blue-700: #2547a7;\n --color-raspberry-300: #febfcf;\n --color-raspberry-400: #ed7f9d;\n --color-raspberry-500: #d71c5a;\n --color-raspberry-600: #c90d4b;\n --color-ink-100: rgba(26, 26, 26, 0.05);\n --color-ink-200: rgba(26, 26, 26, 0.1);\n --color-ink-300: #dedede;\n --color-ink-400: #a3a3a3;\n --color-ink-500: #757575;\n --color-ink-600: #5f5f5f;\n --color-ink-1000: #1a1a1a;\n --color-sand-50: rgba(252, 248, 248, 0.16);\n --color-sand-100: #fcf8f8;\n --color-sand-300: #f8f2f2;\n --color-sand-500: #f3eeee;\n --color-sand-600: #e2d4d4;\n --color-sand-700: #d1c0c0;\n --color-white-100: rgba(255, 255, 255, 0.08);\n --color-white-200: rgba(255, 255, 255, 0.16);\n --color-white-1000: #ffffff;\n --color-green-50: rgba(243, 248, 236, 0.1);\n --color-green-100: #f3f8ec;\n --color-green-300: #a0c95e;\n --color-green-500: #87b738;\n --color-green-600: #658d25;\n --color-red-50: rgba(252, 235, 235, 0.1);\n --color-red-100: #fcebeb;\n --color-red-500: #ff7c7c;\n --color-red-600: #d83030;\n --color-orange-50: rgba(255, 244, 230, 0.1);\n --color-orange-100: #f6d7b2;\n --color-orange-300: #ffa64d;\n --color-orange-500: #ff9000;\n --color-orange-700: #d16900;\n --color-orange-900: #65291f;\n --color-trackers-mood-100: rgba(255, 223, 92, 0.4);\n --color-trackers-mood-300: #fee996;\n --color-trackers-mood-500: #ffdf5c;\n --color-trackers-mood-600: #e0cb79;\n --color-trackers-pain-100: rgba(255, 154, 117, 0.4);\n --color-trackers-pain-300: #f39ab5;\n --color-trackers-pain-500: #ff9a75;\n --color-trackers-pain-600: #d57e98;\n --color-trackers-pain-700: #ac2e00;\n --color-trackers-lifestyle-100: rgba(166, 209, 166, 0.4);\n --color-trackers-lifestyle-300: #afd6af;\n --color-trackers-lifestyle-500: #a6d1a6;\n --color-trackers-lifestyle-600: #92b892;\n --color-trackers-lifestyle-700: #1a5c41;\n --color-trackers-external-factor-100: rgba(255, 184, 0, 0.4);\n --color-trackers-external-factor-300: #ffbf1a;\n --color-trackers-external-factor-500: #ffb800;\n --color-trackers-external-factor-600: #e0a200;\n --color-trackers-external-factor-700: #915f04;\n --color-trackers-skin-100: rgba(255, 146, 142, 0.4);\n --color-trackers-skin-300: #ff9d99;\n --color-trackers-skin-500: #ff928e;\n --color-trackers-skin-600: #e0807d;\n --color-trackers-skin-700: #b12a25;\n --color-trackers-sex-100: rgba(253, 144, 180, 0.4);\n --color-trackers-sex-300: #fd9bbc;\n --color-trackers-sex-500: #fd90b4;\n --color-trackers-sex-600: #df7f9e;\n --color-trackers-sex-700: #a93059;\n --color-trackers-tracker-500: #620d4e;\n --color-trackers-cervical-mucus-100: rgba(241, 150, 231, 0.4);\n --color-trackers-cervical-mucus-300: #dcb2ea;\n --color-trackers-cervical-mucus-500: #f196e7;\n --color-trackers-cervical-mucus-600: #be95cc;\n --color-trackers-cervical-mucus-700: #8f1f83;\n --color-trackers-bleeding-100: rgba(210, 148, 239, 0.4);\n --color-trackers-bleeding-300: #c48fd8;\n --color-trackers-bleeding-500: #d294ef;\n --color-trackers-bleeding-600: #a673bb;\n --color-trackers-excluded-500: #ff736f;\n --color-trackers-lh-test-100: rgba(141, 190, 255, 0.4);\n --color-trackers-lh-test-300: #98c5ff;\n --color-trackers-lh-test-500: #8dbeff;\n --color-trackers-lh-test-600: #7ca7e0;\n --color-trackers-lh-test-700: #16427b;\n --color-trackers-pregnancy-test-100: rgba(99, 164, 248, 0.4);\n --color-trackers-pregnancy-test-300: #73adf9;\n --color-trackers-pregnancy-test-500: #63a4f8;\n --color-trackers-pregnancy-test-600: #5790da;\n --color-trackers-pregnancy-test-700: #16427b;\n --color-trackers-sensitive-500: #e2d4d4;\n --color-trackers-sleep-100: rgba(171, 177, 210, 0.4);\n --color-trackers-sleep-300: #d1d5e6;\n --color-trackers-sleep-500: #abb1d2;\n --color-trackers-sleep-600: #8c91ad;\n --color-trackers-sleep-700: #4d5478;\n --color-trackers-breastfeeding-100: rgba(255, 205, 211, 0.4);\n --color-trackers-breastfeeding-300: #ffd2d7;\n --color-trackers-breastfeeding-500: #ffcdd3;\n --color-trackers-breastfeeding-600: #e0b4ba;\n --color-trackers-breastfeeding-700: #8f343f;\n --color-trackers-bottle-feeding-100: rgba(114, 214, 196, 0.4);\n --color-trackers-bottle-feeding-300: #80daca;\n --color-trackers-bottle-feeding-500: #72d6c4;\n --color-trackers-bottle-feeding-600: #64bcac;\n --color-trackers-bottle-feeding-700: #005a46;\n --color-trackers-pumping-100: rgba(255, 184, 0, 0.4);\n --color-trackers-pumping-300: #ffbf1a;\n --color-trackers-pumping-500: #ffb800;\n --color-trackers-pumping-600: #e0a200;\n --color-trackers-pumping-700: #915f04;\n --color-pale-purple-300: #512d4a;\n --color-pale-purple-500: #4a2d47;\n --color-pale-purple-700: #411a3a;\n --color-fertility-red-50: rgba(243, 59, 110, 0.5); /** Peak Fertility */\n --color-fertility-red-100: #f3b6c7; /** Fertility unlikely */\n --color-fertility-red-200: #f590ad; /** Low Fertility */\n --color-fertility-red-500: #fb7598; /** Use Protection and Medium fertility */\n --color-fertility-red-800: #f15880; /** High Fertility */\n --color-fertility-red-900: #f74577; /** Very High Fertility */\n --color-fertility-red-1000: #f33b6e; /** Peak Fertility */\n --color-fertility-grey-500: #e8d2c6;\n --color-fertility-lavender-100: #f3e6f9;\n --color-fertility-lavender-500: #d294ef;\n --color-fertility-blue-500: #63a4f8;\n --color-fertility-green-600: #3ed08e;\n}\n";
3
- //#endregion
4
- export { _palette_default as default };