aem-eds-kit 0.4.22 → 0.4.25

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 CHANGED
@@ -6,7 +6,24 @@ adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ### Changed
10
+ - **Smaller published package (~206 kB → ~73 kB packed; 808 kB → ~220 kB
11
+ unpacked).** The build no longer ships a source map (it was ~60% of the
12
+ package; re-enable ad hoc with `tsup --sourcemap`) and now minifies the single
13
+ bundled binary (`dist/bin/eds.js` 265 kB → ~170 kB).
14
+
15
+ ### Fixed
16
+ - Removed the dangling `main`/`types` fields that pointed at a never-built
17
+ `dist/index.js` (a bare `import "aem-eds-kit"` would have failed) - the package
18
+ is a CLI, exposed via its `bin`.
19
+
9
20
  ### Added
21
+ - **`block from-design` records the design's frame widths** in the block's
22
+ `.eds-meta.json` (`breakpoints`), so `eds block preview` is width-honest at the
23
+ **real design widths**, not a fixed device set. The agent writes the widths it
24
+ reads from the design (prompt instruction), `--widths 390,768,1440` overrides,
25
+ and 375/768/1280 remains the fallback. New `src/lib/figma/breakpoints.ts`
26
+ (`parseWidths` / `normalizeBreakpoints`), extended `edsMetaSchema`.
10
27
  - **`eds init` writes a local-dev `.env` + `xwalk.json` by default.** `.env`
11
28
  carries the `aem up` config (`AEM_OPEN=/`, `AEM_PORT=3007`, `AEM_PAGES_URL`
12
29
  prefilled from the git remote); it's never overwritten and always gitignored.
package/README.md CHANGED
@@ -280,6 +280,7 @@ eds block from-design "<figma-url>" --dry-run # just build the prompt
280
280
  |---|---|
281
281
  | `--name <name>` | Override the inferred block name |
282
282
  | `--source <type>` | Content source: `document` \| `ue` \| `cf` \| `mixed` |
283
+ | `--widths <list>` | Design frame widths for preview breakpoints (e.g. `390,768,1440`) |
283
284
  | `--agent <type>` | Force `claude` \| `cursor` \| `codex` \| `none` |
284
285
  | `--dry-run` | Build the prompt only |
285
286
  | `--no-ue-model` | Skip the Universal Editor model |
@@ -287,6 +288,8 @@ eds block from-design "<figma-url>" --dry-run # just build the prompt
287
288
  | `--no-serve` | Don't auto-start the live preview |
288
289
  | `--yes` | Skip confirmation prompts |
289
290
 
291
+ The generated block records the **design's frame widths** in its `.eds-meta.json` (`breakpoints`), so `eds block preview` shows it at the real design widths rather than a fixed device set. The agent writes the widths it reads from the design; `--widths` overrides them, and 375/768/1280 is only the fallback.
292
+
290
293
  **Supported Figma URL formats:**
291
294
  - `figma.com/design/:fileKey/:name?node-id=...`
292
295
  - `figma.com/file/:fileKey/:name?node-id=...` (legacy)