@hogsend/email 0.14.0 → 0.17.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.
- package/package.json +1 -1
- package/src/email-action.ts +8 -0
- package/src/index.ts +1 -0
package/package.json
CHANGED
package/src/email-action.ts
CHANGED
|
@@ -13,6 +13,14 @@ import {
|
|
|
13
13
|
export const EMAIL_ACTION_EVENT_ATTR = "data-hs-event";
|
|
14
14
|
export const EMAIL_ACTION_PROPS_ATTR = "data-hs-props";
|
|
15
15
|
|
|
16
|
+
/**
|
|
17
|
+
* Sentinel `href` for semantic links with no landing page of their own:
|
|
18
|
+
* `href={HOSTED_ANSWER_HREF}` resolves at send time to the engine-hosted
|
|
19
|
+
* answer page (`/v1/t/a/:linkId`) — a thanks page with an optional free-text
|
|
20
|
+
* box whose submission ingests `<event>.comment`.
|
|
21
|
+
*/
|
|
22
|
+
export const HOSTED_ANSWER_HREF = "hogsend://answer";
|
|
23
|
+
|
|
16
24
|
/** Scalar-only payload — non-scalar values don't survive the Hatchet wire. */
|
|
17
25
|
export type EmailActionProperties = Record<
|
|
18
26
|
string,
|