qstd 0.3.22 → 0.3.23

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.
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Creates a plain text fallback from HTML email content.
3
+ *
4
+ * SES emails are sent as multipart/alternative with both HTML and text bodies.
5
+ * The text version is needed because some email clients don't render HTML
6
+ * (accessibility settings, security restrictions, older clients), and many
7
+ * clients show the plain text in inbox previews and notifications. Including
8
+ * both versions also improves deliverability/spam scores.
9
+ *
10
+ * @example
11
+ * ```ts
12
+ * stripHtml("<p>Hello <strong>world</strong></p>");
13
+ * // Returns: "Hello world"
14
+ * ```
15
+ */
16
+ export declare const stripHtml: (html: string) => string;
17
+ //# sourceMappingURL=fns.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fns.d.ts","sourceRoot":"","sources":["../../../../src/server/aws/ses/fns.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,SAAS,GAAI,MAAM,MAAM,KAAG,MAU9B,CAAC"}
@@ -0,0 +1,21 @@
1
+ import { SESClient } from "@aws-sdk/client-ses";
2
+ import * as _t from "./types";
3
+ export type * from "./types";
4
+ export declare const create: () => SESClient;
5
+ /**
6
+ * phone notifications: `<fromName> <subject>`
7
+ *
8
+ * email: `<fromName> <subject>`
9
+ *
10
+ * email opened:
11
+ *
12
+ * `<subject>` (as email title)
13
+ *
14
+ * From `<fromName> <from>`
15
+ *
16
+ * To `<to>`
17
+ *
18
+ * `<content>`
19
+ */
20
+ export declare const send: (ses: SESClient, email: _t.Email) => Promise<import("@aws-sdk/client-ses").SendEmailCommandOutput>;
21
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/server/aws/ses/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAoB,MAAM,qBAAqB,CAAC;AAClE,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAG9B,mBAAmB,SAAS,CAAC;AAE7B,eAAO,MAAM,MAAM,iBAAoD,CAAC;AAExE;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,IAAI,GAAI,KAAK,SAAS,EAAE,OAAO,EAAE,CAAC,KAAK,kEAsBnD,CAAC"}
@@ -0,0 +1,4 @@
1
+ export type Email = Record<"fromName" | "from" | "subject" | "content" | "to", string> & {
2
+ textContent?: string;
3
+ };
4
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/server/aws/ses/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,KAAK,GAAG,MAAM,CACxB,UAAU,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,IAAI,EAClD,MAAM,CACP,GAAG;IAAE,WAAW,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qstd",
3
- "version": "0.3.22",
3
+ "version": "0.3.23",
4
4
  "description": "Standard Block component and utilities library with Panda CSS",
5
5
  "author": "malin1",
6
6
  "license": "MIT",
@@ -49,6 +49,7 @@
49
49
  "dependencies": {
50
50
  "@aws-sdk/client-dynamodb": "latest",
51
51
  "@aws-sdk/client-s3": "latest",
52
+ "@aws-sdk/client-ses": "latest",
52
53
  "@aws-sdk/client-sns": "latest",
53
54
  "@aws-sdk/client-sqs": "latest",
54
55
  "@aws-sdk/lib-dynamodb": "latest",