Skip to content

Commit 84cbeaf

Browse files
amanharwarakarolsojko
authored andcommitted
chore: release latest code
1 parent 578ce0e commit 84cbeaf

32 files changed

+350
-29
lines changed

.pnp.cjs

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Binary file not shown.
-23.2 KB
Binary file not shown.

packages/analytics/src/Domain/Email/daily-analytics-report.html.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ import { AnalyticsActivity } from '../Analytics/AnalyticsActivity'
55
import { StatisticMeasureName } from '../Statistics/StatisticMeasureName'
66
import { Period } from '../Time/Period'
77

8+
import { safeHtml } from '@standardnotes/common'
9+
810
const countActiveUsers = (measureName: string, data: any): { yesterday: number; last30Days: number } => {
911
const totalActiveUsersLast30DaysIncludingToday = data.statisticsOverTime.find(
1012
(a: { name: string; period: number }) => a.name === measureName && a.period === 27,
@@ -567,7 +569,7 @@ export const html = (data: any, timer: TimerInterface) => {
567569
const totalActivePlusUsers = countActiveUsers(StatisticMeasureName.NAMES.ActivePlusUsers, data)
568570
const totalActiveProUsers = countActiveUsers(StatisticMeasureName.NAMES.ActiveProUsers, data)
569571

570-
return ` <div>
572+
return safeHtml` <div>
571573
<p>Hello,</p>
572574
<p>
573575
<strong>Here are some statistics from yesterday:</strong>

packages/auth/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"engines": {
55
"node": ">=18.0.0 <21.0.0"
66
},
7-
"description": "Auth Server",
7+
"description": "Auth Server for SN",
88
"main": "dist/src/index.js",
99
"typings": "dist/src/index.d.ts",
1010
"author": "Karol Sójko <[email protected]>",

packages/auth/src/Domain/Email/offline-subscription-token-created.html.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
export const html = (userEmail: string, offlineSubscriptionDashboardUrl: string) => `<div class="sn-component">
1+
import { safeHtml } from '@standardnotes/common'
2+
3+
export const html = (userEmail: string, offlineSubscriptionDashboardUrl: string) => safeHtml`<div class="sn-component">
24
<div class="sk-panel static">
35
<div class="sk-panel-content">
46
<div class="sk-panel-section">

packages/auth/src/Domain/Email/shared-subscription-invitation-created.html.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
export const html = (inviterIdentifier: string, inviteUuid: string) => `<p>Hello,</p>
1+
import { safeHtml } from '@standardnotes/common'
2+
3+
export const html = (inviterIdentifier: string, inviteUuid: string) => safeHtml`<p>Hello,</p>
24
<p>You've been invited to join a Standard Notes premium subscription at no cost. ${inviterIdentifier} has invited you to share the benefits of their subscription plan.</p>
35
<p>
46
<a href='https://app.standardnotes.com/?accept-subscription-invite=${inviteUuid}'>Accept Invite</a>

packages/auth/src/Domain/Email/user-email-changed.html.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
export const html = (newEmail: string) => `
1+
import { safeHtml } from '@standardnotes/common'
2+
3+
export const html = (newEmail: string) => safeHtml`
24
<p>Hello,</p>
35
46
<p>We are writing to inform you that your request to update your email address has been successfully processed. The email address associated with your Standard Notes account has now been changed to the following:</p>

packages/auth/src/Domain/Email/user-invited-to-shared-vault.html.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
export const html = () => `
1+
import { safeHtml } from '@standardnotes/common'
2+
3+
export const html = () => safeHtml`
24
<p>Hello,</p>
35
46
<p>You've been invited to join a shared vault. This shared workspace will help you collaborate and securely manage notes and files.</p>

packages/auth/src/Domain/Email/user-signed-in.html.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
export const html = (email: string, device: string, browser: string, timeAndDate: string) => `
1+
import { safeHtml } from '@standardnotes/common'
2+
3+
export const html = (email: string, device: string, browser: string, timeAndDate: string) => safeHtml`
24
<div>
35
<p>Hello,</p>
46
<p>We've detected a new sign-in to your account ${email}</p>

0 commit comments

Comments
 (0)