create-email-template 0.1.3 → 0.1.5

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/README.md CHANGED
@@ -347,7 +347,8 @@ addBlock("button", 0); // …o en una posición específica
347
347
 
348
348
  ## Notas
349
349
 
350
- - **Estilos**: importa `create-email-template/style.css` una vez. Todo va bajo la clase `.ter-theme` con clases `ter-*` — no colisiona con tu Tailwind/CSS.
350
+ - **Estilos**: importa `create-email-template/style.css` una vez. Todo va bajo la clase `.ter-theme` con clases `ter-*` — no colisiona con tu Tailwind/CSS: ningún selector global, así que no pisa tus `@layer` ni tus utilidades (verificado por `check:css-scope` en el build del paquete).
351
+ - **Versiones < 0.1.5**: el reset universal `*` salía sin scope y, al llegar sin capa, podía pisar utilidades de apps con Tailwind v4 (`p-4`, `border`…). Actualiza a `>= 0.1.5`; si no puedes, cárgalo en una capa de baja prioridad: `@import 'create-email-template/style.css' layer(email-lib);` (declarando `@layer email-lib;` antes de tu `@import 'tailwindcss'`).
351
352
  - **Componentes sueltos**: también se exportan `BlockPalette`, `Canvas`, `PropertiesPanel`, `EditableBlockRenderer`, `InlineTextEditor`, `SelectionToolbar`, `VariablesInfoDialog` para armar un editor a medida.
352
353
  - **Demo completa**: `apps/vite-test` del [monorepo](https://github.com/asmel2020/creator-email-templates) — editor con config de muestra, autoguardado, undo y dialog comparando el render de React vs. el HTML del backend.
353
354
 
@@ -1 +1 @@
1
- {"version":3,"file":"inline-text-editor.d.ts","sourceRoot":"","sources":["../../../src/components/builder/inline-text-editor.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAmD,MAAM,OAAO,CAAC;AAiDxE,UAAU,KAAK;IACb,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACjC,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,iBAAiB,CAAC,EAAE,MAAM,IAAI,CAAC;IAC/B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,eAAO,MAAM,gBAAgB,GAAI,kGAU9B,KAAK,sBA+RP,CAAC"}
1
+ {"version":3,"file":"inline-text-editor.d.ts","sourceRoot":"","sources":["../../../src/components/builder/inline-text-editor.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAmD,MAAM,OAAO,CAAC;AAiDxE,UAAU,KAAK;IACb,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACjC,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,iBAAiB,CAAC,EAAE,MAAM,IAAI,CAAC;IAC/B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,eAAO,MAAM,gBAAgB,GAAI,kGAU9B,KAAK,sBAmSP,CAAC"}
package/dist/index.js CHANGED
@@ -26010,17 +26010,20 @@ var AL = [
26010
26010
  (!t || t.textContent?.trim() === "") && (e.preventDefault(), o());
26011
26011
  }
26012
26012
  }
26013
- }), n && _ && S(/* @__PURE__ */ y(jL, {
26014
- innerRef: p,
26015
- style: {
26016
- position: "fixed",
26017
- top: _.top,
26018
- left: _.left
26019
- },
26020
- onFormat: k,
26021
- selectionSize: x.uniform,
26022
- selectionMaxSize: x.max,
26023
- selectionColor: x.color
26013
+ }), n && _ && S(/* @__PURE__ */ y("div", {
26014
+ className: "ter-theme",
26015
+ children: /* @__PURE__ */ y(jL, {
26016
+ innerRef: p,
26017
+ style: {
26018
+ position: "fixed",
26019
+ top: _.top,
26020
+ left: _.left
26021
+ },
26022
+ onFormat: k,
26023
+ selectionSize: x.uniform,
26024
+ selectionMaxSize: x.max,
26025
+ selectionColor: x.color
26026
+ })
26024
26027
  }), document.body)]
26025
26028
  });
26026
26029
  }, LL = ({ block: e }) => {