@improba/page-builder 0.1.0 → 0.1.3

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
@@ -1,33 +1,33 @@
1
1
  # @improba/page-builder
2
2
 
3
- Bibliothèque Vue 3 pour construire et afficher des pages à partir d’un arbre JSON. Elle fournit un **mode lecture** (rendu statique, compatible SSR) et un **mode édition** (éditeur WYSIWYG avec palette de composants, panneau de propriétés, glisser-déposer, undo/redo). Le backend envoie un seul contrat JSON (`IPageData`) ; le frontend le rend et, en mode édition, permet de le modifier visuellement.
3
+ Vue 3 library for building and rendering pages from a JSON tree. It provides **read mode** (static rendering, SSR-compatible) and **edit mode** (WYSIWYG editor with component palette, property panel, drag-and-drop, undo/redo). The backend sends a single JSON contract (`IPageData`); the frontend renders it and, in edit mode, allows visual editing.
4
4
 
5
- **En bref :** installez le plugin Vue, fournissez des données `IPageData`, et utilisez `<PageBuilder>` en `mode="read"` pour l’affichage ou `mode="edit"` pour l’édition. Vous pouvez enregistrer vos propres composants (hero, cartes, etc.) et les utiliser comme blocs dans l’arbre.
5
+ **In short:** install the Vue plugin, provide `IPageData`, and use `<PageBuilder>` with `mode="read"` for display or `mode="edit"` for editing. You can register your own components (hero, cards, etc.) and use them as blocks in the tree.
6
6
 
7
- ## Aperçu
7
+ ## Overview
8
8
 
9
- **Mode édition** — Éditeur WYSIWYG avec palette de composants, panneau de propriétés et prévisualisation responsive.
9
+ **Edit mode** — WYSIWYG editor with component palette, property panel, and responsive preview.
10
10
 
11
- ![Mode édition — toolbar, palette, canvas, propriétés](./docs/images/edit-mode.png)
11
+ ![Edit mode — toolbar, palette, canvas, properties](./docs/images/edit-mode.png)
12
12
 
13
- **Mode lecture** — Rendu de la page sans interface d’édition (compatible SSR).
13
+ **Read mode** — Page rendering without editor UI (SSR-compatible).
14
14
 
15
- ![Mode lecturerendu de la page](./docs/images/read-mode.png)
15
+ ![Read modepage rendering](./docs/images/read-mode.png)
16
16
 
17
- *Pour régénérer les captures : `docker compose -f docker/docker-compose.yml run --rm e2e sh -lc "npm install && npm run docs:screenshots"`.*
17
+ *To regenerate screenshots: `docker compose -f docker/docker-compose.yml run --rm e2e sh -lc "npm install && npm run docs:screenshots"`.*
18
18
 
19
- ## Fonctionnalités
19
+ ## Features
20
20
 
21
- - **Mode lecture** — Rendu du contenu à partir d’un arbre JSON, compatible SSR. Intégrable dans Nuxt ou toute app Vue 3.
22
- - **Mode édition** — Éditeur WYSIWYG avec palette de composants, panneau de propriétés, glisser-déposer, undo/redo et prévisualisation responsive (desktop / tablette / mobile).
23
- - **Registre de composants** — Enregistrement de composants Vue personnalisés (props typées, slots, métadonnées d’édition). Livré avec des composants de mise en page et de contenu (PbColumn, PbRow, PbText, PbImage, etc.).
24
- - **Contrat JSON unique** — Le backend envoie un seul payload `IPageData` ; le frontend le rend et l’édite. Séparation claire des responsabilités.
21
+ - **Read mode** — Renders content from a JSON tree, SSR-compatible. Integrable with Nuxt or any Vue 3 app.
22
+ - **Edit mode** — WYSIWYG editor with component palette, property panel, drag-and-drop, undo/redo, and responsive preview (desktop / tablet / mobile).
23
+ - **Component registry** — Register custom Vue components (typed props, slots, edit metadata). Ships with layout and content components (PbColumn, PbRow, PbText, PbImage, etc.).
24
+ - **Single JSON contract** — Backend sends one `IPageData` payload; frontend renders and edits it. Clear separation of concerns.
25
25
 
26
- ## Démarrage rapide
26
+ ## Quick Start
27
27
 
28
- Pour un guide pas à pas (installation, premier rendu, mode édition, composants personnalisés), voir **[Quick Start](./docs/quickstart.md)**.
28
+ For a step-by-step guide (installation, first render, edit mode, custom components), see **[Quick Start](./docs/quickstart.md)**.
29
29
 
30
- Résumé minimal :
30
+ Minimal summary:
31
31
 
32
32
  ### Installation
33
33
 
@@ -204,19 +204,19 @@ docker compose -f docker/docker-compose.yml run --rm e2e npm run e2e:install
204
204
 
205
205
  ## Documentation
206
206
 
207
- Toute la documentation se trouve dans `docs/` :
207
+ All documentation lives in `docs/`:
208
208
 
209
209
  | Document | Description |
210
210
  |----------|-------------|
211
- | **[Quick Start](./docs/quickstart.md)** | Démarrer rapidement : installation, configuration, premier rendu, mode édition, API |
212
- | **[Intégration backend](./docs/backend-integration.md)** | Routes attendues, contrats (IPageData, IPageSavePayload), validation, médias, sécurité |
213
- | **[Architecture](./docs/architecture/)** | Vue d’ensemble, schéma JSON, système de composants, pipeline de rendu, architecture du mode édition |
214
- | **[Fonctionnalités](./docs/features/)** | Mode lecture, mode édition, registre de composants, format JSON |
215
- | **[Conventions](./docs/conventions/)** | Style de code, workflow git |
216
- | **[Roadmap](./docs/plans/roadmap.md)** | Phases et jalons |
217
- | **[Référence API](./docs/api/)** | Sortie TypeDoc (types et fonctions publics) |
218
-
219
- Pour régénérer la référence API :
211
+ | **[Quick Start](./docs/quickstart.md)** | Get started: installation, setup, first render, edit mode, API |
212
+ | **[Backend integration](./docs/backend-integration.md)** | Expected routes, contracts (IPageData, IPageSavePayload), validation, media, security |
213
+ | **[Architecture](./docs/architecture/)** | Overview, JSON schema, component system, rendering pipeline, edit mode architecture |
214
+ | **[Features](./docs/features/)** | Read mode, edit mode, component registry, JSON format |
215
+ | **[Conventions](./docs/conventions/)** | Code style, git workflow |
216
+ | **[Roadmap](./docs/plans/roadmap.md)** | Phases and milestones |
217
+ | **[API reference](./docs/api/)** | TypeDoc output (public types and functions) |
218
+
219
+ To regenerate the API reference:
220
220
 
221
221
  ```bash
222
222
  docker compose -f docker/docker-compose.yml run --rm dev npm run docs:api