@samva/markup 0.4.0 → 0.5.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.
Files changed (102) hide show
  1. package/AGENTS.md +17 -0
  2. package/dist/{ast-63I-VLQx.d.ts → ast-BLybiDxp.d.ts} +34 -60
  3. package/dist/ast.d.ts +2 -2
  4. package/dist/ast.js +4 -52
  5. package/dist/{catalog-Ck1tAGwO.d.ts → catalog-Db0UcCTg.d.ts} +2 -2
  6. package/dist/{checks-DXuERO4B.js → checks-CmmITP6j.js} +14 -14
  7. package/dist/checks.d.ts +1 -1
  8. package/dist/checks.js +1 -1
  9. package/dist/classes.d.ts +1 -1
  10. package/dist/compile-sms.d.ts +3 -3
  11. package/dist/compile-whatsapp.d.ts +5 -5
  12. package/dist/compile-whatsapp.js +3 -3
  13. package/dist/compile.d.ts +5 -5
  14. package/dist/compile.js +5 -5
  15. package/dist/compiler.d.ts +4 -4
  16. package/dist/compiler.js +6 -6
  17. package/dist/components.d.ts +4 -4
  18. package/dist/conditionals.js +3 -3
  19. package/dist/corpus-CM7rKX41.d.ts +106 -0
  20. package/dist/{css-ar2lU3NC.d.ts → css-DoNc7CiC.d.ts} +4 -5
  21. package/dist/diagnostics-CqepLcpI.d.ts +47 -0
  22. package/dist/diagnostics-eFM9A_TU.d.ts +46 -0
  23. package/dist/diagnostics.d.ts +2 -2
  24. package/dist/diagnostics.js +15 -29
  25. package/dist/{elements-DtwKlFVH.d.ts → elements-ChJULZlh.d.ts} +40 -161
  26. package/dist/email/components.d.ts +1 -1
  27. package/dist/email/diagnostics.d.ts +1 -1
  28. package/dist/email/diagnostics.js +8 -43
  29. package/dist/email/elements.d.ts +1 -1
  30. package/dist/email/html.d.ts +2 -2
  31. package/dist/email/html.js +9 -9
  32. package/dist/email/jsx-dev-runtime.d.ts +3 -21
  33. package/dist/email/jsx-runtime.d.ts +1 -1
  34. package/dist/email/jsx-runtime.js +29 -3
  35. package/dist/email/render.d.ts +4 -4
  36. package/dist/email/render.js +1 -1
  37. package/dist/email/selection.d.ts +20 -31
  38. package/dist/email/selection.js +1 -53
  39. package/dist/email/source-edit.d.ts +1 -1
  40. package/dist/email/source-edit.js +2 -2
  41. package/dist/email/stylesheets.d.ts +1 -1
  42. package/dist/email/text.d.ts +1 -1
  43. package/dist/email/text.js +3 -3
  44. package/dist/emit.d.ts +2 -2
  45. package/dist/emit.js +5 -5
  46. package/dist/guards-eV1qLbf2.js +9 -0
  47. package/dist/{input-schema-BIfzI63B.d.ts → input-schema-7dPFVvNE.d.ts} +2 -2
  48. package/dist/input-schema-zjkgrXn2.js +455 -0
  49. package/dist/input-schema.d.ts +1 -1
  50. package/dist/input-schema.js +1 -169
  51. package/dist/interpolate.d.ts +9 -12
  52. package/dist/interpolate.js +1 -19
  53. package/dist/jsx-dev-runtime.d.ts +2 -2
  54. package/dist/{jsx-runtime-C5k_Zq0A.d.ts → jsx-runtime-BI4gI19E.d.ts} +3 -3
  55. package/dist/jsx-runtime.d.ts +1 -1
  56. package/dist/jsx-runtime.js +3 -3
  57. package/dist/model.d.ts +18 -33
  58. package/dist/model.js +4 -17
  59. package/dist/ops.d.ts +78 -172
  60. package/dist/ops.js +51 -117
  61. package/dist/{parser-CGBS73Gz.d.ts → parser-b_Kp5MT6.d.ts} +5 -5
  62. package/dist/parser.d.ts +1 -1
  63. package/dist/parser.js +8 -8
  64. package/dist/{predicate-G2SeSvoN.d.ts → predicate-Bmvgw7Ao.d.ts} +4 -4
  65. package/dist/{predicate-CvkzT-a2.js → predicate-DwXzmqIY.js} +11 -11
  66. package/dist/predicate.d.ts +1 -1
  67. package/dist/predicate.js +1 -1
  68. package/dist/presets/category-mapping.d.ts +1 -1
  69. package/dist/presets/corpus.d.ts +1 -1
  70. package/dist/presets/corpus.js +74 -117
  71. package/dist/presets/public-gallery.d.ts +2 -2
  72. package/dist/presets/public-gallery.js +7 -7
  73. package/dist/presets/public-handoff.d.ts +4 -4
  74. package/dist/presets/public-handoff.js +10 -9
  75. package/dist/presets/public-preview-artifacts.d.ts +5 -5
  76. package/dist/presets/public-preview-artifacts.js +9 -9
  77. package/dist/presets/showcase.d.ts +1 -1
  78. package/dist/presets.d.ts +1 -1
  79. package/dist/printer.d.ts +1 -1
  80. package/dist/{render-ykQhtMs_.js → render-T6IFPnP4.js} +12 -12
  81. package/dist/render-template.d.ts +7 -7
  82. package/dist/render-template.js +6 -6
  83. package/dist/{showcase-C_xgl6hz.d.ts → showcase-dvJMn-Lo.d.ts} +2 -2
  84. package/dist/{source-locations-BCJQnIfU.d.ts → source-locations-D6Te6Gy1.d.ts} +4 -26
  85. package/dist/source-locations.d.ts +2 -2
  86. package/dist/source-locations.js +3 -26
  87. package/dist/{template-Dy5yOPyp.d.ts → template-G-QPcfmn.d.ts} +4 -4
  88. package/dist/template.d.ts +1 -1
  89. package/dist/template.js +3 -3
  90. package/dist/theme-css.d.ts +3 -3
  91. package/dist/theme-css.js +3 -3
  92. package/dist/tsx-source-instrumentation.d.ts +1 -3
  93. package/dist/tsx-source-instrumentation.js +6 -6
  94. package/dist/tsx-tracer.d.ts +7 -11
  95. package/dist/tsx-tracer.js +164 -164
  96. package/dist/{variables-if1VrV34.d.ts → variables-BnKs1iqb.d.ts} +2 -2
  97. package/dist/variables.d.ts +1 -1
  98. package/dist/variables.js +4 -4
  99. package/package.json +4 -3
  100. package/dist/corpus-U2EeALvS.d.ts +0 -234
  101. package/dist/diagnostics-Djd9ckLg.d.ts +0 -90
  102. package/dist/diagnostics-oveE-laV.d.ts +0 -79
@@ -1,4 +1,4 @@
1
- import { r as PredicateAst } from "./predicate-G2SeSvoN.js";
1
+ import { r as PredicateAst } from "./predicate-Bmvgw7Ao.js";
2
2
  //#region src/variables.d.ts
3
3
  /** Brand carried by every VariableRef, keyed off a private symbol. */
4
4
  declare const VARIABLE_REF: unique symbol;
@@ -74,4 +74,4 @@ declare const createVariablesProxy: <T extends Record<string, unknown>>() => {
74
74
  };
75
75
  //#endregion
76
76
  export { VariableKind as a, VariableRefBrand as c, isPredicateRef as d, isVariableRef as f, VARIABLE_REF as i, Variables as l, PREDICATE_REF as n, VariableRecorder as o, printPredicateRef as p, PredicateRef as r, VariableRef as s, CollectedVariable as t, createVariablesProxy as u };
77
- //# sourceMappingURL=variables-if1VrV34.d.ts.map
77
+ //# sourceMappingURL=variables-BnKs1iqb.d.ts.map
@@ -1,2 +1,2 @@
1
- import { a as VariableKind, c as VariableRefBrand, d as isPredicateRef, f as isVariableRef, i as VARIABLE_REF, l as Variables, n as PREDICATE_REF, o as VariableRecorder, p as printPredicateRef, r as PredicateRef, s as VariableRef, t as CollectedVariable, u as createVariablesProxy } from "./variables-if1VrV34.js";
1
+ import { a as VariableKind, c as VariableRefBrand, d as isPredicateRef, f as isVariableRef, i as VARIABLE_REF, l as Variables, n as PREDICATE_REF, o as VariableRecorder, p as printPredicateRef, r as PredicateRef, s as VariableRef, t as CollectedVariable, u as createVariablesProxy } from "./variables-BnKs1iqb.js";
2
2
  export { CollectedVariable, PREDICATE_REF, PredicateRef, VARIABLE_REF, VariableKind, VariableRecorder, VariableRef, VariableRefBrand, Variables, createVariablesProxy, isPredicateRef, isVariableRef, printPredicateRef };
package/dist/variables.js CHANGED
@@ -1,5 +1,5 @@
1
- import { a as printPredicate } from "./predicate-CvkzT-a2.js";
2
- import { Predicate } from "effect";
1
+ import { t as hasProperty } from "./guards-eV1qLbf2.js";
2
+ import { a as printPredicate } from "./predicate-DwXzmqIY.js";
3
3
  //#region src/variables.ts
4
4
  const PLACEHOLDER_SPAN = {
5
5
  start: 0,
@@ -10,8 +10,8 @@ const VARIABLE_REF = Symbol.for("@samva/markup/VariableRef");
10
10
  /** Brand carried by every PredicateRef. */
11
11
  const PREDICATE_REF = Symbol.for("@samva/markup/PredicateRef");
12
12
  const COERCION_MESSAGE = "variables are send-time values; branch on build-time data instead";
13
- const isVariableRef = (value) => Predicate.hasProperty(value, VARIABLE_REF);
14
- const isPredicateRef = (value) => Predicate.hasProperty(value, PREDICATE_REF);
13
+ const isVariableRef = (value) => hasProperty(value, VARIABLE_REF);
14
+ const isPredicateRef = (value) => hasProperty(value, PREDICATE_REF);
15
15
  const literalFor = (value) => typeof value === "number" ? {
16
16
  kind: "number",
17
17
  value
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@samva/markup",
3
- "version": "0.4.0",
3
+ "version": "0.5.0",
4
4
  "description": "Type-safe authoring and compilation primitives for Samva templates",
5
5
  "keywords": [
6
6
  "email",
@@ -273,8 +273,8 @@
273
273
  },
274
274
  "dependencies": {
275
275
  "@cfworker/json-schema": "4.1.1",
276
- "ajv": "8.20.0",
277
- "effect": "4.0.0-rc.112"
276
+ "@standard-schema/spec": "1.1.0",
277
+ "better-result": "3.0.1"
278
278
  },
279
279
  "devDependencies": {
280
280
  "@babel/parser": "^8.0.4",
@@ -283,6 +283,7 @@
283
283
  "@types/css-tree": "3.2.0",
284
284
  "caniemail": "2.0.2",
285
285
  "css-tree": "3.2.1",
286
+ "effect": "4.0.0-rc.112",
286
287
  "tailwindcss": "^4.3.3",
287
288
  "tsdown": "^0.22.13",
288
289
  "typescript": "^7.0.2",
@@ -1,234 +0,0 @@
1
- import { n as OwnedShowcaseId, t as BrandRecreationShowcaseId } from "./showcase-C_xgl6hz.js";
2
- import { Result, Schema } from "effect";
3
- //#region presets/corpus.d.ts
4
- declare const TemplateCorpusKind: Schema.Literals<readonly ["owned-editable-sml", "brand-recreation-sml", "inspiration-reference"]>;
5
- type TemplateCorpusKind = typeof TemplateCorpusKind.Type;
6
- declare const templateFacetOptions: {
7
- readonly jobType: readonly ["account-access", "commerce", "product-communication", "lifecycle", "publishing-campaigns"];
8
- readonly lifecycle: readonly ["acquisition", "activation", "engagement", "transaction", "retention", "recovery"];
9
- readonly industry: readonly ["saas", "ecommerce", "developer-tools", "newsletters-media"];
10
- readonly season: readonly ["evergreen", "seasonal"];
11
- readonly audience: readonly ["product-users", "customers", "members", "readers", "shoppers", "teams"];
12
- readonly design: readonly ["minimal", "branded", "editorial", "data-heavy", "single-cta"];
13
- readonly brandProvenance: readonly ["samva-original", "third-party-reference"];
14
- };
15
- declare const TemplateFacetSet: Schema.Struct<{
16
- readonly jobType: Schema.$Array<Schema.Literals<readonly ["account-access", "commerce", "product-communication", "lifecycle", "publishing-campaigns"]>>;
17
- readonly lifecycle: Schema.$Array<Schema.Literals<readonly ["acquisition", "activation", "engagement", "transaction", "retention", "recovery"]>>;
18
- readonly industry: Schema.$Array<Schema.Literals<readonly ["saas", "ecommerce", "developer-tools", "newsletters-media"]>>;
19
- readonly season: Schema.$Array<Schema.Literals<readonly ["evergreen", "seasonal"]>>;
20
- readonly audience: Schema.$Array<Schema.Literals<readonly ["product-users", "customers", "members", "readers", "shoppers", "teams"]>>;
21
- readonly design: Schema.$Array<Schema.Literals<readonly ["minimal", "branded", "editorial", "data-heavy", "single-cta"]>>;
22
- readonly brandProvenance: Schema.$Array<Schema.Literals<readonly ["samva-original", "third-party-reference"]>>;
23
- }>;
24
- interface TemplateFacetSet extends Schema.Schema.Type<typeof TemplateFacetSet> {}
25
- declare const OwnedEditablePreset: Schema.TaggedStruct<"OwnedEditablePreset", {
26
- readonly corpusKind: Schema.Literal<"owned-editable-sml">;
27
- readonly provenance: Schema.Struct<{
28
- readonly owner: Schema.Literal<"Samva">;
29
- readonly sourcePath: Schema.String;
30
- readonly recordedAt: Schema.String;
31
- }>;
32
- readonly review: Schema.Struct<{
33
- readonly state: Schema.Literals<readonly ["draft", "approved", "rejected"]>;
34
- readonly reviewedBy: Schema.String;
35
- readonly reviewedAt: Schema.String;
36
- readonly notes: Schema.String;
37
- }>;
38
- readonly display: Schema.Struct<{
39
- readonly state: Schema.Literals<readonly ["hidden", "public"]>;
40
- readonly attributionLabel: Schema.String;
41
- }>;
42
- readonly retention: Schema.Struct<{
43
- readonly policy: Schema.Literals<readonly ["retain-until-withdrawn", "retain-while-linked"]>;
44
- readonly reviewedAt: Schema.String;
45
- }>;
46
- readonly takedown: Schema.Struct<{
47
- readonly state: Schema.Literals<readonly ["active", "removed"]>;
48
- readonly contact: Schema.String;
49
- readonly procedureUrl: Schema.String;
50
- }>;
51
- }>;
52
- interface OwnedEditablePreset extends Schema.Schema.Type<typeof OwnedEditablePreset> {}
53
- declare const BrandRecreationPreset: Schema.TaggedStruct<"BrandRecreationPreset", {
54
- readonly corpusKind: Schema.Literal<"brand-recreation-sml">;
55
- readonly provenance: Schema.Struct<{
56
- readonly owner: Schema.Literal<"Samva">;
57
- readonly sourcePath: Schema.String;
58
- readonly recordedAt: Schema.String;
59
- /** The brand whose own email is recreated, named on every public surface. */
60
- readonly brand: Schema.String;
61
- /** What that brand's email does, in the customer's words. */
62
- readonly subject: Schema.String;
63
- readonly reviewedNote: Schema.String;
64
- }>;
65
- readonly review: Schema.Struct<{
66
- readonly state: Schema.Literals<readonly ["draft", "approved", "rejected"]>;
67
- readonly reviewedBy: Schema.String;
68
- readonly reviewedAt: Schema.String;
69
- readonly notes: Schema.String;
70
- }>;
71
- readonly display: Schema.Struct<{
72
- readonly state: Schema.Literals<readonly ["hidden", "public"]>;
73
- readonly attributionLabel: Schema.String;
74
- }>;
75
- readonly retention: Schema.Struct<{
76
- readonly policy: Schema.Literals<readonly ["retain-until-withdrawn", "retain-while-linked"]>;
77
- readonly reviewedAt: Schema.String;
78
- }>;
79
- readonly takedown: Schema.Struct<{
80
- readonly state: Schema.Literals<readonly ["active", "removed"]>;
81
- readonly contact: Schema.String;
82
- readonly procedureUrl: Schema.String;
83
- }>;
84
- }>;
85
- interface BrandRecreationPreset extends Schema.Schema.Type<typeof BrandRecreationPreset> {}
86
- /** Clean-room recreations of a named brand's own email, authored as editable Samva projects. */
87
- declare const brandRecreationProvenance: Record<BrandRecreationShowcaseId, BrandRecreationPreset["provenance"]>;
88
- /**
89
- * Owned presets authored as complete showcase projects with their own stylesheet and assets.
90
- * Every other owned preset is the single module `packages/markup/presets/<id>.tsx`.
91
- */
92
- declare const ownedShowcasePresetSources: Record<OwnedShowcaseId, string>;
93
- declare const ownedPresetSourcePath: (id: string) => string;
94
- declare const InspirationReference: Schema.TaggedStruct<"InspirationReference", {
95
- readonly corpusKind: Schema.Literal<"inspiration-reference">;
96
- readonly provenance: Schema.Struct<{
97
- readonly publisher: Schema.String;
98
- readonly sourceUrl: Schema.String;
99
- readonly capturedAt: Schema.String;
100
- readonly rightsBasis: Schema.Literals<readonly ["display-link-and-commentary", "permission"]>;
101
- }>;
102
- readonly review: Schema.Struct<{
103
- readonly state: Schema.Literals<readonly ["draft", "approved", "rejected"]>;
104
- readonly reviewedBy: Schema.String;
105
- readonly reviewedAt: Schema.String;
106
- readonly notes: Schema.String;
107
- }>;
108
- readonly display: Schema.Struct<{
109
- readonly state: Schema.Literals<readonly ["hidden", "public"]>;
110
- readonly attributionLabel: Schema.String;
111
- }>;
112
- readonly retention: Schema.Struct<{
113
- readonly policy: Schema.Literals<readonly ["retain-until-withdrawn", "retain-while-linked"]>;
114
- readonly reviewedAt: Schema.String;
115
- }>;
116
- readonly takedown: Schema.Struct<{
117
- readonly state: Schema.Literals<readonly ["active", "removed"]>;
118
- readonly contact: Schema.String;
119
- readonly procedureUrl: Schema.String;
120
- }>;
121
- }>;
122
- interface InspirationReference extends Schema.Schema.Type<typeof InspirationReference> {}
123
- declare const TemplateCorpusRecord: Schema.Union<readonly [Schema.TaggedStruct<"OwnedEditablePreset", {
124
- readonly corpusKind: Schema.Literal<"owned-editable-sml">;
125
- readonly provenance: Schema.Struct<{
126
- readonly owner: Schema.Literal<"Samva">;
127
- readonly sourcePath: Schema.String;
128
- readonly recordedAt: Schema.String;
129
- }>;
130
- readonly review: Schema.Struct<{
131
- readonly state: Schema.Literals<readonly ["draft", "approved", "rejected"]>;
132
- readonly reviewedBy: Schema.String;
133
- readonly reviewedAt: Schema.String;
134
- readonly notes: Schema.String;
135
- }>;
136
- readonly display: Schema.Struct<{
137
- readonly state: Schema.Literals<readonly ["hidden", "public"]>;
138
- readonly attributionLabel: Schema.String;
139
- }>;
140
- readonly retention: Schema.Struct<{
141
- readonly policy: Schema.Literals<readonly ["retain-until-withdrawn", "retain-while-linked"]>;
142
- readonly reviewedAt: Schema.String;
143
- }>;
144
- readonly takedown: Schema.Struct<{
145
- readonly state: Schema.Literals<readonly ["active", "removed"]>;
146
- readonly contact: Schema.String;
147
- readonly procedureUrl: Schema.String;
148
- }>;
149
- }>, Schema.TaggedStruct<"BrandRecreationPreset", {
150
- readonly corpusKind: Schema.Literal<"brand-recreation-sml">;
151
- readonly provenance: Schema.Struct<{
152
- readonly owner: Schema.Literal<"Samva">;
153
- readonly sourcePath: Schema.String;
154
- readonly recordedAt: Schema.String;
155
- /** The brand whose own email is recreated, named on every public surface. */
156
- readonly brand: Schema.String;
157
- /** What that brand's email does, in the customer's words. */
158
- readonly subject: Schema.String;
159
- readonly reviewedNote: Schema.String;
160
- }>;
161
- readonly review: Schema.Struct<{
162
- readonly state: Schema.Literals<readonly ["draft", "approved", "rejected"]>;
163
- readonly reviewedBy: Schema.String;
164
- readonly reviewedAt: Schema.String;
165
- readonly notes: Schema.String;
166
- }>;
167
- readonly display: Schema.Struct<{
168
- readonly state: Schema.Literals<readonly ["hidden", "public"]>;
169
- readonly attributionLabel: Schema.String;
170
- }>;
171
- readonly retention: Schema.Struct<{
172
- readonly policy: Schema.Literals<readonly ["retain-until-withdrawn", "retain-while-linked"]>;
173
- readonly reviewedAt: Schema.String;
174
- }>;
175
- readonly takedown: Schema.Struct<{
176
- readonly state: Schema.Literals<readonly ["active", "removed"]>;
177
- readonly contact: Schema.String;
178
- readonly procedureUrl: Schema.String;
179
- }>;
180
- }>, Schema.TaggedStruct<"InspirationReference", {
181
- readonly corpusKind: Schema.Literal<"inspiration-reference">;
182
- readonly provenance: Schema.Struct<{
183
- readonly publisher: Schema.String;
184
- readonly sourceUrl: Schema.String;
185
- readonly capturedAt: Schema.String;
186
- readonly rightsBasis: Schema.Literals<readonly ["display-link-and-commentary", "permission"]>;
187
- }>;
188
- readonly review: Schema.Struct<{
189
- readonly state: Schema.Literals<readonly ["draft", "approved", "rejected"]>;
190
- readonly reviewedBy: Schema.String;
191
- readonly reviewedAt: Schema.String;
192
- readonly notes: Schema.String;
193
- }>;
194
- readonly display: Schema.Struct<{
195
- readonly state: Schema.Literals<readonly ["hidden", "public"]>;
196
- readonly attributionLabel: Schema.String;
197
- }>;
198
- readonly retention: Schema.Struct<{
199
- readonly policy: Schema.Literals<readonly ["retain-until-withdrawn", "retain-while-linked"]>;
200
- readonly reviewedAt: Schema.String;
201
- }>;
202
- readonly takedown: Schema.Struct<{
203
- readonly state: Schema.Literals<readonly ["active", "removed"]>;
204
- readonly contact: Schema.String;
205
- readonly procedureUrl: Schema.String;
206
- }>;
207
- }>]>;
208
- type TemplateCorpusRecord = typeof TemplateCorpusRecord.Type;
209
- interface PublicCorpusRegistration {
210
- readonly id: string;
211
- readonly corpus: TemplateCorpusRecord;
212
- readonly facets: TemplateFacetSet;
213
- }
214
- interface PublicCorpusRegistrationIssue {
215
- readonly id: string;
216
- readonly message: string;
217
- }
218
- /** Decode and gate a record before it can enter any public projection. */
219
- declare const registerPublicCorpusEntry: (input: unknown) => Result.Result<PublicCorpusRegistration, PublicCorpusRegistrationIssue>;
220
- declare const TemplateFacetQuery: Schema.Struct<{
221
- readonly jobType: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["account-access", "commerce", "product-communication", "lifecycle", "publishing-campaigns"]>>>;
222
- readonly lifecycle: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["acquisition", "activation", "engagement", "transaction", "retention", "recovery"]>>>;
223
- readonly industry: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["saas", "ecommerce", "developer-tools", "newsletters-media"]>>>;
224
- readonly season: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["evergreen", "seasonal"]>>>;
225
- readonly audience: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["product-users", "customers", "members", "readers", "shoppers", "teams"]>>>;
226
- readonly design: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["minimal", "branded", "editorial", "data-heavy", "single-cta"]>>>;
227
- readonly brandProvenance: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["samva-original", "third-party-reference"]>>>;
228
- }>;
229
- interface TemplateFacetQuery extends Schema.Schema.Type<typeof TemplateFacetQuery> {}
230
- /** Strict intersection: every selected value in every selected dimension must match. */
231
- declare const matchesTemplateFacets: (facets: TemplateFacetSet, query: TemplateFacetQuery) => boolean;
232
- //#endregion
233
- export { PublicCorpusRegistrationIssue as a, TemplateFacetQuery as c, matchesTemplateFacets as d, ownedPresetSourcePath as f, templateFacetOptions as h, PublicCorpusRegistration as i, TemplateFacetSet as l, registerPublicCorpusEntry as m, InspirationReference as n, TemplateCorpusKind as o, ownedShowcasePresetSources as p, OwnedEditablePreset as r, TemplateCorpusRecord as s, BrandRecreationPreset as t, brandRecreationProvenance as u };
234
- //# sourceMappingURL=corpus-U2EeALvS.d.ts.map
@@ -1,90 +0,0 @@
1
- import { Schema } from "effect";
2
- //#region src/email/diagnostics.d.ts
3
- declare const EmailDiagnosticSeverity: Schema.Literals<readonly ["error", "warning", "info"]>;
4
- type EmailDiagnosticSeverity = typeof EmailDiagnosticSeverity.Type;
5
- /** What the emitted document establishes beyond the client feature matrix. */
6
- declare const EmailCompatibilityAssessment: Schema.Struct<{
7
- readonly assessment: Schema.Literals<readonly ["risk", "degradation", "unverified", "not-applicable"]>;
8
- /** A short description of the consequence or the remaining verification. */
9
- readonly title: Schema.String;
10
- }>;
11
- type EmailCompatibilityAssessment = typeof EmailCompatibilityAssessment.Type;
12
- declare const EmailDiagnostic: Schema.Struct<{
13
- /** Stable identifier, e.g. `unsupported-element` or `caniemail/css-border-radius`. */
14
- readonly code: Schema.String;
15
- readonly severity: Schema.Literals<readonly ["error", "warning", "info"]>;
16
- /** States what is wrong and what to write instead. */
17
- readonly message: Schema.String;
18
- /** Innermost authoring element first, then each enclosing component call site. */
19
- readonly origins: Schema.$Array<Schema.Struct<{
20
- readonly fileName: Schema.String;
21
- readonly lineNumber: Schema.Int;
22
- readonly columnNumber: Schema.Int;
23
- }>>;
24
- /** Target clients a compatibility finding applies to. */
25
- readonly clients: Schema.optional<Schema.$Array<Schema.String>>;
26
- /** Partial-support notes and other caveats a client matrix carries. */
27
- readonly notes: Schema.optional<Schema.String>;
28
- /** Which pinned rule data produced the finding. */
29
- readonly provenance: Schema.optional<Schema.String>;
30
- /** Declared fixtures whose rendered output produced this finding. */
31
- readonly fixtures: Schema.optional<Schema.$Array<Schema.String>>;
32
- /** Source chains for every located emitted occurrence; origins identifies the first. */
33
- readonly occurrences: Schema.optional<Schema.$Array<Schema.$Array<Schema.Struct<{
34
- readonly fileName: Schema.String;
35
- readonly lineNumber: Schema.Int;
36
- readonly columnNumber: Schema.Int;
37
- }>>>>;
38
- /** Compatibility observations are not automatically defects or proof of client rendering. */
39
- readonly compatibility: Schema.optional<Schema.Struct<{
40
- readonly assessment: Schema.Literals<readonly ["risk", "degradation", "unverified", "not-applicable"]>;
41
- /** A short description of the consequence or the remaining verification. */
42
- readonly title: Schema.String;
43
- }>>;
44
- }>;
45
- interface EmailDiagnostic extends Schema.Schema.Type<typeof EmailDiagnostic> {}
46
- declare const EmailCompileError_base: Schema.Class<EmailCompileError, Schema.TaggedStruct<"EmailCompileError", {
47
- readonly diagnostics: Schema.$Array<Schema.Struct<{
48
- /** Stable identifier, e.g. `unsupported-element` or `caniemail/css-border-radius`. */
49
- readonly code: Schema.String;
50
- readonly severity: Schema.Literals<readonly ["error", "warning", "info"]>;
51
- /** States what is wrong and what to write instead. */
52
- readonly message: Schema.String;
53
- /** Innermost authoring element first, then each enclosing component call site. */
54
- readonly origins: Schema.$Array<Schema.Struct<{
55
- readonly fileName: Schema.String;
56
- readonly lineNumber: Schema.Int;
57
- readonly columnNumber: Schema.Int;
58
- }>>;
59
- /** Target clients a compatibility finding applies to. */
60
- readonly clients: Schema.optional<Schema.$Array<Schema.String>>;
61
- /** Partial-support notes and other caveats a client matrix carries. */
62
- readonly notes: Schema.optional<Schema.String>;
63
- /** Which pinned rule data produced the finding. */
64
- readonly provenance: Schema.optional<Schema.String>;
65
- /** Declared fixtures whose rendered output produced this finding. */
66
- readonly fixtures: Schema.optional<Schema.$Array<Schema.String>>;
67
- /** Source chains for every located emitted occurrence; origins identifies the first. */
68
- readonly occurrences: Schema.optional<Schema.$Array<Schema.$Array<Schema.Struct<{
69
- readonly fileName: Schema.String;
70
- readonly lineNumber: Schema.Int;
71
- readonly columnNumber: Schema.Int;
72
- }>>>>;
73
- /** Compatibility observations are not automatically defects or proof of client rendering. */
74
- readonly compatibility: Schema.optional<Schema.Struct<{
75
- readonly assessment: Schema.Literals<readonly ["risk", "degradation", "unverified", "not-applicable"]>;
76
- /** A short description of the consequence or the remaining verification. */
77
- readonly title: Schema.String;
78
- }>>;
79
- }>>;
80
- }>, import("effect/Cause").YieldableError>;
81
- declare class EmailCompileError extends EmailCompileError_base {
82
- get message(): string;
83
- }
84
- /** `emails/welcome.tsx:12:3 unsupported-element: …` — the shape agents iterate on. */
85
- declare const formatEmailDiagnostic: (diagnostic: EmailDiagnostic) => string;
86
- /** True when a set of findings must stop the compile or refuse a publication. */
87
- declare const hasBlockingDiagnostic: (diagnostics: readonly EmailDiagnostic[]) => boolean;
88
- //#endregion
89
- export { formatEmailDiagnostic as a, EmailDiagnosticSeverity as i, EmailCompileError as n, hasBlockingDiagnostic as o, EmailDiagnostic as r, EmailCompatibilityAssessment as t };
90
- //# sourceMappingURL=diagnostics-Djd9ckLg.d.ts.map
@@ -1,79 +0,0 @@
1
- import { Schema } from "effect";
2
- //#region src/diagnostics.d.ts
3
- declare const SpanSchema: Schema.Struct<{
4
- readonly start: Schema.Finite;
5
- readonly end: Schema.Finite;
6
- }>;
7
- interface Span extends Schema.Schema.Type<typeof SpanSchema> {}
8
- declare const DiagnosticRepairSchema: Schema.Struct<{
9
- readonly kind: Schema.Literals<readonly ["replace-class", "remove-class", "rewrite-node", "use-primitive"]>;
10
- readonly raw: Schema.optional<Schema.String>;
11
- readonly suggestions: Schema.$Array<Schema.String>;
12
- readonly explanation: Schema.String;
13
- }>;
14
- interface DiagnosticRepair extends Schema.Schema.Type<typeof DiagnosticRepairSchema> {}
15
- declare const DiagnosticSchema: Schema.Struct<{
16
- readonly code: Schema.String;
17
- readonly message: Schema.String;
18
- readonly span: Schema.Struct<{
19
- readonly start: Schema.Finite;
20
- readonly end: Schema.Finite;
21
- }>;
22
- readonly repair: Schema.optional<Schema.Struct<{
23
- readonly kind: Schema.Literals<readonly ["replace-class", "remove-class", "rewrite-node", "use-primitive"]>;
24
- readonly raw: Schema.optional<Schema.String>;
25
- readonly suggestions: Schema.$Array<Schema.String>;
26
- readonly explanation: Schema.String;
27
- }>>;
28
- }>;
29
- interface Diagnostic extends Schema.Schema.Type<typeof DiagnosticSchema> {}
30
- declare const SmlParseError_base: Schema.Class<SmlParseError, Schema.TaggedStruct<"SmlParseError", {
31
- readonly diagnostics: Schema.$Array<Schema.Struct<{
32
- readonly code: Schema.String;
33
- readonly message: Schema.String;
34
- readonly span: Schema.Struct<{
35
- readonly start: Schema.Finite;
36
- readonly end: Schema.Finite;
37
- }>;
38
- readonly repair: Schema.optional<Schema.Struct<{
39
- readonly kind: Schema.Literals<readonly ["replace-class", "remove-class", "rewrite-node", "use-primitive"]>;
40
- readonly raw: Schema.optional<Schema.String>;
41
- readonly suggestions: Schema.$Array<Schema.String>;
42
- readonly explanation: Schema.String;
43
- }>>;
44
- }>>;
45
- }>, import("effect/Cause").YieldableError>;
46
- declare class SmlParseError extends SmlParseError_base {
47
- get message(): string;
48
- }
49
- declare const SmlCompileError_base: Schema.Class<SmlCompileError, Schema.TaggedStruct<"SmlCompileError", {
50
- readonly diagnostics: Schema.$Array<Schema.Struct<{
51
- readonly code: Schema.String;
52
- readonly message: Schema.String;
53
- readonly span: Schema.Struct<{
54
- readonly start: Schema.Finite;
55
- readonly end: Schema.Finite;
56
- }>;
57
- readonly repair: Schema.optional<Schema.Struct<{
58
- readonly kind: Schema.Literals<readonly ["replace-class", "remove-class", "rewrite-node", "use-primitive"]>;
59
- readonly raw: Schema.optional<Schema.String>;
60
- readonly suggestions: Schema.$Array<Schema.String>;
61
- readonly explanation: Schema.String;
62
- }>>;
63
- }>>;
64
- }>, import("effect/Cause").YieldableError>;
65
- declare class SmlCompileError extends SmlCompileError_base {
66
- get message(): string;
67
- }
68
- /** Newline-offset line map. Build once per source, query with `lineColumn`. */
69
- declare const buildLineMap: (source: string) => ReadonlyArray<number>;
70
- /** 1-based line/column for an absolute offset, via binary search. */
71
- declare const lineColumn: (lineMap: ReadonlyArray<number>, offset: number) => {
72
- readonly line: number;
73
- readonly column: number;
74
- };
75
- /** "line 12:8 unknown class ..." — the shape agents iterate on. */
76
- declare const formatDiagnostic: (source: string, diagnostic: Diagnostic) => string;
77
- //#endregion
78
- export { SmlCompileError as a, SpanSchema as c, lineColumn as d, DiagnosticSchema as i, buildLineMap as l, DiagnosticRepair as n, SmlParseError as o, DiagnosticRepairSchema as r, Span as s, Diagnostic as t, formatDiagnostic as u };
79
- //# sourceMappingURL=diagnostics-oveE-laV.d.ts.map