@sleekcms/sync 2.7.1 → 2.7.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.
Files changed (2) hide show
  1. package/dist/AGENT.md +10 -0
  2. package/package.json +1 -1
package/dist/AGENT.md CHANGED
@@ -361,6 +361,16 @@ Callable from **any** view (page, block, entry, layout); duplicates are removed
361
361
  | `style(css, order?)` | Add `<style>` |
362
362
  | `script(value, order?)` | Add `<script>` — `.js` URL → external, otherwise inline |
363
363
 
364
+ `script()`/`link()` also accept a predefined library name — `gsap` (includes ScrollTrigger, pre-registered), `aos` (auto-`AOS.init()`, JS+CSS), `alpinejs`, `swiper`, `animejs`, `chartjs`, `threejs` (import map — pair with a `type: 'module'` script), `lottie`, `typedjs`, `splide`, `htmx`, `vanilla-tilt` — either call injects all of the library's CDN assets, deduped. Prefer these names over hand-picked CDN URLs, and only add a library the site actually uses.
365
+
366
+ ```ejs
367
+ <% script('aos') %> <!-- injects aos.js + aos.css + AOS.init() -->
368
+ <section data-aos="fade-up">
369
+ <h2><%= item.title %></h2>
370
+ </section>
371
+ <section data-aos="fade-up" data-aos-delay="150">...</section>
372
+ ```
373
+
364
374
  **CSS/JS rules:** include assets only via `link()` / `script()` — never raw `<link>`/`<script>` tags in views. Exception: creating `css/tailwind.css` enables Tailwind, which is compiled and injected automatically — never `link()` it. Default to a modern Tailwind design unless the user specifies otherwise.
365
375
 
366
376
  ## 9. SEO
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sleekcms/sync",
3
- "version": "2.7.1",
3
+ "version": "2.7.2",
4
4
  "description": "Edit SleekCMS sites locally — models, content, templates, images — with live two-way sync and AI agent support.",
5
5
  "keywords": [
6
6
  "sleekcms",