@samva/markup 0.7.0 → 0.9.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/AGENTS.md +104 -37
- package/README.md +188 -52
- package/dist/assets-C5duwTya.d.ts +40 -0
- package/dist/brand-B-0bN_Ir.d.ts +88 -0
- package/dist/{render-aaJBnsXK.js → cascade-t6kxlgEI.js} +130 -160
- package/dist/channel-edit.d.ts +121 -0
- package/dist/channel-edit.js +609 -0
- package/dist/channel-specs-B6M_HlaV.js +29 -0
- package/dist/channel-specs-C2feJwuP.d.ts +13 -0
- package/dist/compatibility-DbISoFIq.js +589 -0
- package/dist/compiler.d.ts +19 -249
- package/dist/compiler.js +10 -1408
- package/dist/{css-COcFOT1y.d.ts → css-BVQKICKC.d.ts} +30 -4
- package/dist/diagnostic-codes.d.ts +403 -0
- package/dist/diagnostic-codes.js +399 -0
- package/dist/{diagnostics-BMYtBCQk.d.ts → diagnostics-B-Gym34R.d.ts} +8 -4
- package/dist/diagnostics.d.ts +31 -2
- package/dist/diagnostics.js +1 -19
- package/dist/{elements-BzjjnoCS.d.ts → elements-cqldpaJt.d.ts} +3 -3
- package/dist/email/assets.d.ts +2 -0
- package/dist/email/assets.js +63 -0
- package/dist/email/brand-footer.d.ts +34 -0
- package/dist/email/brand-footer.js +63 -0
- package/dist/email/brand.d.ts +2 -0
- package/dist/email/brand.js +148 -0
- package/dist/email/components.d.ts +21 -10
- package/dist/email/components.js +46 -11
- package/dist/email/diagnostics.d.ts +2 -2
- package/dist/email/diagnostics.js +2 -1
- package/dist/email/elements.d.ts +1 -1
- package/dist/email/html.d.ts +2 -42
- package/dist/email/html.js +56 -2
- package/dist/email/jsx-dev-runtime.d.ts +2 -2
- package/dist/email/jsx-runtime.d.ts +1 -1
- package/dist/email/render.d.ts +10 -13
- package/dist/email/render.js +163 -6
- package/dist/email/text.d.ts +1 -1
- package/dist/fmt.d.ts +32 -0
- package/dist/fmt.js +174 -0
- package/dist/html-BJepOwZ4.d.ts +56 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/dist/ir-aaqNE987.d.ts +252 -0
- package/dist/ir.d.ts +2 -0
- package/dist/ir.js +7 -0
- package/dist/preview-Ekdg1dXG.d.ts +100 -0
- package/dist/preview.d.ts +2 -0
- package/dist/preview.js +160 -0
- package/dist/profile-BH-OtdDA.js +3670 -0
- package/dist/render-ir.d.ts +19 -0
- package/dist/render-ir.js +826 -0
- package/dist/sms-segments.d.ts +13 -2
- package/dist/sms.d.ts +16 -0
- package/dist/sms.js +12 -0
- package/dist/{email/source-edit.d.ts → source-edit.d.ts} +55 -6
- package/dist/source-edit.js +343 -0
- package/dist/source-locations-C8wCsiAy.d.ts +23 -0
- package/dist/source-locations.d.ts +2 -2
- package/dist/source-locations.js +3 -89
- package/dist/static.d.ts +57 -0
- package/dist/static.js +69 -0
- package/dist/tailwind-CMYpZf1v.js +614 -0
- package/dist/template-_QE_rQND.d.ts +65 -0
- package/dist/template.d.ts +2 -2
- package/dist/template.js +15 -10
- package/dist/theme-css-hFqcPSar.js +587 -0
- package/dist/theme-css.d.ts +57 -16
- package/dist/theme-css.js +2 -509
- package/dist/theme-imports-lvBw3AD1.js +109 -0
- package/dist/transform-Ct2OMkFN.d.ts +153 -0
- package/dist/unsubscribe-link-CoesnQDU.js +26 -0
- package/dist/whatsapp.d.ts +57 -0
- package/dist/whatsapp.js +22 -0
- package/generated/contract.json +1782 -0
- package/generated/reference.md +353 -0
- package/package.json +56 -154
- package/samva-brand.d.ts +14 -0
- package/skills/sml/SKILL.md +123 -0
- package/dist/ast-BrDtApwS.d.ts +0 -107
- package/dist/ast.d.ts +0 -2
- package/dist/ast.js +0 -124
- package/dist/candidate.d.ts +0 -29
- package/dist/candidate.js +0 -88
- package/dist/catalog-60eaYC7b.d.ts +0 -356
- package/dist/checks-DBweSIPN.js +0 -58954
- package/dist/checks.d.ts +0 -33
- package/dist/checks.js +0 -2
- package/dist/classes.d.ts +0 -27
- package/dist/classes.js +0 -184
- package/dist/compile-sms.d.ts +0 -28
- package/dist/compile-sms.js +0 -44
- package/dist/compile-whatsapp.d.ts +0 -56
- package/dist/compile-whatsapp.js +0 -186
- package/dist/compile.d.ts +0 -18
- package/dist/compile.js +0 -29
- package/dist/components.d.ts +0 -289
- package/dist/components.js +0 -106
- package/dist/conditionals.d.ts +0 -10
- package/dist/conditionals.js +0 -74
- package/dist/corpus-BjYMqOoY.d.ts +0 -106
- package/dist/diagnostics-OcQKQYSY.d.ts +0 -49
- package/dist/email/selection.d.ts +0 -91
- package/dist/email/selection.js +0 -91
- package/dist/email/source-edit.js +0 -185
- package/dist/email/stylesheets.d.ts +0 -15
- package/dist/email/stylesheets.js +0 -45
- package/dist/emit.d.ts +0 -51
- package/dist/emit.js +0 -151
- package/dist/footer.d.ts +0 -66
- package/dist/footer.js +0 -93
- package/dist/interpolate.d.ts +0 -24
- package/dist/interpolate.js +0 -43
- package/dist/jsx-dev-runtime.d.ts +0 -11
- package/dist/jsx-dev-runtime.js +0 -15
- package/dist/jsx-runtime-I-1nCtl2.d.ts +0 -57
- package/dist/jsx-runtime.d.ts +0 -2
- package/dist/jsx-runtime.js +0 -121
- package/dist/lexer.d.ts +0 -60
- package/dist/lexer.js +0 -281
- package/dist/model.d.ts +0 -24
- package/dist/model.js +0 -77
- package/dist/ops-2aiiYO7m.js +0 -630
- package/dist/ops.d.ts +0 -114
- package/dist/ops.js +0 -2
- package/dist/parser-t29cHLVL.d.ts +0 -396
- package/dist/parser.d.ts +0 -2
- package/dist/parser.js +0 -859
- package/dist/predicate-BI6uRRM-.js +0 -549
- package/dist/predicate-M-05Nd7R.d.ts +0 -56
- package/dist/predicate.d.ts +0 -2
- package/dist/predicate.js +0 -2
- package/dist/presets/category-mapping.d.ts +0 -13
- package/dist/presets/category-mapping.js +0 -49
- package/dist/presets/corpus.d.ts +0 -2
- package/dist/presets/corpus.js +0 -194
- package/dist/presets/public-gallery.d.ts +0 -266
- package/dist/presets/public-gallery.js +0 -916
- package/dist/presets/public-handoff.d.ts +0 -164
- package/dist/presets/public-handoff.js +0 -361
- package/dist/presets/public-preview-artifacts.d.ts +0 -43
- package/dist/presets/public-preview-artifacts.js +0 -104
- package/dist/presets/public-preview.d.ts +0 -61
- package/dist/presets/public-preview.js +0 -83
- package/dist/presets/showcase.d.ts +0 -2
- package/dist/presets/showcase.js +0 -627
- package/dist/presets/sources.d.ts +0 -38
- package/dist/presets/sources.js +0 -6083
- package/dist/presets.d.ts +0 -2
- package/dist/presets.js +0 -881
- package/dist/printer.d.ts +0 -6
- package/dist/printer.js +0 -122
- package/dist/registry.d.ts +0 -42
- package/dist/registry.js +0 -646
- package/dist/render-template.d.ts +0 -45
- package/dist/render-template.js +0 -76
- package/dist/showcase-DGZAWn4Z.d.ts +0 -456
- package/dist/sms-segments-y4FpPilJ.d.ts +0 -13
- package/dist/source-locations-DrCM82Ym.d.ts +0 -67
- package/dist/template-DWftqh4x.d.ts +0 -60
- package/dist/theme-6ApjjiBo.d.ts +0 -116
- package/dist/theme.d.ts +0 -2
- package/dist/theme.js +0 -118
- package/dist/tokens.d.ts +0 -6
- package/dist/tokens.js +0 -417
- package/dist/tsx-source-instrumentation.d.ts +0 -30
- package/dist/tsx-source-instrumentation.js +0 -115
- package/dist/tsx-tracer.d.ts +0 -112
- package/dist/tsx-tracer.js +0 -985
- package/dist/variables-J_L3qxRa.d.ts +0 -77
- package/dist/variables.d.ts +0 -2
- package/dist/variables.js +0 -141
- package/dist/version-BITr58kk.js +0 -96
- package/generated/sml-agent-contract.json +0 -709
- package/generated/sml-email-agent-contract.json +0 -615
- package/generated/sml-email-language-reference.md +0 -94
- package/generated/sml-language-reference.md +0 -195
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
//#region presets/public-preview.d.ts
|
|
2
|
-
type PreviewQuality = "ready" | "asset-free";
|
|
3
|
-
/** A declared fixture value: JSON, so a template can take a list of stories as well as a string. */
|
|
4
|
-
type PreviewSampleValue = string | number | boolean | null | ReadonlyArray<PreviewSampleValue> | {
|
|
5
|
-
readonly [key: string]: PreviewSampleValue;
|
|
6
|
-
};
|
|
7
|
-
interface PublicTemplatePreview {
|
|
8
|
-
readonly subject: string;
|
|
9
|
-
readonly preheader: string;
|
|
10
|
-
readonly quality: PreviewQuality;
|
|
11
|
-
readonly sampleData: Readonly<Record<string, PreviewSampleValue>>;
|
|
12
|
-
readonly assets: ReadonlyArray<{
|
|
13
|
-
readonly variable: string;
|
|
14
|
-
readonly kind: "image" | "logo";
|
|
15
|
-
}>;
|
|
16
|
-
}
|
|
17
|
-
/** Gallery metadata augments the actual default fixture; it does not supply render input. */
|
|
18
|
-
declare const publicTemplatePreviews: {
|
|
19
|
-
readonly "linear-login-code": PublicTemplatePreview;
|
|
20
|
-
readonly "product-newsletter": PublicTemplatePreview;
|
|
21
|
-
readonly "order-receipt": PublicTemplatePreview;
|
|
22
|
-
readonly "vercel-invitation": PublicTemplatePreview;
|
|
23
|
-
readonly "product-launch-promo": PublicTemplatePreview;
|
|
24
|
-
readonly welcome: PublicTemplatePreview;
|
|
25
|
-
readonly "email-verification": PublicTemplatePreview;
|
|
26
|
-
readonly otp: PublicTemplatePreview;
|
|
27
|
-
readonly "password-reset": PublicTemplatePreview;
|
|
28
|
-
readonly "payment-failed": PublicTemplatePreview;
|
|
29
|
-
readonly "shipping-update": PublicTemplatePreview;
|
|
30
|
-
readonly notification: PublicTemplatePreview;
|
|
31
|
-
readonly "team-invite": PublicTemplatePreview;
|
|
32
|
-
readonly "product-digest": PublicTemplatePreview;
|
|
33
|
-
readonly announcement: PublicTemplatePreview;
|
|
34
|
-
readonly "event-invite": PublicTemplatePreview;
|
|
35
|
-
readonly "membership-promo": PublicTemplatePreview;
|
|
36
|
-
readonly "onboarding-step": PublicTemplatePreview;
|
|
37
|
-
readonly "trial-ending": PublicTemplatePreview;
|
|
38
|
-
readonly "win-back": PublicTemplatePreview;
|
|
39
|
-
readonly "feedback-request": PublicTemplatePreview;
|
|
40
|
-
readonly "editorial-newsletter": PublicTemplatePreview;
|
|
41
|
-
readonly "member-referral-offer": PublicTemplatePreview;
|
|
42
|
-
readonly "catalog-sale-newsletter": PublicTemplatePreview;
|
|
43
|
-
readonly "limited-time-savings": PublicTemplatePreview;
|
|
44
|
-
readonly "rewards-milestone": PublicTemplatePreview;
|
|
45
|
-
readonly "travel-rewards-promo": PublicTemplatePreview;
|
|
46
|
-
readonly "events-roundup": PublicTemplatePreview;
|
|
47
|
-
readonly "product-onboarding-tour": PublicTemplatePreview;
|
|
48
|
-
readonly "product-updates-roundup": PublicTemplatePreview;
|
|
49
|
-
readonly "flash-getaway-offer": PublicTemplatePreview;
|
|
50
|
-
readonly "membership-benefits-promo": PublicTemplatePreview;
|
|
51
|
-
readonly "industry-news-digest": PublicTemplatePreview;
|
|
52
|
-
readonly "weekly-deals-circular": PublicTemplatePreview;
|
|
53
|
-
readonly "data-sharing-review": PublicTemplatePreview;
|
|
54
|
-
readonly "seasonal-sale-flyer": PublicTemplatePreview;
|
|
55
|
-
readonly "setup-checklist": PublicTemplatePreview;
|
|
56
|
-
readonly "feature-release-roundup": PublicTemplatePreview;
|
|
57
|
-
readonly "season-clearance-promo": PublicTemplatePreview;
|
|
58
|
-
};
|
|
59
|
-
//#endregion
|
|
60
|
-
export { PreviewQuality, PreviewSampleValue, PublicTemplatePreview, publicTemplatePreviews };
|
|
61
|
-
//# sourceMappingURL=public-preview.d.ts.map
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
import { presetEmailFixtures } from "./sources.js";
|
|
2
|
-
//#region presets/public-preview.ts
|
|
3
|
-
const preview = (id, quality, assets) => {
|
|
4
|
-
const fixture = presetEmailFixtures[id]?.default;
|
|
5
|
-
if (fixture === void 0) throw new Error(`Missing generated gallery fixture: ${id}`);
|
|
6
|
-
return {
|
|
7
|
-
subject: fixture.subject,
|
|
8
|
-
preheader: fixture.preheader,
|
|
9
|
-
sampleData: fixture.input,
|
|
10
|
-
quality,
|
|
11
|
-
assets
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
/** Gallery metadata augments the actual default fixture; it does not supply render input. */
|
|
15
|
-
const publicTemplatePreviews = {
|
|
16
|
-
"linear-login-code": preview("linear-login-code", "ready", []),
|
|
17
|
-
"product-newsletter": preview("product-newsletter", "ready", [{
|
|
18
|
-
variable: "leadImage",
|
|
19
|
-
kind: "image"
|
|
20
|
-
}]),
|
|
21
|
-
"order-receipt": preview("order-receipt", "ready", []),
|
|
22
|
-
"vercel-invitation": preview("vercel-invitation", "ready", [{
|
|
23
|
-
variable: "userImage",
|
|
24
|
-
kind: "image"
|
|
25
|
-
}, {
|
|
26
|
-
variable: "teamImage",
|
|
27
|
-
kind: "image"
|
|
28
|
-
}]),
|
|
29
|
-
"product-launch-promo": preview("product-launch-promo", "ready", []),
|
|
30
|
-
welcome: preview("welcome", "ready", []),
|
|
31
|
-
"email-verification": preview("email-verification", "ready", []),
|
|
32
|
-
otp: preview("otp", "ready", []),
|
|
33
|
-
"password-reset": preview("password-reset", "ready", []),
|
|
34
|
-
"payment-failed": preview("payment-failed", "ready", []),
|
|
35
|
-
"shipping-update": preview("shipping-update", "ready", []),
|
|
36
|
-
notification: preview("notification", "ready", [{
|
|
37
|
-
variable: "actorAvatar",
|
|
38
|
-
kind: "image"
|
|
39
|
-
}]),
|
|
40
|
-
"team-invite": preview("team-invite", "ready", [{
|
|
41
|
-
variable: "inviterAvatarUrl",
|
|
42
|
-
kind: "image"
|
|
43
|
-
}]),
|
|
44
|
-
"product-digest": preview("product-digest", "ready", []),
|
|
45
|
-
announcement: preview("announcement", "ready", []),
|
|
46
|
-
"event-invite": preview("event-invite", "ready", []),
|
|
47
|
-
"membership-promo": preview("membership-promo", "ready", []),
|
|
48
|
-
"onboarding-step": preview("onboarding-step", "ready", []),
|
|
49
|
-
"trial-ending": preview("trial-ending", "ready", []),
|
|
50
|
-
"win-back": preview("win-back", "ready", []),
|
|
51
|
-
"feedback-request": preview("feedback-request", "ready", []),
|
|
52
|
-
"editorial-newsletter": preview("editorial-newsletter", "ready", [{
|
|
53
|
-
variable: "authorAvatar",
|
|
54
|
-
kind: "image"
|
|
55
|
-
}, {
|
|
56
|
-
variable: "heroImage",
|
|
57
|
-
kind: "image"
|
|
58
|
-
}]),
|
|
59
|
-
"member-referral-offer": preview("member-referral-offer", "ready", []),
|
|
60
|
-
"catalog-sale-newsletter": preview("catalog-sale-newsletter", "ready", []),
|
|
61
|
-
"limited-time-savings": preview("limited-time-savings", "ready", []),
|
|
62
|
-
"rewards-milestone": preview("rewards-milestone", "ready", []),
|
|
63
|
-
"travel-rewards-promo": preview("travel-rewards-promo", "ready", []),
|
|
64
|
-
"events-roundup": preview("events-roundup", "ready", []),
|
|
65
|
-
"product-onboarding-tour": preview("product-onboarding-tour", "ready", []),
|
|
66
|
-
"product-updates-roundup": preview("product-updates-roundup", "ready", []),
|
|
67
|
-
"flash-getaway-offer": preview("flash-getaway-offer", "ready", []),
|
|
68
|
-
"membership-benefits-promo": preview("membership-benefits-promo", "ready", []),
|
|
69
|
-
"industry-news-digest": preview("industry-news-digest", "ready", []),
|
|
70
|
-
"weekly-deals-circular": preview("weekly-deals-circular", "ready", []),
|
|
71
|
-
"data-sharing-review": preview("data-sharing-review", "ready", [{
|
|
72
|
-
variable: "connectedServiceIconUrl",
|
|
73
|
-
kind: "image"
|
|
74
|
-
}]),
|
|
75
|
-
"seasonal-sale-flyer": preview("seasonal-sale-flyer", "ready", []),
|
|
76
|
-
"setup-checklist": preview("setup-checklist", "ready", []),
|
|
77
|
-
"feature-release-roundup": preview("feature-release-roundup", "ready", []),
|
|
78
|
-
"season-clearance-promo": preview("season-clearance-promo", "ready", [])
|
|
79
|
-
};
|
|
80
|
-
//#endregion
|
|
81
|
-
export { publicTemplatePreviews };
|
|
82
|
-
|
|
83
|
-
//# sourceMappingURL=public-preview.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import { a as ShowcaseProjectId, c as showcaseProject, d as showcaseSourcePath, i as ShowcaseProject, l as showcaseProjectPaths, n as OwnedShowcaseId, o as ShowcaseProvenance, r as SHOWCASE_ROOT, s as isShowcaseProjectId, t as BrandRecreationShowcaseId, u as showcaseProjects } from "../showcase-DGZAWn4Z.js";
|
|
2
|
-
export { BrandRecreationShowcaseId, OwnedShowcaseId, SHOWCASE_ROOT, ShowcaseProject, ShowcaseProjectId, ShowcaseProvenance, isShowcaseProjectId, showcaseProject, showcaseProjectPaths, showcaseProjects, showcaseSourcePath };
|