@samva/markup 0.11.1 → 0.11.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.
- package/CHANGELOG.md +25 -0
- package/dist/assets-B0yseju_.d.ts +1 -2
- package/dist/brand-DTctcDmf.js +0 -2
- package/dist/brand-plugin-CHhcei-j.d.ts +1 -2
- package/dist/brand.d.ts +1 -2
- package/dist/channel-specs-C2feJwuP.d.ts +1 -2
- package/dist/compiler.d.ts +1 -2
- package/dist/compiler.js +0 -2
- package/dist/components-Bl6DT21n.js +0 -2
- package/dist/diagnostic-model-DJtqbETd.js +0 -2
- package/dist/diagnostic-model-DxthUZBT.d.ts +1 -2
- package/dist/diagnostics-B-Gym34R.d.ts +1 -2
- package/dist/diagnostics-CnKFefKz.js +0 -2
- package/dist/diagnostics.d.ts +1 -2
- package/dist/diagnostics.js +0 -2
- package/dist/edit.d.ts +1 -2
- package/dist/edit.js +0 -2
- package/dist/email/jsx-dev-runtime.d.ts +1 -2
- package/dist/email/jsx-dev-runtime.js +0 -2
- package/dist/email.d.ts +1 -2
- package/dist/fmt.d.ts +1 -2
- package/dist/fmt.js +0 -2
- package/dist/guards-eV1qLbf2.js +0 -2
- package/dist/html-DjPxwjLi.js +0 -2
- package/dist/input-schema-7dPFVvNE.d.ts +1 -2
- package/dist/input-schema-zjkgrXn2.js +0 -2
- package/dist/ir-De6pTH51.js +0 -2
- package/dist/jsx-runtime-CBlexoeR.js +0 -2
- package/dist/jsx-runtime-ylIOnaSf.d.ts +1 -2
- package/dist/profile-PUfi3GPH.js +0 -2
- package/dist/render-D2ht57ZZ.js +0 -2
- package/dist/render-DQKz4Aco.d.ts +1 -2
- package/dist/render.d.ts +1 -2
- package/dist/render.js +0 -2
- package/dist/sms.d.ts +1 -2
- package/dist/sms.js +0 -2
- package/dist/source-locations-C8wCsiAy.d.ts +1 -2
- package/dist/template-DMPwxMSq.d.ts +1 -2
- package/dist/template-zLUjcwfF.js +0 -2
- package/dist/theme-css-CEUrDpqq.js +0 -2
- package/dist/whatsapp.d.ts +1 -2
- package/dist/whatsapp.js +0 -2
- package/package.json +4 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,28 @@
|
|
|
1
|
+
## @samva/markup@0.11.2
|
|
2
|
+
|
|
3
|
+
### Published files no longer point at missing source maps
|
|
4
|
+
|
|
5
|
+
The packages no longer build source maps, so no published JavaScript or declaration file ends in a
|
|
6
|
+
`sourceMappingURL` comment for a `.map` file the package does not ship. Devtools and bundlers stop
|
|
7
|
+
requesting maps that 404.
|
|
8
|
+
|
|
9
|
+
### `@samva/editor` accepts any compatible `@samva/markup`
|
|
10
|
+
|
|
11
|
+
`@samva/editor` and `@samva/vite` both depend on `@samva/markup` with a caret range, so a project
|
|
12
|
+
that installs both resolves one copy of the compiler.
|
|
13
|
+
|
|
14
|
+
### The editor's mock project uses a reserved domain
|
|
15
|
+
|
|
16
|
+
`@samva/editor/mock` addresses its sample brand at `nimbus.example` instead of a registered domain.
|
|
17
|
+
The mock's logo URL no longer resolves, so the demo shows its alt text.
|
|
18
|
+
|
|
19
|
+
### The editor keeps up with rapid saves on Linux
|
|
20
|
+
|
|
21
|
+
`samvaEditor()` turns on the watcher's pending-write tracking unless the project configures its
|
|
22
|
+
own, so a save that lands within 50 ms of the previous one still reaches the editor on Linux. Event
|
|
23
|
+
streams load the template catalog before they connect, so the first edit after opening the editor
|
|
24
|
+
is reported as a change.
|
|
25
|
+
|
|
1
26
|
## @samva/markup@0.11.0
|
|
2
27
|
|
|
3
28
|
### Breaking: `@samva/markup` reads brand and footer names from a brand plugin
|
|
@@ -111,5 +111,4 @@ declare const isExternalAsset: (reference: string) => boolean;
|
|
|
111
111
|
*/
|
|
112
112
|
declare const checkAssetBase: (base: string) => readonly EmailDiagnostic[];
|
|
113
113
|
//#endregion
|
|
114
|
-
export { EmailBrandSocialLink as _, assetUrl as a, renderedFooterMarkers as b, isExternalAsset as c, BrandFooterProps as d, BrandLogoProps as f, EmailBrandFooter as g, EmailBrandAssets as h, assetEntry as i, BRAND_COMPONENT_CLASSES as l, EmailBrandAddress as m, AssetEntry as n, checkAssetBase as o, EmailBrand as p, AssetManifest as r, isAssetPath as s, ASSET_CONTENT_TYPES as t, BrandComponents as u, RenderedFooterMarkers as v, withoutUnsubscribeRow as x, brandComponents as y };
|
|
115
|
-
//# sourceMappingURL=assets-B0yseju_.d.ts.map
|
|
114
|
+
export { EmailBrandSocialLink as _, assetUrl as a, renderedFooterMarkers as b, isExternalAsset as c, BrandFooterProps as d, BrandLogoProps as f, EmailBrandFooter as g, EmailBrandAssets as h, assetEntry as i, BRAND_COMPONENT_CLASSES as l, EmailBrandAddress as m, AssetEntry as n, checkAssetBase as o, EmailBrand as p, AssetManifest as r, isAssetPath as s, ASSET_CONTENT_TYPES as t, BrandComponents as u, RenderedFooterMarkers as v, withoutUnsubscribeRow as x, brandComponents as y };
|
package/dist/brand-DTctcDmf.js
CHANGED
|
@@ -198,5 +198,3 @@ const withoutUnsubscribeRow = (rendered, plugin = samvaBrandPlugin) => ({
|
|
|
198
198
|
});
|
|
199
199
|
//#endregion
|
|
200
200
|
export { ASSET_CONTENT_TYPES as a, checkAssetBase as c, withoutUnsubscribeRow as i, isAssetPath as l, brandComponents as n, assetEntry as o, renderedFooterMarkers as r, assetUrl as s, BRAND_COMPONENT_CLASSES as t, isExternalAsset as u };
|
|
201
|
-
|
|
202
|
-
//# sourceMappingURL=brand-DTctcDmf.js.map
|
|
@@ -28,5 +28,4 @@ declare const parseBrandSpecifier: (specifier: string, plugin?: BrandPlugin) =>
|
|
|
28
28
|
readonly slug: string | undefined;
|
|
29
29
|
} | undefined;
|
|
30
30
|
//#endregion
|
|
31
|
-
export { parseBrandSpecifier as n, BrandPlugin as t };
|
|
32
|
-
//# sourceMappingURL=brand-plugin-CHhcei-j.d.ts.map
|
|
31
|
+
export { parseBrandSpecifier as n, BrandPlugin as t };
|
package/dist/brand.d.ts
CHANGED
|
@@ -72,5 +72,4 @@ declare const brandThemeVariables: (brand: BrandCss) => Readonly<Record<string,
|
|
|
72
72
|
/** The stylesheet Tailwind compiles for the theme's brand import: `brandThemeVariables` and the font faces. */
|
|
73
73
|
declare const brandTailwindCss: (brand: BrandCss) => string;
|
|
74
74
|
//#endregion
|
|
75
|
-
export { ASSET_CONTENT_TYPES, AssetEntry, AssetManifest, BRAND_COLOR_VARIABLE, BRAND_COMPONENT_CLASSES, BRAND_FOREGROUND_VARIABLE, BrandComponents, BrandCss, BrandFontFace, BrandFooterProps, BrandLogoProps, type BrandPlugin, EmailBrand, EmailBrandAddress, EmailBrandAssets, EmailBrandFooter, EmailBrandSocialLink, RenderedFooterMarkers, assetEntry, assetUrl, brandComponents, brandForegroundDefaults, brandTailwindCss, brandThemeVariables, checkAssetBase, contrastForeground, darkVariableName, isAssetPath, isExternalAsset, parseBrandCss, printBrandCss, renderedFooterMarkers, samvaBrandPlugin, withoutUnsubscribeRow };
|
|
76
|
-
//# sourceMappingURL=brand.d.ts.map
|
|
75
|
+
export { ASSET_CONTENT_TYPES, AssetEntry, AssetManifest, BRAND_COLOR_VARIABLE, BRAND_COMPONENT_CLASSES, BRAND_FOREGROUND_VARIABLE, BrandComponents, BrandCss, BrandFontFace, BrandFooterProps, BrandLogoProps, type BrandPlugin, EmailBrand, EmailBrandAddress, EmailBrandAssets, EmailBrandFooter, EmailBrandSocialLink, RenderedFooterMarkers, assetEntry, assetUrl, brandComponents, brandForegroundDefaults, brandTailwindCss, brandThemeVariables, checkAssetBase, contrastForeground, darkVariableName, isAssetPath, isExternalAsset, parseBrandCss, printBrandCss, renderedFooterMarkers, samvaBrandPlugin, withoutUnsubscribeRow };
|
|
@@ -9,5 +9,4 @@ type WhatsAppCategory = (typeof WHATSAPP_CATEGORIES)[number];
|
|
|
9
9
|
/** The header kinds `<WhatsApp.Header type>` accepts. */
|
|
10
10
|
type WhatsAppHeaderType = (typeof WHATSAPP_HEADER_TYPES)[number];
|
|
11
11
|
//#endregion
|
|
12
|
-
export { WhatsAppCategory as n, WhatsAppHeaderType as r, SmsCategory as t };
|
|
13
|
-
//# sourceMappingURL=channel-specs-C2feJwuP.d.ts.map
|
|
12
|
+
export { WhatsAppCategory as n, WhatsAppHeaderType as r, SmsCategory as t };
|
package/dist/compiler.d.ts
CHANGED
|
@@ -290,5 +290,4 @@ declare const checkStaticProfile: (files: string | Readonly<Record<string, strin
|
|
|
290
290
|
*/
|
|
291
291
|
declare const introducedProfileErrors: (before: readonly TemplateDiagnostic[], after: readonly TemplateDiagnostic[]) => readonly TemplateDiagnostic[];
|
|
292
292
|
//#endregion
|
|
293
|
-
export { type Ancestry, type AppliedStyles, COMPATIBILITY_PROVENANCE, type ClassDiscovery, type CompatibilityInput, type CompatibilityProvenance, type CompileTemplateOptions, type CompiledSelector, type CompiledTemplate, type Compound, type CssDeclaration, type CssRule, EMAIL_CLIENT_MATRIX, ESSENTIAL_CONSTRUCTS, type EmailClientTarget, type EmailContent, type ProjectTransform, type RenderedBrandFooter, type Specificity, type Stylesheet, TAILWIND_VERSION, TEMPLATE_NAME_PATTERN, type TailwindLimits, type TailwindOptions, type TailwindOutput, type TransformOptions, applyStylesheet, checkEmailCompatibility, checkStaticProfile, checkTemplateCompatibility, classListOf, compileSelector, compileTailwind, compileTemplate, discoverClassCandidates, downlevelColors, downlevelMediaQuery, finalizeValue, foldCalc, formatColor, hasBlockingCompatibility, introducedProfileErrors, matchesSelector, parseBrandSpecifier, parseColor, parseStylesheet, projectBrandSpecifier, renderBrandFooter, renderBrandSample, renderHeadCss, resolveVariables, transformProject, unknownCoverage };
|
|
294
|
-
//# sourceMappingURL=compiler.d.ts.map
|
|
293
|
+
export { type Ancestry, type AppliedStyles, COMPATIBILITY_PROVENANCE, type ClassDiscovery, type CompatibilityInput, type CompatibilityProvenance, type CompileTemplateOptions, type CompiledSelector, type CompiledTemplate, type Compound, type CssDeclaration, type CssRule, EMAIL_CLIENT_MATRIX, ESSENTIAL_CONSTRUCTS, type EmailClientTarget, type EmailContent, type ProjectTransform, type RenderedBrandFooter, type Specificity, type Stylesheet, TAILWIND_VERSION, TEMPLATE_NAME_PATTERN, type TailwindLimits, type TailwindOptions, type TailwindOutput, type TransformOptions, applyStylesheet, checkEmailCompatibility, checkStaticProfile, checkTemplateCompatibility, classListOf, compileSelector, compileTailwind, compileTemplate, discoverClassCandidates, downlevelColors, downlevelMediaQuery, finalizeValue, foldCalc, formatColor, hasBlockingCompatibility, introducedProfileErrors, matchesSelector, parseBrandSpecifier, parseColor, parseStylesheet, projectBrandSpecifier, renderBrandFooter, renderBrandSample, renderHeadCss, resolveVariables, transformProject, unknownCoverage };
|
package/dist/compiler.js
CHANGED
|
@@ -1311,5 +1311,3 @@ const checkTemplateCompatibility = (ir, fixtures, options = {}) => {
|
|
|
1311
1311
|
};
|
|
1312
1312
|
//#endregion
|
|
1313
1313
|
export { COMPATIBILITY_PROVENANCE, EMAIL_CLIENT_MATRIX, ESSENTIAL_CONSTRUCTS, TAILWIND_VERSION, TEMPLATE_NAME_PATTERN, applyStylesheet, checkEmailCompatibility, checkStaticProfile, checkTemplateCompatibility, classListOf, compileSelector, compileTailwind, compileTemplate, discoverClassCandidates, downlevelColors, downlevelMediaQuery, finalizeValue, foldCalc, formatColor, hasBlockingCompatibility, introducedProfileErrors, matchesSelector, parseBrandSpecifier, parseColor, parseStylesheet, projectBrandSpecifier, renderBrandFooter, renderBrandSample, renderHeadCss, resolveVariables, transformProject, unknownCoverage };
|
|
1314
|
-
|
|
1315
|
-
//# sourceMappingURL=compiler.js.map
|
|
@@ -271,5 +271,3 @@ const Link = ({ className, href, target = "_blank", rel = "noopener noreferrer",
|
|
|
271
271
|
});
|
|
272
272
|
//#endregion
|
|
273
273
|
export { Email as a, PREHEADER_ATTRIBUTE as c, equalColumnWidth as d, preheaderNode as f, Divider as i, Section as l, Column as n, Image as o, Columns as r, Link as s, Button as t, Spacer as u };
|
|
274
|
-
|
|
275
|
-
//# sourceMappingURL=components-Bl6DT21n.js.map
|
|
@@ -34,5 +34,3 @@ const createDiagnosticFormatter = (source) => {
|
|
|
34
34
|
const formatDiagnostic = (source, diagnostic) => createDiagnosticFormatter(source)(diagnostic);
|
|
35
35
|
//#endregion
|
|
36
36
|
export { lineColumn as i, createDiagnosticFormatter as n, formatDiagnostic as r, buildLineMap as t };
|
|
37
|
-
|
|
38
|
-
//# sourceMappingURL=diagnostic-model-DJtqbETd.js.map
|
|
@@ -27,5 +27,4 @@ declare const createDiagnosticFormatter: (source: string) => ((diagnostic: Diagn
|
|
|
27
27
|
/** "line 12:8 unknown class ..." — the shape agents iterate on. */
|
|
28
28
|
declare const formatDiagnostic: (source: string, diagnostic: Diagnostic) => string;
|
|
29
29
|
//#endregion
|
|
30
|
-
export { createDiagnosticFormatter as a, buildLineMap as i, DiagnosticRepair as n, formatDiagnostic as o, Span as r, lineColumn as s, Diagnostic as t };
|
|
31
|
-
//# sourceMappingURL=diagnostic-model-DxthUZBT.d.ts.map
|
|
30
|
+
export { createDiagnosticFormatter as a, buildLineMap as i, DiagnosticRepair as n, formatDiagnostic as o, Span as r, lineColumn as s, Diagnostic as t };
|
|
@@ -46,5 +46,4 @@ declare const formatEmailDiagnostic: (diagnostic: TemplateDiagnostic) => string;
|
|
|
46
46
|
/** True when a set of findings must stop the compile or refuse a publication. */
|
|
47
47
|
declare const hasBlockingDiagnostic: (diagnostics: readonly EmailDiagnostic[]) => boolean;
|
|
48
48
|
//#endregion
|
|
49
|
-
export { TemplateDiagnostic as a, EmailDiagnosticSeverity as i, EmailCompileError as n, formatEmailDiagnostic as o, EmailDiagnostic as r, hasBlockingDiagnostic as s, EmailCompatibilityAssessment as t };
|
|
50
|
-
//# sourceMappingURL=diagnostics-B-Gym34R.d.ts.map
|
|
49
|
+
export { TemplateDiagnostic as a, EmailDiagnosticSeverity as i, EmailCompileError as n, formatEmailDiagnostic as o, EmailDiagnostic as r, hasBlockingDiagnostic as s, EmailCompatibilityAssessment as t };
|
|
@@ -18,5 +18,3 @@ const formatEmailDiagnostic = (diagnostic) => {
|
|
|
18
18
|
const hasBlockingDiagnostic = (diagnostics) => diagnostics.some((diagnostic) => diagnostic.severity === "error");
|
|
19
19
|
//#endregion
|
|
20
20
|
export { formatEmailDiagnostic as n, hasBlockingDiagnostic as r, EmailCompileError as t };
|
|
21
|
-
|
|
22
|
-
//# sourceMappingURL=diagnostics-CnKFefKz.js.map
|
package/dist/diagnostics.d.ts
CHANGED
|
@@ -406,5 +406,4 @@ declare const DIAGNOSTIC_CODE_FAMILIES: {
|
|
|
406
406
|
};
|
|
407
407
|
};
|
|
408
408
|
//#endregion
|
|
409
|
-
export { DIAGNOSTIC_CODES, DIAGNOSTIC_CODE_FAMILIES, Diagnostic, DiagnosticCode, DiagnosticCodeSpec, DiagnosticRepair, EmailCompatibilityAssessment, EmailCompileError, EmailDiagnostic, EmailDiagnosticSeverity, Span, TemplateDiagnostic, buildLineMap, createDiagnosticFormatter, formatDiagnostic, formatEmailDiagnostic, hasBlockingDiagnostic, hasUpgradeRecipe, lineColumn };
|
|
410
|
-
//# sourceMappingURL=diagnostics.d.ts.map
|
|
409
|
+
export { DIAGNOSTIC_CODES, DIAGNOSTIC_CODE_FAMILIES, Diagnostic, DiagnosticCode, DiagnosticCodeSpec, DiagnosticRepair, EmailCompatibilityAssessment, EmailCompileError, EmailDiagnostic, EmailDiagnosticSeverity, Span, TemplateDiagnostic, buildLineMap, createDiagnosticFormatter, formatDiagnostic, formatEmailDiagnostic, hasBlockingDiagnostic, hasUpgradeRecipe, lineColumn };
|
package/dist/diagnostics.js
CHANGED
|
@@ -402,5 +402,3 @@ const DIAGNOSTIC_CODE_FAMILIES = { "caniemail/": {
|
|
|
402
402
|
} };
|
|
403
403
|
//#endregion
|
|
404
404
|
export { DIAGNOSTIC_CODES, DIAGNOSTIC_CODE_FAMILIES, EmailCompileError, buildLineMap, createDiagnosticFormatter, formatDiagnostic, formatEmailDiagnostic, hasBlockingDiagnostic, hasUpgradeRecipe, lineColumn };
|
|
405
|
-
|
|
406
|
-
//# sourceMappingURL=diagnostics.js.map
|
package/dist/edit.d.ts
CHANGED
|
@@ -230,5 +230,4 @@ declare const readWhatsAppChannel: (source: string) => WhatsAppChannelForm | nul
|
|
|
230
230
|
/** The source replacements that apply one form change to the WhatsApp body. */
|
|
231
231
|
declare const editWhatsAppChannel: (source: string, edit: WhatsAppEdit) => ChannelEditResult;
|
|
232
232
|
//#endregion
|
|
233
|
-
export { ApplyOptions, AttributeState, ChannelEditResult, ChannelSegment, ClassNameOperation, JSX_SOURCE_LOCATION_PROP, JsxSource, JsxSourceLocation, LockedSegment, ProfileGuard, type SmsCategory, SmsChannelForm, SmsEdit, SourceEditResult, SourceElement, SourceFixture, SourceProperty, SourceProposal, SourceRange, SourceReplacement, TextSegment, WhatsAppButtonKind, WhatsAppButtonRow, type WhatsAppCategory, WhatsAppChannelForm, WhatsAppEdit, type WhatsAppHeaderType, WhatsAppPart, applySourceReplacements, classNameEdit, completeJsxSourceLocation, editSmsChannel, editWhatsAppChannel, expressionReplacement, inspectSourceElement, inspectSourceFixtures, literalReplacement, readSmsChannel, readWhatsAppChannel, structuralReplacements };
|
|
234
|
-
//# sourceMappingURL=edit.d.ts.map
|
|
233
|
+
export { ApplyOptions, AttributeState, ChannelEditResult, ChannelSegment, ClassNameOperation, JSX_SOURCE_LOCATION_PROP, JsxSource, JsxSourceLocation, LockedSegment, ProfileGuard, type SmsCategory, SmsChannelForm, SmsEdit, SourceEditResult, SourceElement, SourceFixture, SourceProperty, SourceProposal, SourceRange, SourceReplacement, TextSegment, WhatsAppButtonKind, WhatsAppButtonRow, type WhatsAppCategory, WhatsAppChannelForm, WhatsAppEdit, type WhatsAppHeaderType, WhatsAppPart, applySourceReplacements, classNameEdit, completeJsxSourceLocation, editSmsChannel, editWhatsAppChannel, expressionReplacement, inspectSourceElement, inspectSourceFixtures, literalReplacement, readSmsChannel, readWhatsAppChannel, structuralReplacements };
|
package/dist/edit.js
CHANGED
|
@@ -943,5 +943,3 @@ const editWhatsAppChannel = (source, edit) => {
|
|
|
943
943
|
};
|
|
944
944
|
//#endregion
|
|
945
945
|
export { JSX_SOURCE_LOCATION_PROP, applySourceReplacements, classNameEdit, completeJsxSourceLocation, editSmsChannel, editWhatsAppChannel, expressionReplacement, inspectSourceElement, inspectSourceFixtures, literalReplacement, readSmsChannel, readWhatsAppChannel, structuralReplacements };
|
|
946
|
-
|
|
947
|
-
//# sourceMappingURL=edit.js.map
|
|
@@ -4,5 +4,4 @@ import { a as JSX, i as Fragment, n as EmailComponent, r as EmailNode } from "..
|
|
|
4
4
|
/** Development JSX retains compiler-provided origins directly on the semantic tree. */
|
|
5
5
|
declare const jsxDEV: (type: string | EmailComponent<Record<string, unknown>> | typeof Fragment, props: Record<string, unknown> | null, _key?: unknown, _staticChildren?: boolean, source?: JsxSource) => EmailNode;
|
|
6
6
|
//#endregion
|
|
7
|
-
export { Fragment, type JSX, jsxDEV };
|
|
8
|
-
//# sourceMappingURL=jsx-dev-runtime.d.ts.map
|
|
7
|
+
export { Fragment, type JSX, jsxDEV };
|
package/dist/email.d.ts
CHANGED
|
@@ -132,5 +132,4 @@ interface LinkProps {
|
|
|
132
132
|
/** A text link that opens outside the client and cannot reach back at the opener. */
|
|
133
133
|
declare const Link: ({ className, href, target, rel, style, children }: LinkProps) => EmailNode;
|
|
134
134
|
//#endregion
|
|
135
|
-
export { Button, ButtonProps, Column, ColumnProps, Columns, ColumnsProps, Divider, DividerProps, Email, EmailProps, Image, ImageProps, Link, LinkProps, PREHEADER_ATTRIBUTE, Section, SectionProps, Spacer, SpacerProps, equalColumnWidth, preheaderNode };
|
|
136
|
-
//# sourceMappingURL=email.d.ts.map
|
|
135
|
+
export { Button, ButtonProps, Column, ColumnProps, Columns, ColumnsProps, Divider, DividerProps, Email, EmailProps, Image, ImageProps, Link, LinkProps, PREHEADER_ATTRIBUTE, Section, SectionProps, Spacer, SpacerProps, equalColumnWidth, preheaderNode };
|
package/dist/fmt.d.ts
CHANGED
|
@@ -28,5 +28,4 @@ declare const withFormatContext: <T>(context: FormatContext, run: () => T) => T;
|
|
|
28
28
|
declare const fmt: Fmt;
|
|
29
29
|
declare const callFormatter: (formatter: Fmt, name: string, args: readonly unknown[]) => string;
|
|
30
30
|
//#endregion
|
|
31
|
-
export { DEFAULT_LOCALE, DEFAULT_TIME_ZONE, DateStyle, FORMATTER_NAMES, Fmt, FormatContext, PluralForms, callFormatter, createFmt, fmt, withFormatContext };
|
|
32
|
-
//# sourceMappingURL=fmt.d.ts.map
|
|
31
|
+
export { DEFAULT_LOCALE, DEFAULT_TIME_ZONE, DateStyle, FORMATTER_NAMES, Fmt, FormatContext, PluralForms, callFormatter, createFmt, fmt, withFormatContext };
|
package/dist/fmt.js
CHANGED
package/dist/guards-eV1qLbf2.js
CHANGED
|
@@ -5,5 +5,3 @@ const isObject = (input) => typeof input === "object" && input !== null && !Arra
|
|
|
5
5
|
const hasProperty = (input, property) => typeof input === "object" && input !== null || typeof input === "function" ? property in input : false;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { isObject as n, hasProperty as t };
|
|
8
|
-
|
|
9
|
-
//# sourceMappingURL=guards-eV1qLbf2.js.map
|
package/dist/html-DjPxwjLi.js
CHANGED
|
@@ -1633,5 +1633,3 @@ const checkAttribute = (tag, name, value, origins) => {
|
|
|
1633
1633
|
};
|
|
1634
1634
|
//#endregion
|
|
1635
1635
|
export { isUrlAttribute as C, samvaBrandPlugin as D, reservedBrandAttributes as E, BRAND_FOOTER_MARKER as O, emailElement as S, parseBrandSpecifier as T, renderIr as _, kebab as a, EMAIL_ELEMENTS as b, INSTANCE_PATH_ATTRIBUTE as c, emailSelectionAncestry as d, emailSelectionIndex as f, IrRenderError as g, renderIrPreview as h, escapeText as i, UNSUBSCRIBE_LINK as k, emailAuthoringTarget as l, emailSelections as m, declarationValue as n, serializeEmailHtml as o, emailSelectionSiblings as p, escapeAttribute as r, serializeStyle as s, checkAttribute as t, emailDefinitionInstances as u, renderIrSms as v, brandSpecifierPattern as w, EMAIL_GLOBAL_ATTRIBUTES as x, renderIrWhatsApp as y };
|
|
1636
|
-
|
|
1637
|
-
//# sourceMappingURL=html-DjPxwjLi.js.map
|
|
@@ -19,5 +19,4 @@ declare const inputSchema: <S extends StandardJSONSchemaV1>(source: S) => InputS
|
|
|
19
19
|
/** Serializable validation errors suitable for build and request diagnostics. */
|
|
20
20
|
type InputIssue = OutputUnit;
|
|
21
21
|
//#endregion
|
|
22
|
-
export { jsonSchema as a, inputSchema as i, InputIssue as n, InputSchema as r, INPUT_SCHEMA_DIALECT as t };
|
|
23
|
-
//# sourceMappingURL=input-schema-7dPFVvNE.d.ts.map
|
|
22
|
+
export { jsonSchema as a, inputSchema as i, InputIssue as n, InputSchema as r, INPUT_SCHEMA_DIALECT as t };
|
package/dist/ir-De6pTH51.js
CHANGED
|
@@ -579,5 +579,3 @@ const applyStylesheet = (root, sheet, options = {}) => {
|
|
|
579
579
|
const SML_IR_VERSION = 1;
|
|
580
580
|
//#endregion
|
|
581
581
|
export { downlevelMediaQuery as a, renderHeadCss as c, matchesSelector as i, resolveVariables as l, applyStylesheet as n, finalizeValue as o, classListOf as r, foldCalc as s, SML_IR_VERSION as t, unquote as u };
|
|
582
|
-
|
|
583
|
-
//# sourceMappingURL=ir-De6pTH51.js.map
|
|
@@ -94,5 +94,3 @@ const jsx = (type, props) => {
|
|
|
94
94
|
const jsxs = jsx;
|
|
95
95
|
//#endregion
|
|
96
96
|
export { jsx as a, rawMarkup as c, completeJsxSourceLocation as d, drainEmailDiagnostics as i, reportEmailDiagnostic as l, Fragment as n, jsxs as o, currentEmailOrigins as r, normalizeChildren as s, EmailNode as t, JSX_SOURCE_LOCATION_PROP as u };
|
|
97
|
-
|
|
98
|
-
//# sourceMappingURL=jsx-runtime-CBlexoeR.js.map
|
|
@@ -695,5 +695,4 @@ declare namespace JSX {
|
|
|
695
695
|
interface IntrinsicElements extends EmailIntrinsicElements {}
|
|
696
696
|
}
|
|
697
697
|
//#endregion
|
|
698
|
-
export { isUrlAttribute as C, emailElement as S, EmailGlobalProps as _, JSX as a, EmailStyle as b, jsx as c, rawMarkup as d, reportEmailDiagnostic as f, EmailElementSpec as g, EmailAttributeSpec as h, Fragment as i, jsxs as l, EMAIL_GLOBAL_ATTRIBUTES as m, EmailComponent as n, currentEmailOrigins as o, EMAIL_ELEMENTS as p, EmailNode as r, drainEmailDiagnostics as s, EmailChild as t, normalizeChildren as u, EmailIntrinsicElements as v, EmailTag as x, EmailLayout as y };
|
|
699
|
-
//# sourceMappingURL=jsx-runtime-ylIOnaSf.d.ts.map
|
|
698
|
+
export { isUrlAttribute as C, emailElement as S, EmailGlobalProps as _, JSX as a, EmailStyle as b, jsx as c, rawMarkup as d, reportEmailDiagnostic as f, EmailElementSpec as g, EmailAttributeSpec as h, Fragment as i, jsxs as l, EMAIL_GLOBAL_ATTRIBUTES as m, EmailComponent as n, currentEmailOrigins as o, EMAIL_ELEMENTS as p, EmailNode as r, drainEmailDiagnostics as s, EmailChild as t, normalizeChildren as u, EmailIntrinsicElements as v, EmailTag as x, EmailLayout as y };
|
package/dist/profile-PUfi3GPH.js
CHANGED
|
@@ -3800,5 +3800,3 @@ const introducedProfileErrors = (before, after) => {
|
|
|
3800
3800
|
};
|
|
3801
3801
|
//#endregion
|
|
3802
3802
|
export { lowerProject as a, WHATSAPP_HEADER_TYPES as c, resolveFromDirectory as d, resolveThemeImports as f, completed as i, Findings as l, introducedProfileErrors as n, SMS_CATEGORIES as o, loadProject as r, WHATSAPP_CATEGORIES as s, checkStaticProfile as t, projectDirectory as u };
|
|
3803
|
-
|
|
3804
|
-
//# sourceMappingURL=profile-PUfi3GPH.js.map
|
package/dist/render-D2ht57ZZ.js
CHANGED
|
@@ -544,5 +544,4 @@ interface RenderedEmail {
|
|
|
544
544
|
*/
|
|
545
545
|
declare const renderEmailContent: (stylesheet: Stylesheet | undefined, render: () => EmailContent, options?: SerializeEmailOptions) => RenderedEmail;
|
|
546
546
|
//#endregion
|
|
547
|
-
export { IrWhatsApp as $, emailAuthoringTarget as A, IrElement as B, Compound as C, EmittedPosition as D, EmailElementSelection as E, emailSelections as F, IrPredicate as G, IrFormatter as H, renderIrPreview as I, IrRawPart as J, IrPreheader as K, IrArithmetic as L, emailSelectionAncestry as M, emailSelectionIndex as N, INSTANCE_PATH_ATTRIBUTE as O, emailSelectionSiblings as P, IrValue as Q, IrComparison as R, CompiledSelector as S, matchesSelector as T, IrIf as U, IrEmail as V, IrNode as W, IrSource as X, IrSms as Y, IrStyle as Z, Specificity as _, renderEmailContent as a, RenderedPosition as at, parseStylesheet as b, checkAttribute as c, TemplateIr as ct, escapeText as d, IrWhatsAppButton as et, kebab as f, CssRule as g, CssDeclaration as h, compileEmail as i, RenderedIrWhatsApp as it, emailDefinitionInstances as j, IrPreview as k, declarationValue as l, serializeStyle as m, EmailCompileOutput as n, RenderOptions as nt, EmailHtmlOutput as o, RenderedWhatsAppButton as ot, serializeEmailHtml as p, IrRaw as q, RenderedEmail as r, RenderedIrEmail as rt, SerializeEmailOptions as s, SML_IR_VERSION as st, EMAIL_DOCTYPE as t, IrWhatsAppButtonNode as tt, escapeAttribute as u, Stylesheet as v, classListOf as w, Ancestry as x, compileSelector as y, IrEach as z };
|
|
548
|
-
//# sourceMappingURL=render-DQKz4Aco.d.ts.map
|
|
547
|
+
export { IrWhatsApp as $, emailAuthoringTarget as A, IrElement as B, Compound as C, EmittedPosition as D, EmailElementSelection as E, emailSelections as F, IrPredicate as G, IrFormatter as H, renderIrPreview as I, IrRawPart as J, IrPreheader as K, IrArithmetic as L, emailSelectionAncestry as M, emailSelectionIndex as N, INSTANCE_PATH_ATTRIBUTE as O, emailSelectionSiblings as P, IrValue as Q, IrComparison as R, CompiledSelector as S, matchesSelector as T, IrIf as U, IrEmail as V, IrNode as W, IrSource as X, IrSms as Y, IrStyle as Z, Specificity as _, renderEmailContent as a, RenderedPosition as at, parseStylesheet as b, checkAttribute as c, TemplateIr as ct, escapeText as d, IrWhatsAppButton as et, kebab as f, CssRule as g, CssDeclaration as h, compileEmail as i, RenderedIrWhatsApp as it, emailDefinitionInstances as j, IrPreview as k, declarationValue as l, serializeStyle as m, EmailCompileOutput as n, RenderOptions as nt, EmailHtmlOutput as o, RenderedWhatsAppButton as ot, serializeEmailHtml as p, IrRaw as q, RenderedEmail as r, RenderedIrEmail as rt, SerializeEmailOptions as s, SML_IR_VERSION as st, EMAIL_DOCTYPE as t, IrWhatsAppButtonNode as tt, escapeAttribute as u, Stylesheet as v, classListOf as w, Ancestry as x, compileSelector as y, IrEach as z };
|
package/dist/render.d.ts
CHANGED
|
@@ -31,5 +31,4 @@ interface SmsSegmentInfo {
|
|
|
31
31
|
declare const smsSegmentInfo: (text: string) => SmsSegmentInfo;
|
|
32
32
|
declare const hasSmsOptOut: (text: string) => boolean;
|
|
33
33
|
//#endregion
|
|
34
|
-
export { EMAIL_DOCTYPE, EMAIL_ELEMENTS, EMAIL_GLOBAL_ATTRIBUTES, EmailAttributeSpec, EmailCompileOutput, EmailElementSelection, EmailElementSpec, EmailGlobalProps, EmailHtmlOutput, EmailIntrinsicElements, EmailLayout, EmailStyle, EmailTag, EmittedPosition, INSTANCE_PATH_ATTRIBUTE, IrArithmetic, IrComparison, IrEach, IrElement, IrEmail, IrFormatter, IrIf, IrNode, IrPredicate, IrPreheader, IrPreview, IrRaw, IrRawPart, IrRenderDiagnostic, IrRenderError, IrSms, IrSource, IrStyle, IrValue, IrWhatsApp, IrWhatsAppButton, IrWhatsAppButtonNode, RenderOptions, RenderedEmail, RenderedIrEmail, RenderedIrWhatsApp, RenderedPosition, RenderedWhatsAppButton, SML_IR_VERSION, SerializeEmailOptions, SmsEncoding, SmsSegmentInfo, TemplateIr, checkAttribute, compileEmail, declarationValue, deriveEmailText, emailAuthoringTarget, emailDefinitionInstances, emailElement, emailSelectionAncestry, emailSelectionIndex, emailSelectionSiblings, emailSelections, escapeAttribute, escapeText, hasSmsOptOut, isUrlAttribute, kebab, renderEmailContent, renderIr, renderIrPreview, renderIrSms, renderIrWhatsApp, serializeEmailHtml, serializeStyle, smsSegmentInfo };
|
|
35
|
-
//# sourceMappingURL=render.d.ts.map
|
|
34
|
+
export { EMAIL_DOCTYPE, EMAIL_ELEMENTS, EMAIL_GLOBAL_ATTRIBUTES, EmailAttributeSpec, EmailCompileOutput, EmailElementSelection, EmailElementSpec, EmailGlobalProps, EmailHtmlOutput, EmailIntrinsicElements, EmailLayout, EmailStyle, EmailTag, EmittedPosition, INSTANCE_PATH_ATTRIBUTE, IrArithmetic, IrComparison, IrEach, IrElement, IrEmail, IrFormatter, IrIf, IrNode, IrPredicate, IrPreheader, IrPreview, IrRaw, IrRawPart, IrRenderDiagnostic, IrRenderError, IrSms, IrSource, IrStyle, IrValue, IrWhatsApp, IrWhatsAppButton, IrWhatsAppButtonNode, RenderOptions, RenderedEmail, RenderedIrEmail, RenderedIrWhatsApp, RenderedPosition, RenderedWhatsAppButton, SML_IR_VERSION, SerializeEmailOptions, SmsEncoding, SmsSegmentInfo, TemplateIr, checkAttribute, compileEmail, declarationValue, deriveEmailText, emailAuthoringTarget, emailDefinitionInstances, emailElement, emailSelectionAncestry, emailSelectionIndex, emailSelectionSiblings, emailSelections, escapeAttribute, escapeText, hasSmsOptOut, isUrlAttribute, kebab, renderEmailContent, renderIr, renderIrPreview, renderIrSms, renderIrWhatsApp, serializeEmailHtml, serializeStyle, smsSegmentInfo };
|
package/dist/render.js
CHANGED
|
@@ -45,5 +45,3 @@ const SMS_OPT_OUT_PATTERN = /\b(stop|unsubscribe|opt[\s-]?out|cancel|quit)\b/i;
|
|
|
45
45
|
const hasSmsOptOut = (text) => SMS_OPT_OUT_PATTERN.test(text);
|
|
46
46
|
//#endregion
|
|
47
47
|
export { EMAIL_DOCTYPE, EMAIL_ELEMENTS, EMAIL_GLOBAL_ATTRIBUTES, INSTANCE_PATH_ATTRIBUTE, IrRenderError, SML_IR_VERSION, checkAttribute, compileEmail, declarationValue, deriveEmailText, emailAuthoringTarget, emailDefinitionInstances, emailElement, emailSelectionAncestry, emailSelectionIndex, emailSelectionSiblings, emailSelections, escapeAttribute, escapeText, hasSmsOptOut, isUrlAttribute, kebab, renderEmailContent, renderIr, renderIrPreview, renderIrSms, renderIrWhatsApp, serializeEmailHtml, serializeStyle, smsSegmentInfo };
|
|
48
|
-
|
|
49
|
-
//# sourceMappingURL=render.js.map
|
package/dist/sms.d.ts
CHANGED
package/dist/sms.js
CHANGED
|
@@ -19,5 +19,4 @@ declare const JSX_SOURCE_LOCATION_PROP: "__samva_source_location";
|
|
|
19
19
|
/** Normalize the optional payload a JSX transform attaches. */
|
|
20
20
|
declare const completeJsxSourceLocation: (source: JsxSource | null | undefined) => JsxSourceLocation | undefined;
|
|
21
21
|
//#endregion
|
|
22
|
-
export { completeJsxSourceLocation as i, JsxSource as n, JsxSourceLocation as r, JSX_SOURCE_LOCATION_PROP as t };
|
|
23
|
-
//# sourceMappingURL=source-locations-C8wCsiAy.d.ts.map
|
|
22
|
+
export { completeJsxSourceLocation as i, JsxSource as n, JsxSourceLocation as r, JSX_SOURCE_LOCATION_PROP as t };
|
|
@@ -61,5 +61,4 @@ declare const defineTemplate: <S extends StandardJSONSchemaV1>(definition: {
|
|
|
61
61
|
readonly whatsapp?: ((input: NoInfer<StandardJSONSchemaV1.InferInput<S>>) => EmailNode) | undefined;
|
|
62
62
|
}) => SmlTemplate<StandardJSONSchemaV1.InferInput<S>>;
|
|
63
63
|
//#endregion
|
|
64
|
-
export { TEMPLATE_NAME_PATTERN as a, TEMPLATE_ID_PATTERN as i, EmailContent as n, TemplateInput as o, SmlTemplate as r, defineTemplate as s, EmailChannel as t };
|
|
65
|
-
//# sourceMappingURL=template-DMPwxMSq.d.ts.map
|
|
64
|
+
export { TEMPLATE_NAME_PATTERN as a, TEMPLATE_ID_PATTERN as i, EmailContent as n, TemplateInput as o, SmlTemplate as r, defineTemplate as s, EmailChannel as t };
|
|
@@ -583,5 +583,3 @@ const brandTailwindCss = (brand) => printBrandCss({
|
|
|
583
583
|
});
|
|
584
584
|
//#endregion
|
|
585
585
|
export { brandThemeVariables as a, parseBrandCss as c, formatColor as d, parseColor as f, brandTailwindCss as i, printBrandCss as l, BRAND_FOREGROUND_VARIABLE as n, contrastForeground as o, brandForegroundDefaults as r, darkVariableName as s, BRAND_COLOR_VARIABLE as t, downlevelColors as u };
|
|
586
|
-
|
|
587
|
-
//# sourceMappingURL=theme-css-CEUrDpqq.js.map
|
package/dist/whatsapp.d.ts
CHANGED
|
@@ -53,5 +53,4 @@ declare const WhatsApp: ((props: WhatsAppProps) => EmailNode) & {
|
|
|
53
53
|
CopyCodeButton: (props: WhatsAppCopyCodeButtonProps) => EmailNode;
|
|
54
54
|
};
|
|
55
55
|
//#endregion
|
|
56
|
-
export { WhatsApp, WhatsAppButtonsProps, type WhatsAppCategory, WhatsAppCopyCodeButtonProps, WhatsAppHeaderProps, type WhatsAppHeaderType, WhatsAppPhoneButtonProps, WhatsAppProps, WhatsAppQuickReplyButtonProps, WhatsAppTextProps, WhatsAppUrlButtonProps };
|
|
57
|
-
//# sourceMappingURL=whatsapp.d.ts.map
|
|
56
|
+
export { WhatsApp, WhatsAppButtonsProps, type WhatsAppCategory, WhatsAppCopyCodeButtonProps, WhatsAppHeaderProps, type WhatsAppHeaderType, WhatsAppPhoneButtonProps, WhatsAppProps, WhatsAppQuickReplyButtonProps, WhatsAppTextProps, WhatsAppUrlButtonProps };
|
package/dist/whatsapp.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@samva/markup",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.2",
|
|
4
4
|
"description": "Type-safe authoring and compilation primitives for Samva templates",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"email",
|
|
@@ -14,18 +14,17 @@
|
|
|
14
14
|
],
|
|
15
15
|
"homepage": "https://samva.dev",
|
|
16
16
|
"bugs": {
|
|
17
|
-
"url": "https://github.com/
|
|
17
|
+
"url": "https://github.com/SamvaHQ/SML/issues"
|
|
18
18
|
},
|
|
19
19
|
"license": "MIT",
|
|
20
20
|
"author": "Arya Labs, Inc.",
|
|
21
21
|
"repository": {
|
|
22
22
|
"type": "git",
|
|
23
|
-
"url": "https://github.com/
|
|
23
|
+
"url": "https://github.com/SamvaHQ/SML.git",
|
|
24
24
|
"directory": "packages/markup"
|
|
25
25
|
},
|
|
26
26
|
"files": [
|
|
27
27
|
"dist",
|
|
28
|
-
"!dist/**/*.map",
|
|
29
28
|
"samva-brand.d.ts",
|
|
30
29
|
"generated",
|
|
31
30
|
"skills",
|
|
@@ -106,7 +105,6 @@
|
|
|
106
105
|
"corpus:render": "bun run scripts/render-compatibility-corpus.ts",
|
|
107
106
|
"codegen:tailwind": "bun run scripts/codegen-tailwind.ts && oxfmt src/email/tailwind-stylesheets.gen.ts",
|
|
108
107
|
"codegen:contract": "bun run scripts/generate-contract.ts",
|
|
109
|
-
"codegen:docs": "bun run scripts/codegen-docs.ts",
|
|
110
108
|
"test": "vitest run",
|
|
111
109
|
"typecheck": "tsc --noEmit && tsc --noEmit -p tests/consumer/tsconfig.json"
|
|
112
110
|
},
|
|
@@ -123,6 +121,7 @@
|
|
|
123
121
|
"@css-inline/css-inline-wasm": "0.15.0",
|
|
124
122
|
"@effect/vitest": "4.0.0",
|
|
125
123
|
"@types/css-tree": "3.2.0",
|
|
124
|
+
"@types/node": "^26.6.2",
|
|
126
125
|
"effect": "4.0.0",
|
|
127
126
|
"tsdown": "^0.22.13",
|
|
128
127
|
"typescript": "^7.0.2",
|