@aduptive/strapi-blockscene 2.0.0-alpha.12 → 2.0.0-alpha.13

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
@@ -29,6 +29,9 @@ module.exports = {
29
29
  config: {
30
30
  previewBaseUrl: '/block-previews',
31
31
  previewVersion: '2026-09-22', // optional cache buster appended as ?v=
32
+ // Optional: only these Strapi component folders get cards in Settings > Block gallery.
33
+ // Dynamic Zone insertion still follows each content type's own schema.
34
+ settingsComponentCategories: ['blocks'],
32
35
  components: {
33
36
  'blocks.hero': {
34
37
  label: 'Hero banner',
@@ -37,6 +40,7 @@ module.exports = {
37
40
  tags: ['Editorial'],
38
41
  keywords: 'heading introduction',
39
42
  image: '/block-previews/hero.png',
43
+ showRowThumbnail: false, // optional per-component row thumbnail
40
44
  },
41
45
  },
42
46
  },
@@ -259,8 +263,10 @@ opening or closing the row. The sources are the same as the gallery cards,
259
263
  minus the wireframe: a block with no image shows nothing, so nothing new is
260
264
  invented for blocks that were never captured. The thumbnail is inserted into
261
265
  Strapi's own header through the DOM (no Content Manager patch) and is
262
- restored when Strapi re-renders the list. Turn it off with the editor option
263
- `showRowThumbnails: false`.
266
+ restored when Strapi re-renders the list. Configured OPEN and CLOSE group
267
+ markers hide it by default. Override any component with
268
+ `components[uid].showRowThumbnail` in code or on the Settings page, or turn all
269
+ row thumbnails off with the editor option `showRowThumbnails: false`.
264
270
 
265
271
  ## Row actions
266
272
 
@@ -532,6 +538,11 @@ Minimal configuration:
532
538
  blocks, 0 when none or not editable); while it is positive the page may show
533
539
  a Paste button in its seams that sends `{ type: 'paste', after }` (a block
534
540
  key, or `null` for the start). Both are optional.
541
+ `update-page` also carries the complete live `entry`, including unsaved
542
+ values, plus `contentType` metadata and the projected zone name. New schema
543
+ fields therefore reach the frontend automatically; the frontend decides how
544
+ each field affects its page. The normalized `blocks` array remains alongside
545
+ it for visual editing and block-level actions.
535
546
  Keep the origin check (`admin` query parameter or your own constant).
536
547
  2. Allow the admin origin to embed it (`Content-Security-Policy: frame-ancestors`)
537
548
  and allow the page origin in the Strapi admin CSP (`frame-src`).
@@ -543,12 +554,16 @@ Minimal configuration:
543
554
  other one and the page then never hydrates, so `ready` never arrives and
544
555
  the pane reports the preview as unavailable with no error in either console.
545
556
 
546
- The bridge only exposes what the schema allows: attributes marked `private`
547
- are never projected, focused or edited; media URLs are passed through for any
548
- http(s) host (S3/CDN providers included) and same-origin paths; the zone shown
549
- is the first Dynamic Zone the user may read, and editing additionally needs the
550
- update permission on it. Pending dialogs are dropped when the document or
551
- locale changes.
557
+ The bridge only exposes what the schema and the current user's read permissions
558
+ allow. Attributes marked with Strapi's `private: true`, passwords, and
559
+ attributes with `pluginOptions.blockscene.private: true` are never projected,
560
+ focused or edited; the Blockscene option is useful for keeping a field out of
561
+ the preview without changing its public API behavior. This privacy rule also
562
+ applies inside components. Media URLs are passed through for any http(s) host
563
+ (S3/CDN providers included) and same-origin paths; the zone shown is the first
564
+ Dynamic Zone the user may read, and editing additionally needs the update
565
+ permission on it. Pending dialogs are dropped when the document or locale
566
+ changes.
552
567
 
553
568
  Editing from the page: plain-text areas the page explicitly maps
554
569
  (`data-block-field` + `contenteditable="plaintext-only"`) send `edit`. In the
@@ -1278,6 +1293,7 @@ uploads share an origin.
1278
1293
  - `tests/`: runnable regression checks.
1279
1294
  - [Local integration tests](docs/LOCAL-TESTING.md).
1280
1295
  - [Release checklist](docs/RELEASE.md).
1296
+ - [Prioritized roadmap](docs/ROADMAP.md).
1281
1297
 
1282
1298
  This plugin does not require Image Optimization; both can be installed together.
1283
1299