create-prisma-php-app 5.1.0-alpha.3 → 5.1.0-alpha.4
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.
|
@@ -94,7 +94,8 @@
|
|
|
94
94
|
- For page-local interactivity, prefer `index.php` or nested `layout.php` with a plain inline `<script>` that contains PulsePoint state and functions directly, and use `pp.fetchFunction(...)` for backend calls.
|
|
95
95
|
- Do not wrap inline PulsePoint code in `DOMContentLoaded`, IIFEs, manual `pp.mount()` calls, or custom scoping/bootstrap helpers. Prisma PHP scopes the component boundary and runs the script for you.
|
|
96
96
|
- Reserve plain browser JavaScript or TypeScript modules for reusable helpers in `ts/`, third-party libraries, low-level browser APIs, or behavior that does not belong inside a PulsePoint component boundary.
|
|
97
|
-
- Use `pp-style`
|
|
97
|
+
- Use `pp-style` whenever inline CSS contains `{...}` interpolation or any other template-driven/reactive value, reserve plain `style` for fully static inline CSS, use `pp-spread="{...attrs}"` for dynamic attribute objects, keep `pp-for` only on `<template>`, and use plain `key` for keyed diffing.
|
|
98
|
+
- Do not generate reactive inline CSS inside a plain `style` attribute such as `style="width: {progress}%";` use `pp-style="width: {progress}%";` instead so editor CSS validation does not flag the source markup as invalid.
|
|
98
99
|
- Use `pp.ref(...)`, `pp-ref`, `pp.portal(...)`, `pp.createContext(...)`, `Context.Provider`, and `pp.context(...)` according to `pulsepoint.md`.
|
|
99
100
|
- Use `value`, `defaultvalue`, and `defaultchecked` form bindings according to `pulsepoint.md`; do not author internal `data-pp-*` runtime attributes.
|
|
100
101
|
|
package/dist/AGENTS.md
CHANGED
|
@@ -712,7 +712,8 @@ Also follow these rules:
|
|
|
712
712
|
- do not write React, Vue, Alpine, or Livewire syntax and call it PulsePoint
|
|
713
713
|
- keep backend concerns separate from PulsePoint runtime concerns
|
|
714
714
|
- prefer simple documented runtime primitives over abstractions copied from other ecosystems
|
|
715
|
-
- use `pp-style`
|
|
715
|
+
- use `pp-style` whenever inline CSS contains `{...}` interpolation or any other template-driven/reactive value, and reserve plain `style` for fully static inline CSS
|
|
716
|
+
- do **not** generate reactive inline CSS inside a plain `style` attribute such as `style="width: {progress}%";` use `pp-style="width: {progress}%";` instead so source markup stays editor-friendly
|
|
716
717
|
- use `pp-spread="{...attrs}"` for dynamic attribute objects and omit nullish values from those objects
|
|
717
718
|
- use `pp-for` only on `<template>` with `item in items` or `(item, index) in items`
|
|
718
719
|
- use plain `key` for keyed diffing; do not invent `pp-key`
|