@samva/markup 0.1.1 → 0.1.2

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.
Files changed (38) hide show
  1. package/dist/ast.js +1 -1
  2. package/dist/{checks-CW0nFj5n.js → checks-D-zFQt5R.js} +2 -2
  3. package/dist/checks.js +1 -1
  4. package/dist/compile-sms.d.ts +1 -1
  5. package/dist/compile-whatsapp.d.ts +1 -1
  6. package/dist/components.d.ts +3 -3
  7. package/dist/conditionals.js +1 -1
  8. package/dist/diagnostics.js +2 -2
  9. package/dist/jsx-dev-runtime.d.ts +1 -1
  10. package/dist/{jsx-runtime-fSxcvlx4.d.ts → jsx-runtime-eNIMY87F.d.ts} +2 -2
  11. package/dist/jsx-runtime.d.ts +1 -1
  12. package/dist/ops.js +2 -2
  13. package/dist/{parser-yzjUOGhc.d.ts → parser-DkQKIjDa.d.ts} +11 -2
  14. package/dist/parser.d.ts +2 -2
  15. package/dist/parser.js +48 -9
  16. package/dist/predicate-CvkzT-a2.js +539 -0
  17. package/dist/{predicate-DTtVtLK7.d.ts → predicate-G2SeSvoN.d.ts} +9 -2
  18. package/dist/predicate.d.ts +2 -2
  19. package/dist/predicate.js +2 -417
  20. package/dist/presets/category-mapping.d.ts +1 -1
  21. package/dist/presets/public-gallery.d.ts +2 -490
  22. package/dist/presets/public-gallery.js +2 -1
  23. package/dist/presets/public-handoff.d.ts +2 -68
  24. package/dist/presets/public-handoff.js +110 -24
  25. package/dist/presets/public-preview-artifacts.d.ts +2 -2
  26. package/dist/presets/public-preview.d.ts +2 -1168
  27. package/dist/presets/public-preview.js +17 -17
  28. package/dist/presets/sources.js +17 -17
  29. package/dist/public-gallery-D0Zv0pZE.d.ts +611 -0
  30. package/dist/public-preview-u1Z9aaGq.d.ts +1168 -0
  31. package/dist/render-template.d.ts +2 -2
  32. package/dist/render-template.js +1 -1
  33. package/dist/{variables-3NGLpNTB.d.ts → variables-if1VrV34.d.ts} +2 -2
  34. package/dist/variables.d.ts +1 -1
  35. package/dist/variables.js +1 -1
  36. package/generated/sml-email-language-reference.md +1 -1
  37. package/generated/sml-language-reference.md +1 -1
  38. package/package.json +4 -3
@@ -1,490 +1,2 @@
1
- import { EmailPresetId } from "../presets.js";
2
- //#region presets/public-gallery.d.ts
3
- declare const templateUseCases: readonly ["account-access", "commerce", "product-communication", "lifecycle", "publishing-campaigns"];
4
- declare const templateCollectionFamilies: readonly ["category", "industry", "stage", "style"];
5
- type TemplateUseCase = (typeof templateUseCases)[number];
6
- type TemplateCollectionFamily = (typeof templateCollectionFamilies)[number];
7
- interface PublicTemplate {
8
- readonly presetId: EmailPresetId;
9
- readonly slug: string;
10
- readonly path: `/templates/${string}`;
11
- readonly useCase: TemplateUseCase;
12
- readonly collections: ReadonlyArray<TemplateCollectionId>;
13
- readonly relatedTemplates: ReadonlyArray<EmailPresetId>;
14
- }
15
- interface TemplateCollection {
16
- readonly id: TemplateCollectionId;
17
- readonly family: TemplateCollectionFamily;
18
- readonly slug: string;
19
- readonly path: `/templates/${TemplateCollectionFamily}/${string}`;
20
- readonly templates: ReadonlyArray<EmailPresetId>;
21
- readonly relatedCollections: ReadonlyArray<TemplateCollectionId>;
22
- }
23
- type TemplateCollectionId = "category:transactional" | "category:lifecycle" | "category:marketing" | "category:digest-editorial" | "industry:saas" | "industry:ecommerce" | "industry:developer-tools" | "industry:newsletters-media" | "stage:acquisition" | "stage:activation" | "stage:engagement" | "stage:transaction" | "stage:retention" | "stage:recovery" | "style:minimal" | "style:branded" | "style:editorial" | "style:data-heavy" | "style:single-cta";
24
- declare const publicTemplates: readonly [{
25
- readonly presetId: "welcome";
26
- readonly slug: "welcome-email";
27
- readonly useCase: "lifecycle";
28
- readonly collections: readonly ["category:transactional", "industry:saas", "stage:activation", "style:branded", "style:single-cta"];
29
- readonly relatedTemplates: readonly ["email-verification", "onboarding-step"];
30
- } & Pick<PublicTemplate, "path">, {
31
- readonly presetId: "email-verification";
32
- readonly slug: "email-verification";
33
- readonly useCase: "account-access";
34
- readonly collections: readonly ["category:transactional", "industry:saas", "industry:developer-tools", "stage:activation", "style:minimal", "style:single-cta"];
35
- readonly relatedTemplates: readonly ["otp", "password-reset"];
36
- } & Pick<PublicTemplate, "path">, {
37
- readonly presetId: "otp";
38
- readonly slug: "one-time-passcode";
39
- readonly useCase: "account-access";
40
- readonly collections: readonly ["category:transactional", "industry:saas", "industry:developer-tools", "stage:activation", "style:minimal"];
41
- readonly relatedTemplates: readonly ["email-verification", "password-reset"];
42
- } & Pick<PublicTemplate, "path">, {
43
- readonly presetId: "password-reset";
44
- readonly slug: "password-reset";
45
- readonly useCase: "account-access";
46
- readonly collections: readonly ["category:transactional", "industry:saas", "industry:developer-tools", "stage:recovery", "style:minimal", "style:single-cta"];
47
- readonly relatedTemplates: readonly ["otp", "email-verification"];
48
- } & Pick<PublicTemplate, "path">, {
49
- readonly presetId: "receipt";
50
- readonly slug: "receipt";
51
- readonly useCase: "commerce";
52
- readonly collections: readonly ["category:transactional", "industry:ecommerce", "stage:transaction", "style:data-heavy"];
53
- readonly relatedTemplates: readonly ["payment-failed", "shipping-update"];
54
- } & Pick<PublicTemplate, "path">, {
55
- readonly presetId: "payment-failed";
56
- readonly slug: "payment-failed";
57
- readonly useCase: "commerce";
58
- readonly collections: readonly ["category:transactional", "industry:ecommerce", "industry:saas", "stage:recovery", "style:data-heavy", "style:single-cta"];
59
- readonly relatedTemplates: readonly ["receipt", "trial-ending"];
60
- } & Pick<PublicTemplate, "path">, {
61
- readonly presetId: "shipping-update";
62
- readonly slug: "shipping-update";
63
- readonly useCase: "commerce";
64
- readonly collections: readonly ["category:transactional", "industry:ecommerce", "stage:transaction", "style:data-heavy", "style:single-cta"];
65
- readonly relatedTemplates: readonly ["receipt", "notification"];
66
- } & Pick<PublicTemplate, "path">, {
67
- readonly presetId: "notification";
68
- readonly slug: "activity-notification";
69
- readonly useCase: "product-communication";
70
- readonly collections: readonly ["category:transactional", "industry:saas", "industry:developer-tools", "stage:engagement", "style:minimal", "style:single-cta"];
71
- readonly relatedTemplates: readonly ["team-invite", "product-digest"];
72
- } & Pick<PublicTemplate, "path">, {
73
- readonly presetId: "team-invite";
74
- readonly slug: "team-invite";
75
- readonly useCase: "product-communication";
76
- readonly collections: readonly ["category:transactional", "industry:saas", "industry:developer-tools", "stage:acquisition", "style:branded", "style:single-cta"];
77
- readonly relatedTemplates: readonly ["welcome", "notification"];
78
- } & Pick<PublicTemplate, "path">, {
79
- readonly presetId: "product-digest";
80
- readonly slug: "product-digest";
81
- readonly useCase: "product-communication";
82
- readonly collections: readonly ["category:digest-editorial", "industry:saas", "industry:developer-tools", "stage:engagement", "style:editorial", "style:data-heavy"];
83
- readonly relatedTemplates: readonly ["notification", "newsletter"];
84
- } & Pick<PublicTemplate, "path">, {
85
- readonly presetId: "newsletter";
86
- readonly slug: "newsletter";
87
- readonly useCase: "publishing-campaigns";
88
- readonly collections: readonly ["category:digest-editorial", "industry:newsletters-media", "stage:engagement", "style:editorial", "style:branded"];
89
- readonly relatedTemplates: readonly ["product-digest", "announcement"];
90
- } & Pick<PublicTemplate, "path">, {
91
- readonly presetId: "announcement";
92
- readonly slug: "feature-announcement";
93
- readonly useCase: "publishing-campaigns";
94
- readonly collections: readonly ["category:marketing", "industry:saas", "industry:developer-tools", "stage:engagement", "style:branded", "style:single-cta"];
95
- readonly relatedTemplates: readonly ["newsletter", "event-invite"];
96
- } & Pick<PublicTemplate, "path">, {
97
- readonly presetId: "promo";
98
- readonly slug: "promotion";
99
- readonly useCase: "publishing-campaigns";
100
- readonly collections: readonly ["category:marketing", "industry:ecommerce", "stage:acquisition", "style:branded", "style:single-cta"];
101
- readonly relatedTemplates: readonly ["announcement", "event-invite"];
102
- } & Pick<PublicTemplate, "path">, {
103
- readonly presetId: "event-invite";
104
- readonly slug: "event-invite";
105
- readonly useCase: "publishing-campaigns";
106
- readonly collections: readonly ["category:marketing", "industry:saas", "stage:acquisition", "style:branded", "style:single-cta"];
107
- readonly relatedTemplates: readonly ["announcement", "promo"];
108
- } & Pick<PublicTemplate, "path">, {
109
- readonly presetId: "membership-promo";
110
- readonly slug: "membership-promotion";
111
- readonly useCase: "publishing-campaigns";
112
- readonly collections: readonly ["category:marketing", "industry:ecommerce", "stage:retention", "style:branded", "style:data-heavy"];
113
- readonly relatedTemplates: readonly ["promo", "announcement"];
114
- } & Pick<PublicTemplate, "path">, {
115
- readonly presetId: "onboarding-step";
116
- readonly slug: "onboarding-step";
117
- readonly useCase: "lifecycle";
118
- readonly collections: readonly ["category:lifecycle", "industry:saas", "industry:developer-tools", "stage:activation", "style:branded", "style:single-cta"];
119
- readonly relatedTemplates: readonly ["welcome", "trial-ending"];
120
- } & Pick<PublicTemplate, "path">, {
121
- readonly presetId: "trial-ending";
122
- readonly slug: "trial-ending";
123
- readonly useCase: "lifecycle";
124
- readonly collections: readonly ["category:lifecycle", "industry:saas", "stage:retention", "style:data-heavy", "style:single-cta"];
125
- readonly relatedTemplates: readonly ["onboarding-step", "win-back"];
126
- } & Pick<PublicTemplate, "path">, {
127
- readonly presetId: "win-back";
128
- readonly slug: "win-back";
129
- readonly useCase: "lifecycle";
130
- readonly collections: readonly ["category:lifecycle", "industry:saas", "stage:recovery", "style:branded", "style:single-cta"];
131
- readonly relatedTemplates: readonly ["trial-ending", "feedback-request"];
132
- } & Pick<PublicTemplate, "path">, {
133
- readonly presetId: "feedback-request";
134
- readonly slug: "feedback-request";
135
- readonly useCase: "lifecycle";
136
- readonly collections: readonly ["category:lifecycle", "industry:saas", "stage:retention", "style:minimal", "style:single-cta"];
137
- readonly relatedTemplates: readonly ["win-back", "onboarding-step"];
138
- } & Pick<PublicTemplate, "path">, {
139
- readonly presetId: "editorial-newsletter";
140
- readonly slug: "editorial-newsletter";
141
- readonly useCase: "publishing-campaigns";
142
- readonly collections: readonly ["category:digest-editorial", "industry:newsletters-media", "stage:engagement", "style:editorial", "style:data-heavy"];
143
- readonly relatedTemplates: readonly ["newsletter", "product-digest"];
144
- } & Pick<PublicTemplate, "path">, {
145
- readonly presetId: "member-referral-offer";
146
- readonly slug: "member-referral-offer";
147
- readonly useCase: "publishing-campaigns";
148
- readonly collections: readonly ["category:marketing", "industry:ecommerce", "stage:acquisition", "style:branded", "style:data-heavy"];
149
- readonly relatedTemplates: readonly ["promo", "membership-promo"];
150
- } & Pick<PublicTemplate, "path">, {
151
- readonly presetId: "catalog-sale-newsletter";
152
- readonly slug: "catalog-sale-newsletter";
153
- readonly useCase: "publishing-campaigns";
154
- readonly collections: readonly ["category:marketing", "industry:newsletters-media", "stage:engagement", "style:editorial", "style:data-heavy"];
155
- readonly relatedTemplates: readonly ["announcement", "promo"];
156
- } & Pick<PublicTemplate, "path">, {
157
- readonly presetId: "limited-time-savings";
158
- readonly slug: "limited-time-savings";
159
- readonly useCase: "publishing-campaigns";
160
- readonly collections: readonly ["category:marketing", "industry:ecommerce", "stage:acquisition", "style:minimal", "style:single-cta"];
161
- readonly relatedTemplates: readonly ["promo", "membership-promo"];
162
- } & Pick<PublicTemplate, "path">, {
163
- readonly presetId: "rewards-milestone";
164
- readonly slug: "rewards-milestone";
165
- readonly useCase: "publishing-campaigns";
166
- readonly collections: readonly ["category:marketing", "industry:ecommerce", "stage:engagement", "style:branded", "style:data-heavy"];
167
- readonly relatedTemplates: readonly ["membership-promo", "promo"];
168
- } & Pick<PublicTemplate, "path">, {
169
- readonly presetId: "order-delivered";
170
- readonly slug: "order-delivered";
171
- readonly useCase: "commerce";
172
- readonly collections: readonly ["category:transactional", "industry:ecommerce", "stage:transaction", "style:data-heavy"];
173
- readonly relatedTemplates: readonly ["shipping-update", "receipt"];
174
- } & Pick<PublicTemplate, "path">, {
175
- readonly presetId: "travel-rewards-promo";
176
- readonly slug: "travel-rewards-promo";
177
- readonly useCase: "publishing-campaigns";
178
- readonly collections: readonly ["category:marketing", "industry:ecommerce", "stage:retention", "style:branded", "style:data-heavy"];
179
- readonly relatedTemplates: readonly ["membership-promo", "promo"];
180
- } & Pick<PublicTemplate, "path">, {
181
- readonly presetId: "events-roundup";
182
- readonly slug: "events-roundup";
183
- readonly useCase: "publishing-campaigns";
184
- readonly collections: readonly ["category:digest-editorial", "industry:newsletters-media", "stage:engagement", "style:editorial", "style:data-heavy"];
185
- readonly relatedTemplates: readonly ["newsletter", "event-invite"];
186
- } & Pick<PublicTemplate, "path">, {
187
- readonly presetId: "product-onboarding-tour";
188
- readonly slug: "product-onboarding-tour";
189
- readonly useCase: "lifecycle";
190
- readonly collections: readonly ["category:lifecycle", "industry:saas", "stage:activation", "style:branded", "style:data-heavy"];
191
- readonly relatedTemplates: readonly ["onboarding-step", "welcome"];
192
- } & Pick<PublicTemplate, "path">, {
193
- readonly presetId: "product-updates-roundup";
194
- readonly slug: "product-updates-roundup";
195
- readonly useCase: "product-communication";
196
- readonly collections: readonly ["category:marketing", "industry:developer-tools", "stage:engagement", "style:branded", "style:single-cta"];
197
- readonly relatedTemplates: readonly ["announcement", "product-digest"];
198
- } & Pick<PublicTemplate, "path">, {
199
- readonly presetId: "flash-getaway-offer";
200
- readonly slug: "flash-getaway-offer";
201
- readonly useCase: "publishing-campaigns";
202
- readonly collections: readonly ["category:marketing", "industry:ecommerce", "stage:acquisition", "style:branded", "style:single-cta"];
203
- readonly relatedTemplates: readonly ["promo", "membership-promo"];
204
- } & Pick<PublicTemplate, "path">, {
205
- readonly presetId: "membership-benefits-promo";
206
- readonly slug: "membership-benefits-promo";
207
- readonly useCase: "publishing-campaigns";
208
- readonly collections: readonly ["category:marketing", "industry:ecommerce", "stage:retention", "style:branded", "style:data-heavy"];
209
- readonly relatedTemplates: readonly ["membership-promo", "promo"];
210
- } & Pick<PublicTemplate, "path">, {
211
- readonly presetId: "industry-news-digest";
212
- readonly slug: "industry-news-digest";
213
- readonly useCase: "publishing-campaigns";
214
- readonly collections: readonly ["category:digest-editorial", "industry:newsletters-media", "stage:engagement", "style:editorial", "style:data-heavy"];
215
- readonly relatedTemplates: readonly ["newsletter", "product-digest"];
216
- } & Pick<PublicTemplate, "path">, {
217
- readonly presetId: "weekly-deals-circular";
218
- readonly slug: "weekly-deals-circular";
219
- readonly useCase: "publishing-campaigns";
220
- readonly collections: readonly ["category:marketing", "industry:ecommerce", "stage:engagement", "style:branded", "style:data-heavy"];
221
- readonly relatedTemplates: readonly ["promo", "membership-promo"];
222
- } & Pick<PublicTemplate, "path">, {
223
- readonly presetId: "data-sharing-review";
224
- readonly slug: "data-sharing-review";
225
- readonly useCase: "product-communication";
226
- readonly collections: readonly ["category:transactional", "industry:saas", "stage:engagement", "style:minimal", "style:single-cta"];
227
- readonly relatedTemplates: readonly ["notification", "team-invite"];
228
- } & Pick<PublicTemplate, "path">, {
229
- readonly presetId: "seasonal-sale-flyer";
230
- readonly slug: "seasonal-sale-flyer";
231
- readonly useCase: "publishing-campaigns";
232
- readonly collections: readonly ["category:marketing", "industry:ecommerce", "stage:acquisition", "style:branded", "style:data-heavy"];
233
- readonly relatedTemplates: readonly ["promo", "announcement"];
234
- } & Pick<PublicTemplate, "path">, {
235
- readonly presetId: "setup-checklist";
236
- readonly slug: "setup-checklist";
237
- readonly useCase: "lifecycle";
238
- readonly collections: readonly ["category:lifecycle", "industry:saas", "stage:activation", "style:minimal", "style:single-cta"];
239
- readonly relatedTemplates: readonly ["welcome", "onboarding-step"];
240
- } & Pick<PublicTemplate, "path">, {
241
- readonly presetId: "feature-release-roundup";
242
- readonly slug: "feature-release-roundup";
243
- readonly useCase: "product-communication";
244
- readonly collections: readonly ["category:marketing", "industry:developer-tools", "stage:engagement", "style:branded", "style:data-heavy"];
245
- readonly relatedTemplates: readonly ["announcement", "product-digest"];
246
- } & Pick<PublicTemplate, "path">, {
247
- readonly presetId: "season-clearance-promo";
248
- readonly slug: "season-clearance-promo";
249
- readonly useCase: "publishing-campaigns";
250
- readonly collections: readonly ["category:marketing", "industry:ecommerce", "stage:acquisition", "style:branded", "style:single-cta"];
251
- readonly relatedTemplates: readonly ["promo", "announcement"];
252
- } & Pick<PublicTemplate, "path">];
253
- declare const templateCollections: readonly [TemplateCollection, TemplateCollection, TemplateCollection, TemplateCollection, TemplateCollection, TemplateCollection, TemplateCollection, TemplateCollection, TemplateCollection, TemplateCollection, TemplateCollection, TemplateCollection, TemplateCollection, TemplateCollection, TemplateCollection, TemplateCollection, TemplateCollection, TemplateCollection, TemplateCollection];
254
- declare const publicTemplateGallery: {
255
- readonly hubPath: "/templates";
256
- readonly useCases: readonly ["account-access", "commerce", "product-communication", "lifecycle", "publishing-campaigns"];
257
- readonly templates: readonly [{
258
- readonly presetId: "welcome";
259
- readonly slug: "welcome-email";
260
- readonly useCase: "lifecycle";
261
- readonly collections: readonly ["category:transactional", "industry:saas", "stage:activation", "style:branded", "style:single-cta"];
262
- readonly relatedTemplates: readonly ["email-verification", "onboarding-step"];
263
- } & Pick<PublicTemplate, "path">, {
264
- readonly presetId: "email-verification";
265
- readonly slug: "email-verification";
266
- readonly useCase: "account-access";
267
- readonly collections: readonly ["category:transactional", "industry:saas", "industry:developer-tools", "stage:activation", "style:minimal", "style:single-cta"];
268
- readonly relatedTemplates: readonly ["otp", "password-reset"];
269
- } & Pick<PublicTemplate, "path">, {
270
- readonly presetId: "otp";
271
- readonly slug: "one-time-passcode";
272
- readonly useCase: "account-access";
273
- readonly collections: readonly ["category:transactional", "industry:saas", "industry:developer-tools", "stage:activation", "style:minimal"];
274
- readonly relatedTemplates: readonly ["email-verification", "password-reset"];
275
- } & Pick<PublicTemplate, "path">, {
276
- readonly presetId: "password-reset";
277
- readonly slug: "password-reset";
278
- readonly useCase: "account-access";
279
- readonly collections: readonly ["category:transactional", "industry:saas", "industry:developer-tools", "stage:recovery", "style:minimal", "style:single-cta"];
280
- readonly relatedTemplates: readonly ["otp", "email-verification"];
281
- } & Pick<PublicTemplate, "path">, {
282
- readonly presetId: "receipt";
283
- readonly slug: "receipt";
284
- readonly useCase: "commerce";
285
- readonly collections: readonly ["category:transactional", "industry:ecommerce", "stage:transaction", "style:data-heavy"];
286
- readonly relatedTemplates: readonly ["payment-failed", "shipping-update"];
287
- } & Pick<PublicTemplate, "path">, {
288
- readonly presetId: "payment-failed";
289
- readonly slug: "payment-failed";
290
- readonly useCase: "commerce";
291
- readonly collections: readonly ["category:transactional", "industry:ecommerce", "industry:saas", "stage:recovery", "style:data-heavy", "style:single-cta"];
292
- readonly relatedTemplates: readonly ["receipt", "trial-ending"];
293
- } & Pick<PublicTemplate, "path">, {
294
- readonly presetId: "shipping-update";
295
- readonly slug: "shipping-update";
296
- readonly useCase: "commerce";
297
- readonly collections: readonly ["category:transactional", "industry:ecommerce", "stage:transaction", "style:data-heavy", "style:single-cta"];
298
- readonly relatedTemplates: readonly ["receipt", "notification"];
299
- } & Pick<PublicTemplate, "path">, {
300
- readonly presetId: "notification";
301
- readonly slug: "activity-notification";
302
- readonly useCase: "product-communication";
303
- readonly collections: readonly ["category:transactional", "industry:saas", "industry:developer-tools", "stage:engagement", "style:minimal", "style:single-cta"];
304
- readonly relatedTemplates: readonly ["team-invite", "product-digest"];
305
- } & Pick<PublicTemplate, "path">, {
306
- readonly presetId: "team-invite";
307
- readonly slug: "team-invite";
308
- readonly useCase: "product-communication";
309
- readonly collections: readonly ["category:transactional", "industry:saas", "industry:developer-tools", "stage:acquisition", "style:branded", "style:single-cta"];
310
- readonly relatedTemplates: readonly ["welcome", "notification"];
311
- } & Pick<PublicTemplate, "path">, {
312
- readonly presetId: "product-digest";
313
- readonly slug: "product-digest";
314
- readonly useCase: "product-communication";
315
- readonly collections: readonly ["category:digest-editorial", "industry:saas", "industry:developer-tools", "stage:engagement", "style:editorial", "style:data-heavy"];
316
- readonly relatedTemplates: readonly ["notification", "newsletter"];
317
- } & Pick<PublicTemplate, "path">, {
318
- readonly presetId: "newsletter";
319
- readonly slug: "newsletter";
320
- readonly useCase: "publishing-campaigns";
321
- readonly collections: readonly ["category:digest-editorial", "industry:newsletters-media", "stage:engagement", "style:editorial", "style:branded"];
322
- readonly relatedTemplates: readonly ["product-digest", "announcement"];
323
- } & Pick<PublicTemplate, "path">, {
324
- readonly presetId: "announcement";
325
- readonly slug: "feature-announcement";
326
- readonly useCase: "publishing-campaigns";
327
- readonly collections: readonly ["category:marketing", "industry:saas", "industry:developer-tools", "stage:engagement", "style:branded", "style:single-cta"];
328
- readonly relatedTemplates: readonly ["newsletter", "event-invite"];
329
- } & Pick<PublicTemplate, "path">, {
330
- readonly presetId: "promo";
331
- readonly slug: "promotion";
332
- readonly useCase: "publishing-campaigns";
333
- readonly collections: readonly ["category:marketing", "industry:ecommerce", "stage:acquisition", "style:branded", "style:single-cta"];
334
- readonly relatedTemplates: readonly ["announcement", "event-invite"];
335
- } & Pick<PublicTemplate, "path">, {
336
- readonly presetId: "event-invite";
337
- readonly slug: "event-invite";
338
- readonly useCase: "publishing-campaigns";
339
- readonly collections: readonly ["category:marketing", "industry:saas", "stage:acquisition", "style:branded", "style:single-cta"];
340
- readonly relatedTemplates: readonly ["announcement", "promo"];
341
- } & Pick<PublicTemplate, "path">, {
342
- readonly presetId: "membership-promo";
343
- readonly slug: "membership-promotion";
344
- readonly useCase: "publishing-campaigns";
345
- readonly collections: readonly ["category:marketing", "industry:ecommerce", "stage:retention", "style:branded", "style:data-heavy"];
346
- readonly relatedTemplates: readonly ["promo", "announcement"];
347
- } & Pick<PublicTemplate, "path">, {
348
- readonly presetId: "onboarding-step";
349
- readonly slug: "onboarding-step";
350
- readonly useCase: "lifecycle";
351
- readonly collections: readonly ["category:lifecycle", "industry:saas", "industry:developer-tools", "stage:activation", "style:branded", "style:single-cta"];
352
- readonly relatedTemplates: readonly ["welcome", "trial-ending"];
353
- } & Pick<PublicTemplate, "path">, {
354
- readonly presetId: "trial-ending";
355
- readonly slug: "trial-ending";
356
- readonly useCase: "lifecycle";
357
- readonly collections: readonly ["category:lifecycle", "industry:saas", "stage:retention", "style:data-heavy", "style:single-cta"];
358
- readonly relatedTemplates: readonly ["onboarding-step", "win-back"];
359
- } & Pick<PublicTemplate, "path">, {
360
- readonly presetId: "win-back";
361
- readonly slug: "win-back";
362
- readonly useCase: "lifecycle";
363
- readonly collections: readonly ["category:lifecycle", "industry:saas", "stage:recovery", "style:branded", "style:single-cta"];
364
- readonly relatedTemplates: readonly ["trial-ending", "feedback-request"];
365
- } & Pick<PublicTemplate, "path">, {
366
- readonly presetId: "feedback-request";
367
- readonly slug: "feedback-request";
368
- readonly useCase: "lifecycle";
369
- readonly collections: readonly ["category:lifecycle", "industry:saas", "stage:retention", "style:minimal", "style:single-cta"];
370
- readonly relatedTemplates: readonly ["win-back", "onboarding-step"];
371
- } & Pick<PublicTemplate, "path">, {
372
- readonly presetId: "editorial-newsletter";
373
- readonly slug: "editorial-newsletter";
374
- readonly useCase: "publishing-campaigns";
375
- readonly collections: readonly ["category:digest-editorial", "industry:newsletters-media", "stage:engagement", "style:editorial", "style:data-heavy"];
376
- readonly relatedTemplates: readonly ["newsletter", "product-digest"];
377
- } & Pick<PublicTemplate, "path">, {
378
- readonly presetId: "member-referral-offer";
379
- readonly slug: "member-referral-offer";
380
- readonly useCase: "publishing-campaigns";
381
- readonly collections: readonly ["category:marketing", "industry:ecommerce", "stage:acquisition", "style:branded", "style:data-heavy"];
382
- readonly relatedTemplates: readonly ["promo", "membership-promo"];
383
- } & Pick<PublicTemplate, "path">, {
384
- readonly presetId: "catalog-sale-newsletter";
385
- readonly slug: "catalog-sale-newsletter";
386
- readonly useCase: "publishing-campaigns";
387
- readonly collections: readonly ["category:marketing", "industry:newsletters-media", "stage:engagement", "style:editorial", "style:data-heavy"];
388
- readonly relatedTemplates: readonly ["announcement", "promo"];
389
- } & Pick<PublicTemplate, "path">, {
390
- readonly presetId: "limited-time-savings";
391
- readonly slug: "limited-time-savings";
392
- readonly useCase: "publishing-campaigns";
393
- readonly collections: readonly ["category:marketing", "industry:ecommerce", "stage:acquisition", "style:minimal", "style:single-cta"];
394
- readonly relatedTemplates: readonly ["promo", "membership-promo"];
395
- } & Pick<PublicTemplate, "path">, {
396
- readonly presetId: "rewards-milestone";
397
- readonly slug: "rewards-milestone";
398
- readonly useCase: "publishing-campaigns";
399
- readonly collections: readonly ["category:marketing", "industry:ecommerce", "stage:engagement", "style:branded", "style:data-heavy"];
400
- readonly relatedTemplates: readonly ["membership-promo", "promo"];
401
- } & Pick<PublicTemplate, "path">, {
402
- readonly presetId: "order-delivered";
403
- readonly slug: "order-delivered";
404
- readonly useCase: "commerce";
405
- readonly collections: readonly ["category:transactional", "industry:ecommerce", "stage:transaction", "style:data-heavy"];
406
- readonly relatedTemplates: readonly ["shipping-update", "receipt"];
407
- } & Pick<PublicTemplate, "path">, {
408
- readonly presetId: "travel-rewards-promo";
409
- readonly slug: "travel-rewards-promo";
410
- readonly useCase: "publishing-campaigns";
411
- readonly collections: readonly ["category:marketing", "industry:ecommerce", "stage:retention", "style:branded", "style:data-heavy"];
412
- readonly relatedTemplates: readonly ["membership-promo", "promo"];
413
- } & Pick<PublicTemplate, "path">, {
414
- readonly presetId: "events-roundup";
415
- readonly slug: "events-roundup";
416
- readonly useCase: "publishing-campaigns";
417
- readonly collections: readonly ["category:digest-editorial", "industry:newsletters-media", "stage:engagement", "style:editorial", "style:data-heavy"];
418
- readonly relatedTemplates: readonly ["newsletter", "event-invite"];
419
- } & Pick<PublicTemplate, "path">, {
420
- readonly presetId: "product-onboarding-tour";
421
- readonly slug: "product-onboarding-tour";
422
- readonly useCase: "lifecycle";
423
- readonly collections: readonly ["category:lifecycle", "industry:saas", "stage:activation", "style:branded", "style:data-heavy"];
424
- readonly relatedTemplates: readonly ["onboarding-step", "welcome"];
425
- } & Pick<PublicTemplate, "path">, {
426
- readonly presetId: "product-updates-roundup";
427
- readonly slug: "product-updates-roundup";
428
- readonly useCase: "product-communication";
429
- readonly collections: readonly ["category:marketing", "industry:developer-tools", "stage:engagement", "style:branded", "style:single-cta"];
430
- readonly relatedTemplates: readonly ["announcement", "product-digest"];
431
- } & Pick<PublicTemplate, "path">, {
432
- readonly presetId: "flash-getaway-offer";
433
- readonly slug: "flash-getaway-offer";
434
- readonly useCase: "publishing-campaigns";
435
- readonly collections: readonly ["category:marketing", "industry:ecommerce", "stage:acquisition", "style:branded", "style:single-cta"];
436
- readonly relatedTemplates: readonly ["promo", "membership-promo"];
437
- } & Pick<PublicTemplate, "path">, {
438
- readonly presetId: "membership-benefits-promo";
439
- readonly slug: "membership-benefits-promo";
440
- readonly useCase: "publishing-campaigns";
441
- readonly collections: readonly ["category:marketing", "industry:ecommerce", "stage:retention", "style:branded", "style:data-heavy"];
442
- readonly relatedTemplates: readonly ["membership-promo", "promo"];
443
- } & Pick<PublicTemplate, "path">, {
444
- readonly presetId: "industry-news-digest";
445
- readonly slug: "industry-news-digest";
446
- readonly useCase: "publishing-campaigns";
447
- readonly collections: readonly ["category:digest-editorial", "industry:newsletters-media", "stage:engagement", "style:editorial", "style:data-heavy"];
448
- readonly relatedTemplates: readonly ["newsletter", "product-digest"];
449
- } & Pick<PublicTemplate, "path">, {
450
- readonly presetId: "weekly-deals-circular";
451
- readonly slug: "weekly-deals-circular";
452
- readonly useCase: "publishing-campaigns";
453
- readonly collections: readonly ["category:marketing", "industry:ecommerce", "stage:engagement", "style:branded", "style:data-heavy"];
454
- readonly relatedTemplates: readonly ["promo", "membership-promo"];
455
- } & Pick<PublicTemplate, "path">, {
456
- readonly presetId: "data-sharing-review";
457
- readonly slug: "data-sharing-review";
458
- readonly useCase: "product-communication";
459
- readonly collections: readonly ["category:transactional", "industry:saas", "stage:engagement", "style:minimal", "style:single-cta"];
460
- readonly relatedTemplates: readonly ["notification", "team-invite"];
461
- } & Pick<PublicTemplate, "path">, {
462
- readonly presetId: "seasonal-sale-flyer";
463
- readonly slug: "seasonal-sale-flyer";
464
- readonly useCase: "publishing-campaigns";
465
- readonly collections: readonly ["category:marketing", "industry:ecommerce", "stage:acquisition", "style:branded", "style:data-heavy"];
466
- readonly relatedTemplates: readonly ["promo", "announcement"];
467
- } & Pick<PublicTemplate, "path">, {
468
- readonly presetId: "setup-checklist";
469
- readonly slug: "setup-checklist";
470
- readonly useCase: "lifecycle";
471
- readonly collections: readonly ["category:lifecycle", "industry:saas", "stage:activation", "style:minimal", "style:single-cta"];
472
- readonly relatedTemplates: readonly ["welcome", "onboarding-step"];
473
- } & Pick<PublicTemplate, "path">, {
474
- readonly presetId: "feature-release-roundup";
475
- readonly slug: "feature-release-roundup";
476
- readonly useCase: "product-communication";
477
- readonly collections: readonly ["category:marketing", "industry:developer-tools", "stage:engagement", "style:branded", "style:data-heavy"];
478
- readonly relatedTemplates: readonly ["announcement", "product-digest"];
479
- } & Pick<PublicTemplate, "path">, {
480
- readonly presetId: "season-clearance-promo";
481
- readonly slug: "season-clearance-promo";
482
- readonly useCase: "publishing-campaigns";
483
- readonly collections: readonly ["category:marketing", "industry:ecommerce", "stage:acquisition", "style:branded", "style:single-cta"];
484
- readonly relatedTemplates: readonly ["promo", "announcement"];
485
- } & Pick<PublicTemplate, "path">];
486
- readonly collections: readonly [TemplateCollection, TemplateCollection, TemplateCollection, TemplateCollection, TemplateCollection, TemplateCollection, TemplateCollection, TemplateCollection, TemplateCollection, TemplateCollection, TemplateCollection, TemplateCollection, TemplateCollection, TemplateCollection, TemplateCollection, TemplateCollection, TemplateCollection, TemplateCollection, TemplateCollection];
487
- };
488
- //#endregion
489
- export { PublicTemplate, TemplateCollection, TemplateCollectionFamily, TemplateCollectionId, TemplateUseCase, publicTemplateGallery, publicTemplates, templateCollectionFamilies, templateCollections, templateUseCases };
490
- //# sourceMappingURL=public-gallery.d.ts.map
1
+ import { a as TemplateUseCase, c as publicTemplates, d as templateUseCases, i as TemplateCollectionId, l as templateCollectionFamilies, n as TemplateCollection, o as isMadeWithSamvaTemplate, r as TemplateCollectionFamily, s as publicTemplateGallery, t as PublicTemplate, u as templateCollections } from "../public-gallery-D0Zv0pZE.js";
2
+ export { PublicTemplate, TemplateCollection, TemplateCollectionFamily, TemplateCollectionId, TemplateUseCase, isMadeWithSamvaTemplate, publicTemplateGallery, publicTemplates, templateCollectionFamilies, templateCollections, templateUseCases };
@@ -12,6 +12,7 @@ const templateCollectionFamilies = [
12
12
  "stage",
13
13
  "style"
14
14
  ];
15
+ const isMadeWithSamvaTemplate = (template) => template.provenance !== void 0;
15
16
  const template = (value) => ({
16
17
  ...value,
17
18
  path: `/templates/${value.slug}`
@@ -558,6 +559,6 @@ const publicTemplateGallery = {
558
559
  collections: templateCollections
559
560
  };
560
561
  //#endregion
561
- export { publicTemplateGallery, publicTemplates, templateCollectionFamilies, templateCollections, templateUseCases };
562
+ export { isMadeWithSamvaTemplate, publicTemplateGallery, publicTemplates, templateCollectionFamilies, templateCollections, templateUseCases };
562
563
 
563
564
  //# sourceMappingURL=public-gallery.js.map
@@ -1,68 +1,2 @@
1
- import { d as Channel } from "../ast-DAhnAvQN.js";
2
- import { PresetCategory } from "../presets.js";
3
- import { TemplateCollectionId, TemplateUseCase } from "./public-gallery.js";
4
- import { PublicTemplatePreview } from "./public-preview.js";
5
- import { Result } from "effect";
6
- //#region presets/public-handoff.d.ts
7
- interface ApprovedPublicTemplateArtifact {
8
- readonly approval: {
9
- readonly state: "draft" | "approved" | "rejected";
10
- readonly approvedBy: string;
11
- /** Stable ISO-8601 timestamp supplied by the owner. */
12
- readonly approvedAt: string;
13
- };
14
- readonly preset: {
15
- readonly id: string;
16
- readonly channel: Channel;
17
- readonly category: PresetCategory;
18
- readonly name: string;
19
- readonly description: string;
20
- readonly variables: ReadonlyArray<string>;
21
- readonly source: string;
22
- };
23
- readonly gallery: {
24
- readonly slug: string;
25
- readonly useCase: TemplateUseCase;
26
- readonly collections: ReadonlyArray<TemplateCollectionId>;
27
- readonly relatedTemplates: ReadonlyArray<string>;
28
- };
29
- readonly preview: PublicTemplatePreview;
30
- readonly publicMetadata: {
31
- readonly cardTitle: string;
32
- readonly cardDescription: string;
33
- readonly guidance: ReadonlyArray<string>;
34
- readonly variableDescriptions: Readonly<Record<string, string>>;
35
- readonly seo: {
36
- readonly title: string;
37
- readonly description: string;
38
- };
39
- };
40
- }
41
- interface ValidatedPublicTemplateArtifact {
42
- readonly preset: Omit<ApprovedPublicTemplateArtifact["preset"], "source">;
43
- readonly source: string;
44
- readonly gallery: ApprovedPublicTemplateArtifact["gallery"] & {
45
- readonly path: `/templates/${string}`;
46
- };
47
- readonly preview: ApprovedPublicTemplateArtifact["preview"];
48
- readonly publicMetadata: ApprovedPublicTemplateArtifact["publicMetadata"];
49
- readonly approval: ApprovedPublicTemplateArtifact["approval"] & {
50
- readonly state: "approved";
51
- };
52
- }
53
- type PublicHandoffIssueCode = "approval" | "identity" | "duplicate-id" | "duplicate-slug" | "source" | "channel" | "variables" | "sample-data" | "assets" | "public-metadata" | "reference";
54
- interface PublicHandoffIssue {
55
- readonly artifactId: string;
56
- readonly code: PublicHandoffIssueCode;
57
- readonly message: string;
58
- }
59
- /**
60
- * Validates explicitly supplied, owner-approved artifacts without filesystem,
61
- * network, persistence, or discovery. Successful output is a projection for
62
- * the existing preset, public-gallery, preview, and editorial contracts; this
63
- * function never registers or publishes it.
64
- */
65
- declare const validatePublicTemplateHandoff: (artifacts: ReadonlyArray<ApprovedPublicTemplateArtifact>) => Result.Result<ReadonlyArray<ValidatedPublicTemplateArtifact>, ReadonlyArray<PublicHandoffIssue>>;
66
- //#endregion
67
- export { ApprovedPublicTemplateArtifact, PublicHandoffIssue, PublicHandoffIssueCode, ValidatedPublicTemplateArtifact, validatePublicTemplateHandoff };
68
- //# sourceMappingURL=public-handoff.d.ts.map
1
+ import { C as validatePublicTemplateHandoff, S as unsupportedPublicTemplateFontTokens, _ as TemplateReferenceProvenance, b as isSafePublicTemplateAsset, f as ApprovedPublicTemplateArtifact, g as TemplateReferenceProjection, h as TemplateReferencePacket, m as PublicHandoffIssueCode, p as PublicHandoffIssue, v as ValidatedPublicTemplateArtifact, x as toTemplateReferencePacket, y as emitTemplateReferencePacket } from "../public-gallery-D0Zv0pZE.js";
2
+ export { ApprovedPublicTemplateArtifact, PublicHandoffIssue, PublicHandoffIssueCode, TemplateReferencePacket, TemplateReferenceProjection, TemplateReferenceProvenance, ValidatedPublicTemplateArtifact, emitTemplateReferencePacket, isSafePublicTemplateAsset, toTemplateReferencePacket, unsupportedPublicTemplateFontTokens, validatePublicTemplateHandoff };