@vtex-email/core 0.2.0 → 0.3.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/dist/index.js CHANGED
@@ -183,15 +183,16 @@ function checkCapabilities(sites, profile) {
183
183
  const diagnostics = [];
184
184
  for (const site of sites.values()) {
185
185
  if (site.kind === "helper") {
186
- const capability = findCapability(profile, site.helper ?? "");
186
+ const capability = findCapability(profile, site.helper ?? "", "inline");
187
187
  if (!capability || capability.form !== "inline") {
188
188
  diagnostics.push(errorDiagnostic("HBS002", `Helper is not enabled: ${site.helper ?? ""}`));
189
189
  continue;
190
190
  }
191
191
  diagnostics.push(...checkArguments(capability, site));
192
+ diagnostics.push(...checkLiterals(capability, site));
192
193
  }
193
194
  if (site.kind === "block") {
194
- const capability = findCapability(profile, site.block ?? "");
195
+ const capability = findCapability(profile, site.block ?? "", "block");
195
196
  if (!capability || capability.form !== "block") {
196
197
  diagnostics.push(errorDiagnostic("HBS002", `Block is not enabled: ${site.block ?? ""}`));
197
198
  continue;
@@ -229,7 +230,16 @@ function checkArguments(capability, site) {
229
230
  const diagnostics = [];
230
231
  capability.args.forEach((expected, index) => {
231
232
  const actual = args[index];
232
- if (actual && actual.kind !== expected) {
233
+ if (!actual) return;
234
+ if (expected === "expression") {
235
+ if (actual.kind !== "path" && actual.kind !== "literal") {
236
+ diagnostics.push(
237
+ errorDiagnostic("HBS002", `Helper ${capability.name} argument ${index + 1} must be a path or literal.`)
238
+ );
239
+ }
240
+ return;
241
+ }
242
+ if (actual.kind !== expected) {
233
243
  diagnostics.push(
234
244
  errorDiagnostic("HBS002", `Helper ${capability.name} argument ${index + 1} must be a ${expected}.`)
235
245
  );
@@ -237,6 +247,10 @@ function checkArguments(capability, site) {
237
247
  });
238
248
  return diagnostics;
239
249
  }
250
+ function checkHashKind(expected, actual) {
251
+ if (expected === "expression") return actual.kind === "path" || actual.kind === "literal";
252
+ return actual.kind === expected;
253
+ }
240
254
  function checkHash(capability, site) {
241
255
  if (!capability.hash) {
242
256
  if (site.hash && Object.keys(site.hash).length > 0) {
@@ -252,11 +266,11 @@ function checkHash(capability, site) {
252
266
  diagnostics.push(errorDiagnostic("HBS002", `Helper ${capability.name} requires named argument ${expected.name}.`));
253
267
  continue;
254
268
  }
255
- if (actual.kind !== expected.kind) {
269
+ if (!checkHashKind(expected.kind, actual)) {
256
270
  diagnostics.push(
257
271
  errorDiagnostic(
258
272
  "HBS002",
259
- `Helper ${capability.name} named argument ${expected.name} must be a ${expected.kind}.`
273
+ `Helper ${capability.name} named argument ${expected.name} must be a ${expected.kind === "expression" ? "path or literal" : expected.kind}.`
260
274
  )
261
275
  );
262
276
  }
@@ -329,7 +343,7 @@ function regionsFrom(sites, anchors, profile) {
329
343
  for (const [id, site] of sites) {
330
344
  if (site.kind !== "block" || !site.block) continue;
331
345
  const anchor = anchors.get(id);
332
- const capability = findCapability(profile, site.block);
346
+ const capability = findCapability(profile, site.block, "block");
333
347
  if (!anchor || !capability) continue;
334
348
  regions.push({
335
349
  ...anchor,
@@ -402,10 +416,17 @@ function materialize(marker, site) {
402
416
  if (literal) return { ok: true, marker: { ...marker, replacement: emitInterpolation(literal.emitted) } };
403
417
  }
404
418
  if (marker.kind === "attr" && site.kind === "attr") {
405
- const path2 = site.path;
406
- const literal = site.args?.find((arg) => arg.kind === "literal");
407
- if (path2) return { ok: true, marker: { ...marker, replacement: emitInterpolation(path2.emitted) } };
408
- if (literal) return { ok: true, marker: { ...marker, replacement: emitInterpolation(literal.emitted) } };
419
+ if (site.path) {
420
+ return { ok: true, marker: { ...marker, replacement: emitInterpolation(site.path.emitted) } };
421
+ }
422
+ const args = site.args ?? [];
423
+ if (args.length === 1 && args[0]?.kind === "literal" && args[0].emitted.startsWith('"')) {
424
+ return { ok: true, marker: { ...marker, replacement: emitInterpolation(args[0].emitted) } };
425
+ }
426
+ if (args.length >= 1) {
427
+ const replacement = args.map((arg) => arg.kind === "path" ? emitInterpolation(arg.emitted) : arg.emitted).join("");
428
+ return { ok: true, marker: { ...marker, replacement } };
429
+ }
409
430
  }
410
431
  if (marker.kind === "open" && site.kind === "block" && site.block && site.path) {
411
432
  const parts = [site.path.emitted, ...(site.args ?? []).map((arg) => arg.emitted)];
@@ -639,20 +660,30 @@ function openEdits(source, id, marker, markers, located) {
639
660
  const closed = explicitElement(source, id, located.get(id));
640
661
  if (!closed.ok) return closed;
641
662
  const { location } = closed;
663
+ const startTag = location.startTag;
664
+ const endTag = location.endTag;
665
+ if (!startTag || !endTag) return fail("TOK001", `Opening ${id} has no explicit tags.`);
642
666
  const attr = location.attrs?.["data-anchor"];
643
667
  if (!attr) return fail("TOK001", `Opening ${id} was not located.`);
644
668
  const attrText = source.slice(attr.startOffset, attr.endOffset);
645
669
  if (attrText !== `data-anchor="${id}"`) return fail("TOK001", `Anchor ${id} was escaped or shifted.`);
670
+ const startExpected = source.slice(startTag.startOffset, startTag.endOffset);
646
671
  const edits = [
647
- { start: location.startOffset, end: location.startOffset, text: marker.open, expected: "", rank: 0 },
648
- anchorRemoval(source, attr.startOffset, attr.endOffset, attrText)
672
+ {
673
+ start: startTag.startOffset,
674
+ end: startTag.endOffset,
675
+ text: marker.open,
676
+ expected: startExpected,
677
+ rank: 0
678
+ }
649
679
  ];
650
680
  if (!marker.elseId) {
681
+ const endExpected2 = source.slice(endTag.startOffset, endTag.endOffset);
651
682
  edits.push({
652
- start: location.endOffset,
653
- end: location.endOffset,
683
+ start: endTag.startOffset,
684
+ end: endTag.endOffset,
654
685
  text: marker.close,
655
- expected: "",
686
+ expected: endExpected2,
656
687
  rank: 1
657
688
  });
658
689
  return { ok: true, edits };
@@ -661,6 +692,14 @@ function openEdits(source, id, marker, markers, located) {
661
692
  if (!alternative || alternative.kind !== "else" || alternative.openId !== id) {
662
693
  return fail("TOK001", `Alternative for block ${id} is not balanced.`);
663
694
  }
695
+ const endExpected = source.slice(endTag.startOffset, endTag.endOffset);
696
+ edits.push({
697
+ start: endTag.startOffset,
698
+ end: endTag.endOffset,
699
+ text: "",
700
+ expected: endExpected,
701
+ rank: 1
702
+ });
664
703
  return { ok: true, edits };
665
704
  }
666
705
  function elseEdits(source, id, marker, markers, located) {
@@ -671,6 +710,9 @@ function elseEdits(source, id, marker, markers, located) {
671
710
  }
672
711
  if (!closed.ok) return closed;
673
712
  const { location } = closed;
713
+ const startTag = location.startTag;
714
+ const endTag = location.endTag;
715
+ if (!startTag || !endTag) return fail("TOK001", `Alternative for block ${id} is not balanced.`);
674
716
  const attr = location.attrs?.["data-anchor"];
675
717
  if (!attr) return fail("TOK001", `Closing for block ${id} is not balanced.`);
676
718
  const attrText = source.slice(attr.startOffset, attr.endOffset);
@@ -678,9 +720,20 @@ function elseEdits(source, id, marker, markers, located) {
678
720
  return {
679
721
  ok: true,
680
722
  edits: [
681
- { start: location.startOffset, end: location.startOffset, text: "{{else}}", expected: "", rank: 0 },
682
- anchorRemoval(source, attr.startOffset, attr.endOffset, attrText),
683
- { start: location.endOffset, end: location.endOffset, text: opener.close, expected: "", rank: 1 }
723
+ {
724
+ start: startTag.startOffset,
725
+ end: startTag.endOffset,
726
+ text: "{{else}}",
727
+ expected: source.slice(startTag.startOffset, startTag.endOffset),
728
+ rank: 0
729
+ },
730
+ {
731
+ start: endTag.startOffset,
732
+ end: endTag.endOffset,
733
+ text: opener.close,
734
+ expected: source.slice(endTag.startOffset, endTag.endOffset),
735
+ rank: 1
736
+ }
684
737
  ]
685
738
  };
686
739
  }
@@ -715,16 +768,6 @@ function isImagePreload(element, attribute) {
715
768
  const as = element.attrs.find((attr) => attr.name === "as")?.value;
716
769
  return rel === "preload" && as === "image";
717
770
  }
718
- function anchorRemoval(source, start, end, attrText) {
719
- const withSpace = start > 0 && source[start - 1] === " ";
720
- return {
721
- start: withSpace ? start - 1 : start,
722
- end,
723
- text: "",
724
- expected: withSpace ? ` ${attrText}` : attrText,
725
- rank: 2
726
- };
727
- }
728
771
  function fail(code, message) {
729
772
  return { ok: false, diagnostics: [errorDiagnostic(code, message)] };
730
773
  }
@@ -1316,6 +1359,11 @@ function walk(nodes, stack, guards) {
1316
1359
  diagnostics.push(...inspectRef(node, stack, guards));
1317
1360
  continue;
1318
1361
  }
1362
+ if (node.path === "@index") {
1363
+ diagnostics.push(...walk(node.children, stack, guards));
1364
+ diagnostics.push(...walk(node.fallback, stack, guards));
1365
+ continue;
1366
+ }
1319
1367
  const absolute = absoluteSegments(node.path, node.parentHops, stack);
1320
1368
  const missing = absolute ? null : contractDiagnostic(node.path, "missing");
1321
1369
  if (!absolute || missing) {
@@ -1336,9 +1384,8 @@ function walk(nodes, stack, guards) {
1336
1384
  continue;
1337
1385
  }
1338
1386
  const child = { schema: elements, prefix: [...absolute.segments, "[]"] };
1339
- const outer = framesAt(stack, node.parentHops);
1340
- diagnostics.push(...walk(node.children, [...outer, child], guards));
1341
- diagnostics.push(...walk(node.fallback, outer, guards));
1387
+ diagnostics.push(...walk(node.children, [...stack, child], guards));
1388
+ diagnostics.push(...walk(node.fallback, stack, guards));
1342
1389
  continue;
1343
1390
  }
1344
1391
  if (node.block === "group") {
@@ -1351,9 +1398,23 @@ function walk(nodes, stack, guards) {
1351
1398
  schema: groupFrameSchema(elements),
1352
1399
  prefix: [...absolute.segments, "group"]
1353
1400
  };
1354
- const outer = framesAt(stack, node.parentHops);
1355
- diagnostics.push(...walk(node.children, [...outer, child], guards));
1356
- diagnostics.push(...walk(node.fallback, outer, guards));
1401
+ diagnostics.push(...walk(node.children, [...stack, child], guards));
1402
+ diagnostics.push(...walk(node.fallback, stack, guards));
1403
+ continue;
1404
+ }
1405
+ if (node.block === "with") {
1406
+ const child = { schema: lookup.schema, prefix: absolute.segments };
1407
+ diagnostics.push(...walk(node.children, [...stack, child], guards));
1408
+ diagnostics.push(...walk(node.fallback, stack, guards));
1409
+ continue;
1410
+ }
1411
+ if (node.block === "richShippingData") {
1412
+ const child = {
1413
+ schema: enrichShippingSchema(lookup.schema),
1414
+ prefix: absolute.segments
1415
+ };
1416
+ diagnostics.push(...walk(node.children, [...stack, child], guards));
1417
+ diagnostics.push(...walk(node.fallback, stack, guards));
1357
1418
  continue;
1358
1419
  }
1359
1420
  const nextGuards = [...guards, absolute.segments];
@@ -1439,6 +1500,12 @@ function resolve(schema, segments) {
1439
1500
  return { status: "found", optional: peeled.optional || next.optional, schema: next.schema };
1440
1501
  }
1441
1502
  if (current?.type === "array" && current.element) {
1503
+ if (segments[0] === "length") {
1504
+ if (segments.length === 1) {
1505
+ return { status: "found", optional: peeled.optional, schema: { def: { type: "number" } } };
1506
+ }
1507
+ return { status: "missing" };
1508
+ }
1442
1509
  if (!/^[0-9]+$/.test(segments[0] ?? "")) return { status: "missing" };
1443
1510
  const next = resolve(current.element, segments.slice(1));
1444
1511
  if (next.status !== "found") return next;
@@ -1469,12 +1536,70 @@ function groupFrameSchema(element) {
1469
1536
  type: "object",
1470
1537
  shape: {
1471
1538
  index: { def: { type: "number" } },
1472
- value: {},
1539
+ value: { def: { type: "string" } },
1473
1540
  items: { def: { type: "array", element } }
1474
1541
  }
1475
1542
  }
1476
1543
  };
1477
1544
  }
1545
+ var derivedLogisticsFields = {
1546
+ packageId: { def: { type: "string" } },
1547
+ shippingEstimate: { def: { type: "string" } },
1548
+ shippingEstimateDate: { def: { type: "string" } },
1549
+ shippingEstimateDays: { def: { type: "string" } },
1550
+ shippingEstimateDaysType: { def: { type: "string" } },
1551
+ deliveryWindow: {
1552
+ def: {
1553
+ type: "object",
1554
+ shape: {
1555
+ startDateUtc: { def: { type: "string" } },
1556
+ endDateUtc: { def: { type: "string" } }
1557
+ }
1558
+ }
1559
+ },
1560
+ availableDeliveryWindows: {
1561
+ def: {
1562
+ type: "array",
1563
+ element: {
1564
+ def: {
1565
+ type: "object",
1566
+ shape: {
1567
+ startDateUtc: { def: { type: "string" } },
1568
+ endDateUtc: { def: { type: "string" } }
1569
+ }
1570
+ }
1571
+ }
1572
+ }
1573
+ }
1574
+ };
1575
+ function enrichShippingSchema(schema) {
1576
+ const peeled = peelSchema(schema);
1577
+ if (peeled.status !== "ready") return schema;
1578
+ const current = schemaDef(peeled.schema);
1579
+ if (!current || current.type !== "object" || !current.shape) return schema;
1580
+ const logistics = current.shape.logisticsInfo;
1581
+ if (!logistics) return schema;
1582
+ const elements = arrayElements(logistics);
1583
+ if (!elements) return schema;
1584
+ const elementPeeled = peelSchema(elements);
1585
+ const elementDef = elementPeeled.status === "ready" ? schemaDef(elementPeeled.schema) : null;
1586
+ const baseShape = elementDef?.type === "object" && elementDef.shape ? { ...elementDef.shape } : {};
1587
+ const enrichedElement = {
1588
+ def: {
1589
+ type: "object",
1590
+ shape: { ...baseShape, ...derivedLogisticsFields }
1591
+ }
1592
+ };
1593
+ return {
1594
+ def: {
1595
+ type: "object",
1596
+ shape: {
1597
+ ...current.shape,
1598
+ logisticsInfo: { def: { type: "array", element: enrichedElement } }
1599
+ }
1600
+ }
1601
+ };
1602
+ }
1478
1603
  export {
1479
1604
  TOKEN_BODY_LENGTH,
1480
1605
  TOKEN_LENGTH,
@@ -1 +1 @@
1
- {"version":3,"file":"bind.d.ts","sourceRoot":"","sources":["../../src/markers/bind.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,KAAK,EAAE,kBAAkB,EAAE,eAAe,EAAE,MAAM,YAAY,CAAA;AACrE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAA;AACnD,OAAO,KAAK,EAAgB,UAAU,EAAE,MAAM,SAAS,CAAA;AACvD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AActC,MAAM,MAAM,UAAU,GAClB;IAAE,EAAE,EAAE,IAAI,CAAC;IAAC,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAAC,IAAI,EAAE,kBAAkB,EAAE,CAAC;IAAC,SAAS,EAAE,SAAS,EAAE,CAAA;CAAE,GAC9F,OAAO,CAAA;AAEX,wBAAgB,SAAS,CACvB,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,EACpC,KAAK,EAAE,WAAW,CAAC,MAAM,EAAE,UAAU,CAAC,EACtC,OAAO,EAAE,eAAe,GACvB,UAAU,CAuBZ"}
1
+ {"version":3,"file":"bind.d.ts","sourceRoot":"","sources":["../../src/markers/bind.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,KAAK,EAAW,kBAAkB,EAAE,eAAe,EAAE,MAAM,YAAY,CAAA;AAC9E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAA;AACnD,OAAO,KAAK,EAA8B,UAAU,EAAE,MAAM,SAAS,CAAA;AACrE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AActC,MAAM,MAAM,UAAU,GAClB;IAAE,EAAE,EAAE,IAAI,CAAC;IAAC,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAAC,IAAI,EAAE,kBAAkB,EAAE,CAAC;IAAC,SAAS,EAAE,SAAS,EAAE,CAAA;CAAE,GAC9F,OAAO,CAAA;AAEX,wBAAgB,SAAS,CACvB,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,EACpC,KAAK,EAAE,WAAW,CAAC,MAAM,EAAE,UAAU,CAAC,EACtC,OAAO,EAAE,eAAe,GACvB,UAAU,CAuBZ"}
@@ -1,12 +1,12 @@
1
- import type { ArgKind } from '../profile';
2
- export type BlockName = 'each' | 'if' | 'unless' | 'ifCond' | 'hasSubStr' | 'group' | 'eq';
1
+ export type BlockName = 'each' | 'if' | 'unless' | 'ifCond' | 'hasSubStr' | 'group' | 'eq' | 'with' | 'math' | 'richShippingData';
3
2
  export type DynamicAttribute = 'href' | 'src' | 'alt' | 'title';
3
+ export type SiteArgKind = 'path' | 'literal';
4
4
  export interface ResolvedPath {
5
5
  emitted: string;
6
6
  parentHops: number;
7
7
  }
8
8
  export interface SiteArgument {
9
- kind: ArgKind;
9
+ kind: SiteArgKind;
10
10
  emitted: string;
11
11
  path?: ResolvedPath;
12
12
  }
@@ -1 +1 @@
1
- {"version":3,"file":"sites.d.ts","sourceRoot":"","sources":["../../src/markers/sites.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AAEzC,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,IAAI,GAAG,QAAQ,GAAG,QAAQ,GAAG,WAAW,GAAG,OAAO,GAAG,IAAI,CAAA;AAE1F,MAAM,MAAM,gBAAgB,GAAG,MAAM,GAAG,KAAK,GAAG,KAAK,GAAG,OAAO,CAAA;AAE/D,MAAM,WAAW,YAAY;IAC3B,OAAO,EAAE,MAAM,CAAA;IACf,UAAU,EAAE,MAAM,CAAA;CACnB;AAED,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,OAAO,CAAA;IACb,OAAO,EAAE,MAAM,CAAA;IACf,IAAI,CAAC,EAAE,YAAY,CAAA;CACpB;AAED,MAAM,WAAW,QAAQ;IACvB,QAAQ,EAAE,IAAI,EAAE,MAAM,GAAG,YAAY,CAAA;CACtC;AAED,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,GAAG,MAAM,GAAG,SAAS,CAAA;IACvD,IAAI,CAAC,EAAE,YAAY,CAAA;IACnB,KAAK,CAAC,EAAE,SAAS,CAAA;IACjB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,IAAI,CAAC,EAAE,SAAS,YAAY,EAAE,CAAA;IAC9B,IAAI,CAAC,EAAE,QAAQ,CAAA;IACf,SAAS,CAAC,EAAE,gBAAgB,CAAA;CAC7B"}
1
+ {"version":3,"file":"sites.d.ts","sourceRoot":"","sources":["../../src/markers/sites.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,SAAS,GACjB,MAAM,GACN,IAAI,GACJ,QAAQ,GACR,QAAQ,GACR,WAAW,GACX,OAAO,GACP,IAAI,GACJ,MAAM,GACN,MAAM,GACN,kBAAkB,CAAA;AAEtB,MAAM,MAAM,gBAAgB,GAAG,MAAM,GAAG,KAAK,GAAG,KAAK,GAAG,OAAO,CAAA;AAE/D,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,SAAS,CAAA;AAE5C,MAAM,WAAW,YAAY;IAC3B,OAAO,EAAE,MAAM,CAAA;IACf,UAAU,EAAE,MAAM,CAAA;CACnB;AAED,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,WAAW,CAAA;IACjB,OAAO,EAAE,MAAM,CAAA;IACf,IAAI,CAAC,EAAE,YAAY,CAAA;CACpB;AAED,MAAM,WAAW,QAAQ;IACvB,QAAQ,EAAE,IAAI,EAAE,MAAM,GAAG,YAAY,CAAA;CACtC;AAED,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,GAAG,MAAM,GAAG,SAAS,CAAA;IACvD,IAAI,CAAC,EAAE,YAAY,CAAA;IACnB,KAAK,CAAC,EAAE,SAAS,CAAA;IACjB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,IAAI,CAAC,EAAE,SAAS,YAAY,EAAE,CAAA;IAC9B,IAAI,CAAC,EAAE,QAAQ,CAAA;IACf,SAAS,CAAC,EAAE,gBAAgB,CAAA;CAC7B"}
package/dist/profile.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  export type Evidence = 'documented' | 'verified' | 'experimental';
2
- export type ArgKind = 'path' | 'literal';
2
+ export type ArgKind = 'path' | 'literal' | 'expression';
3
3
  export interface HashArg {
4
4
  name: string;
5
5
  kind: ArgKind;
@@ -1 +1 @@
1
- {"version":3,"file":"profile.d.ts","sourceRoot":"","sources":["../src/profile.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,QAAQ,GAAG,YAAY,GAAG,UA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CAAA;IACZ,KAAK,EAAE,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,OAAO,EAAE,YAAY,KAAK,MAAM,CAAA;CAC9E;AAED,MAAM,MAAM,eAAe,GAAG,YAAY,GAAG,WAAW,CAAA;AAExD,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,SAAS,eAAe,EAAE,CAAA;CACpC;AAED,MAAM,WAAW,OAAQ,SAAQ,eAAe;IAC9C,OAAO,EAAE,SAAS,eAAe,EAAE,CAAA;CACpC;AAED,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,eAAe,GAAG,MAAM,EAAE,CAEpE;AAED,wBAAgB,cAAc,CAC5B,OAAO,EAAE,eAAe,EACxB,IAAI,EAAE,MAAM,GAAG,SAAS,EACxB,IAAI,CAAC,EAAE,kBAAkB,CAAC,MAAM,CAAC,GAChC,kBAAkB,GAAG,SAAS,CAGhC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vtex-email/core",
3
- "version": "0.2.0",
3
+ "version": "0.3.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/marcelotk15/vtex-react-email.git"