@sensinum/strapi-plugin-xecp 5.1.0 → 5.3.0

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 (42) hide show
  1. package/README.md +14 -3
  2. package/dist/admin/App-BbgV5mHU.mjs +2809 -0
  3. package/dist/admin/App-OXf6qXjU.js +74 -0
  4. package/dist/admin/TruncatedTypography-B8iYkeNP.js +12 -0
  5. package/dist/admin/{TruncatedTypography-BIh1V9g2.mjs → TruncatedTypography-BA_MhPw6.mjs} +4 -4
  6. package/dist/admin/de-9eabZie2.mjs +288 -0
  7. package/dist/admin/de-BN51VcbT.js +1 -0
  8. package/dist/admin/en-DI1XKd0e.js +1 -0
  9. package/dist/admin/en-tFIwzuCy.mjs +288 -0
  10. package/dist/admin/fr-BRWFIMrf.mjs +288 -0
  11. package/dist/admin/fr-lAhQzMjM.js +1 -0
  12. package/dist/admin/index-BU_gTHIE.mjs +110 -0
  13. package/dist/admin/index-C5CJ1Sy4.js +1 -0
  14. package/dist/admin/index-CT94KSzm.mjs +656 -0
  15. package/dist/admin/index-CmLDGvPV.js +1 -0
  16. package/dist/admin/{index-Dr164lAs.mjs → index-SQ5frWDn.mjs} +96 -90
  17. package/dist/admin/{index-CzhrALSL.js → index-ghS-FZ_7.js} +8 -8
  18. package/dist/admin/index.js +1 -1
  19. package/dist/admin/index.mjs +3 -2
  20. package/dist/admin/pl-CSVwN6jF.js +1 -0
  21. package/dist/admin/pl-DLMBD4Lc.mjs +288 -0
  22. package/dist/admin/{queryKeys-rUHP1d6p.mjs → queryKeys-LazhiKSv.mjs} +5 -4
  23. package/dist/admin/queryKeys-Y6_AOyGq.js +1 -0
  24. package/dist/server/index.js +7 -7
  25. package/dist/server/index.mjs +8776 -8080
  26. package/package.json +48 -22
  27. package/dist/admin/App-DnN-IvA2.mjs +0 -1947
  28. package/dist/admin/App-fzbS9IJs.js +0 -30
  29. package/dist/admin/TruncatedTypography-IG2-4h8c.js +0 -12
  30. package/dist/admin/de-CXusi8Qg.mjs +0 -203
  31. package/dist/admin/de-DB2gq7qr.js +0 -1
  32. package/dist/admin/en-BuzP59R9.js +0 -1
  33. package/dist/admin/en-Dw6HZo7C.mjs +0 -203
  34. package/dist/admin/fr-CyBDGDh1.mjs +0 -203
  35. package/dist/admin/fr-ISZXcmX2.js +0 -1
  36. package/dist/admin/index-BPA-rtqa.js +0 -1
  37. package/dist/admin/index-CUUBtl-O.mjs +0 -113
  38. package/dist/admin/index-DDj2bCYO.mjs +0 -653
  39. package/dist/admin/index-DGBlS60G.js +0 -1
  40. package/dist/admin/pl-Ds5SR76s.js +0 -1
  41. package/dist/admin/pl-mwGoOpdR.mjs +0 -203
  42. package/dist/admin/queryKeys-B_GC_f73.js +0 -1
package/README.md CHANGED
@@ -11,9 +11,9 @@
11
11
  <a href="https://www.npmjs.org/package/@sensinum/strapi-plugin-xecp">
12
12
  <img src="https://img.shields.io/npm/dm/@sensinum/strapi-plugin-xecp.svg" alt="Monthly download on NPM" />
13
13
  </a>
14
- <a href="https://dl.circleci.com/status-badge/redirect/gh/Sensinum/strapi-plugin-xecp/tree/main">
15
- <img src="https://dl.circleci.com/status-badge/img/gh/Sensinum/strapi-plugin-xecp/tree/main.svg?style=shield&circle-token=CCIPRJ_2J5QBQ4HXi1waBrAU9Lhje_aa6fbb9e2232e9101e5447c9b2585a663cad99d3" alt="CircleCI" />
16
- </a>
14
+ <a href="https://github.com/Sensinum/strapi-plugin-xecp/actions/workflows/ci.yml">
15
+ <img src="https://github.com/Sensinum/strapi-plugin-xecp/actions/workflows/ci.yml/badge.svg" alt="CI" />
16
+ </a>
17
17
  </div>
18
18
 
19
19
  ---
@@ -44,6 +44,7 @@ This plugin brings Cross Environment Content Promotion (XECP) to Strapi: move se
44
44
  - **Sync Job Control**: Start, monitor, cancel, and resume snapshot syncs (extra requests queue while one is running).
45
45
  - **Configurable Scope**: Include or exclude content types from the promotion graph.
46
46
  - **Media-Aware Promotion**: Copy Media Library files when include media is on (media fields, Blocks images, and Markdown file links).
47
+ - **Draft or Publish**: Promote as a draft by default, or publish selected documents (and the related content they bring along) in the same step.
47
48
 
48
49
  ## 🎨 Admin Panel Features
49
50
 
@@ -63,6 +64,12 @@ Snapshot syncs use a **shared queue**: only one sync job runs at a time on the i
63
64
 
64
65
  On the home page, users pick a content type, review differences between local entries and the snapshot, select what to promote (including related content when applicable), and can turn on include media to copy Media Library files. XECP then pushes the selected entries to the target.
65
66
 
67
+ ### Draft or publish
68
+
69
+ Promoted content is saved as a **draft** on the target by default, so nothing goes live until it is published. Check **Publish** for a document in the promote dialog to publish it instead; related content promoted with it is published too, and only once its relations are in place. Content types without draft & publish are always published.
70
+
71
+ The promotion results show which entries were published and which were saved as drafts. Comparison reflects the target's published content, so drafts keep showing as **New** or **Changed** until they are published.
72
+
66
73
  ## ⚠️ Important Considerations
67
74
 
68
75
  ### Schema compatibility
@@ -81,6 +88,10 @@ If the graph is deeper than this limit, the home page can warn that max depth wa
81
88
 
82
89
  XECP uses Strapi's default Content API endpoints to retrieve, create, and update content on the target environment. All default endpoints used by XECP must remain available, and their standard response structures must not be modified. Replacing these endpoints or changing their responses may prevent snapshot synchronization, comparison, or content promotion from working correctly.
83
90
 
91
+ ### Private fields
92
+
93
+ Strapi's Content API never returns private fields (fields marked **Private** in the Content-Type Builder, or listed as private attributes in the app's configuration), so XECP cannot read their values on the target. Entity comparison ignores them: a change made only to a private field does not mark an entry as changed. A private field cannot be used as a unique key or as an environment-specific field. The comparison view shows how many fields of the selected content type are private, with the list in a tooltip.
94
+
84
95
  ### Target environment credentials
85
96
 
86
97
  The target API token is stored encrypted using the plugin `encryptionKey`. Use a dedicated **Custom** API token with at least: