@styleflow.app/flowpress-astro-core 1.0.0-beta.2 → 1.0.0-beta.21
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/CHANGELOG.md +151 -1
- package/README.md +111 -3
- package/dist/astro/BaseLayout.astro +10 -6
- package/dist/astro/CompositionRenderer.astro +157 -0
- package/dist/astro/DefaultBlockAdapter.astro +35 -0
- package/dist/astro/DefaultTemplate.astro +6 -1
- package/dist/astro/GutenbergRenderer.astro +231 -72
- package/dist/astro/ThemeRuntime.astro +24 -0
- package/dist/astro/blocks/CarouselBlock.astro +7 -9
- package/dist/astro/blocks/CarouselItemBlock.astro +3 -3
- package/dist/astro/blocks/ColumnBlock.astro +3 -4
- package/dist/astro/blocks/CoverBlock.astro +155 -0
- package/dist/astro/blocks/FormBlock.astro +18 -16
- package/dist/astro/blocks/GridBlock.astro +3 -3
- package/dist/astro/blocks/HeroBlock.astro +3 -4
- package/dist/astro/blocks/ImageBlock.astro +3 -4
- package/dist/astro/blocks/ListItemFallback.astro +7 -5
- package/dist/astro/blocks/NumberSpinnerBlock.astro +25 -19
- package/dist/astro/blocks/SemanticElement.astro +35 -0
- package/dist/astro/blocks/SiteLogoBlock.astro +53 -0
- package/dist/astro/blocks/TextBlock.astro +29 -25
- package/dist/astro/blocks/ThemeToggleBlock.astro +23 -0
- package/dist/astro/blocks/cover.d.ts +13 -0
- package/dist/astro/blocks/cover.d.ts.map +1 -0
- package/dist/astro/blocks/cover.js +105 -0
- package/dist/astro/blocks/cover.js.map +1 -0
- package/dist/astro/blocks/cover.ts +119 -0
- package/dist/astro/blocks/helpers.d.ts +7 -0
- package/dist/astro/blocks/helpers.d.ts.map +1 -1
- package/dist/astro/blocks/helpers.js +51 -41
- package/dist/astro/blocks/helpers.js.map +1 -1
- package/dist/astro/blocks/helpers.ts +63 -45
- package/dist/astro/native/Blob.astro +113 -0
- package/dist/astro/native/BlobBlock.astro +52 -0
- package/dist/astro/native/CustomFieldValue.astro +86 -0
- package/dist/astro/native/LevelTag.astro +20 -0
- package/dist/astro/native/MapBlock.astro +41 -0
- package/dist/astro/native/NativeHtmlBlock.astro +12 -0
- package/dist/astro/native/NativeIconBlock.astro +33 -0
- package/dist/astro/native/ProjectTimelineBlock.astro +34 -0
- package/dist/astro/native/ResolvedBlocks.astro +89 -0
- package/dist/astro/native/SyncedPatternContent.astro +92 -0
- package/dist/astro/native/TermFieldValue.astro +37 -0
- package/dist/astro/native/Timeline.astro +20 -0
- package/dist/astro/native/TimelineCardBlock.astro +7 -0
- package/dist/astro/native/blob/blob-shapes.generated.d.ts +2 -0
- package/dist/astro/native/blob/blob-shapes.generated.d.ts.map +1 -0
- package/dist/astro/native/blob/blob-shapes.generated.js +2 -0
- package/dist/astro/native/blob/blob-shapes.generated.js.map +1 -0
- package/dist/astro/native/blob/blob-shapes.generated.ts +1 -0
- package/dist/astro/native/blob/config.d.ts +49 -0
- package/dist/astro/native/blob/config.d.ts.map +1 -0
- package/dist/astro/native/blob/config.js +86 -0
- package/dist/astro/native/blob/config.js.map +1 -0
- package/dist/astro/native/blob/config.ts +132 -0
- package/dist/astro/native/blob/controller.d.ts +11 -0
- package/dist/astro/native/blob/controller.d.ts.map +1 -0
- package/dist/astro/native/blob/controller.js +240 -0
- package/dist/astro/native/blob/controller.js.map +1 -0
- package/dist/astro/native/blob/controller.ts +248 -0
- package/dist/astro/native/blob/geometry.d.ts +2 -0
- package/dist/astro/native/blob/geometry.d.ts.map +1 -0
- package/dist/astro/native/blob/geometry.js +2 -0
- package/dist/astro/native/blob/geometry.js.map +1 -0
- package/dist/astro/native/blob/geometry.ts +1 -0
- package/dist/astro/native/blob/ids.d.ts +7 -0
- package/dist/astro/native/blob/ids.d.ts.map +1 -0
- package/dist/astro/native/blob/ids.js +11 -0
- package/dist/astro/native/blob/ids.js.map +1 -0
- package/dist/astro/native/blob/ids.ts +11 -0
- package/dist/astro/native/blob.css +83 -0
- package/dist/astro/native/button.d.ts +13 -0
- package/dist/astro/native/button.d.ts.map +1 -0
- package/dist/astro/native/button.js +26 -0
- package/dist/astro/native/button.js.map +1 -0
- package/dist/astro/native/button.ts +26 -0
- package/dist/astro/native/core-block.astro +18 -0
- package/dist/astro/native/core-button.astro +43 -0
- package/dist/astro/native/core-buttons.astro +14 -0
- package/dist/astro/native/core-group.astro +23 -0
- package/dist/astro/native/core-home-link.astro +11 -0
- package/dist/astro/native/core-html.astro +8 -0
- package/dist/astro/native/core-icon.astro +7 -0
- package/dist/astro/native/core-image.astro +124 -0
- package/dist/astro/native/core-navigation-link.astro +70 -0
- package/dist/astro/native/core-navigation-submenu.astro +32 -0
- package/dist/astro/native/core-navigation.astro +94 -0
- package/dist/astro/native/core-page-list-data-item.astro +18 -0
- package/dist/astro/native/core-page-list-item.astro +7 -0
- package/dist/astro/native/core-page-list.astro +40 -0
- package/dist/astro/native/core-post-date.astro +20 -0
- package/dist/astro/native/core-post-excerpt.astro +25 -0
- package/dist/astro/native/core-post-featured-image.astro +37 -0
- package/dist/astro/native/core-post-template.astro +30 -0
- package/dist/astro/native/core-post-terms.astro +46 -0
- package/dist/astro/native/core-post-title.astro +23 -0
- package/dist/astro/native/core-query-no-results.astro +12 -0
- package/dist/astro/native/core-query.astro +22 -0
- package/dist/astro/native/core-site-title.astro +15 -0
- package/dist/astro/native/core-term-description.astro +12 -0
- package/dist/astro/native/core-term-name.astro +20 -0
- package/dist/astro/native/core-term-template.astro +30 -0
- package/dist/astro/native/core-terms-query.astro +19 -0
- package/dist/astro/native/flowpress-navigation-controller.d.ts +2 -0
- package/dist/astro/native/flowpress-navigation-controller.d.ts.map +1 -0
- package/dist/astro/native/flowpress-navigation-controller.js +217 -0
- package/dist/astro/native/flowpress-navigation-controller.js.map +1 -0
- package/dist/astro/native/flowpress-navigation-controller.ts +215 -0
- package/dist/astro/native/flowpress-navigation.css +17 -0
- package/dist/astro/native/grid-bleed.js +106 -0
- package/dist/astro/native/grid.css +180 -0
- package/dist/astro/native/grid.d.ts +17 -0
- package/dist/astro/native/grid.d.ts.map +1 -0
- package/dist/astro/native/grid.js +103 -0
- package/dist/astro/native/grid.js.map +1 -0
- package/dist/astro/native/grid.ts +118 -0
- package/dist/astro/native/html.d.ts +6 -0
- package/dist/astro/native/html.d.ts.map +1 -0
- package/dist/astro/native/html.js +10 -0
- package/dist/astro/native/html.js.map +1 -0
- package/dist/astro/native/html.ts +9 -0
- package/dist/astro/native/icon.d.ts +3 -0
- package/dist/astro/native/icon.d.ts.map +1 -0
- package/dist/astro/native/icon.js +23 -0
- package/dist/astro/native/icon.js.map +1 -0
- package/dist/astro/native/icon.ts +21 -0
- package/dist/astro/native/map.d.ts +14 -0
- package/dist/astro/native/map.d.ts.map +1 -0
- package/dist/astro/native/map.js +60 -0
- package/dist/astro/native/map.js.map +1 -0
- package/dist/astro/native/map.ts +70 -0
- package/dist/astro/native/motion-preference.d.ts +50 -0
- package/dist/astro/native/motion-preference.d.ts.map +1 -0
- package/dist/astro/native/motion-preference.js +132 -0
- package/dist/astro/native/motion-preference.js.map +1 -0
- package/dist/astro/native/motion-preference.ts +158 -0
- package/dist/astro/native/motion.d.ts +101 -0
- package/dist/astro/native/motion.d.ts.map +1 -0
- package/dist/astro/native/motion.js +168 -0
- package/dist/astro/native/motion.js.map +1 -0
- package/dist/astro/native/motion.ts +312 -0
- package/dist/astro/native/query-loop.d.ts +38 -0
- package/dist/astro/native/query-loop.d.ts.map +1 -0
- package/dist/astro/native/query-loop.js +20 -0
- package/dist/astro/native/query-loop.js.map +1 -0
- package/dist/astro/native/query-loop.ts +67 -0
- package/dist/astro/native/registry.d.ts +3 -0
- package/dist/astro/native/registry.d.ts.map +1 -0
- package/dist/astro/native/registry.js +72 -0
- package/dist/astro/native/registry.js.map +1 -0
- package/dist/astro/native/registry.ts +72 -0
- package/dist/astro/native/sf-block-binding.astro +20 -0
- package/dist/astro/native/sf-post-field.astro +9 -0
- package/dist/astro/native/sf-term-field.astro +9 -0
- package/dist/astro/native/timeline.css +4 -0
- package/dist/astro/native/timeline.d.ts +28 -0
- package/dist/astro/native/timeline.d.ts.map +1 -0
- package/dist/astro/native/timeline.js +43 -0
- package/dist/astro/native/timeline.js.map +1 -0
- package/dist/astro/native/timeline.ts +79 -0
- package/dist/block-renderers.d.ts +20 -3
- package/dist/block-renderers.d.ts.map +1 -1
- package/dist/block-renderers.js.map +1 -1
- package/dist/client.d.ts +17 -1
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +63 -9
- package/dist/client.js.map +1 -1
- package/dist/composition.d.ts +14 -0
- package/dist/composition.d.ts.map +1 -0
- package/dist/composition.js +124 -0
- package/dist/composition.js.map +1 -0
- package/dist/default-blocks.d.ts +9 -0
- package/dist/default-blocks.d.ts.map +1 -0
- package/dist/default-blocks.js +107 -0
- package/dist/default-blocks.js.map +1 -0
- package/dist/env.d.ts +9 -0
- package/dist/env.d.ts.map +1 -1
- package/dist/env.js +20 -0
- package/dist/env.js.map +1 -1
- package/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -0
- package/dist/index.js.map +1 -1
- package/dist/links.d.ts +5 -0
- package/dist/links.d.ts.map +1 -0
- package/dist/links.js +32 -0
- package/dist/links.js.map +1 -0
- package/dist/media.d.ts +28 -0
- package/dist/media.d.ts.map +1 -0
- package/dist/media.js +212 -0
- package/dist/media.js.map +1 -0
- package/dist/styleflow.d.ts +16 -1
- package/dist/styleflow.d.ts.map +1 -1
- package/dist/styleflow.js +67 -7
- package/dist/styleflow.js.map +1 -1
- package/dist/templates.d.ts +16 -16
- package/dist/theme-runtime.d.ts +16 -0
- package/dist/theme-runtime.d.ts.map +1 -0
- package/dist/theme-runtime.js +77 -0
- package/dist/theme-runtime.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types.d.ts +84 -1
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js.map +1 -1
- package/package.json +13 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,7 +1,158 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.0.0-beta.21 — 2026-10-08
|
|
4
|
+
|
|
5
|
+
- Apply responsive native grid columns, child spans and container bleed in Site Editor compositions, including structural CSS and the bleed runtime. Preserve saved breakpoint values and cap rendered spans to the parent grid.
|
|
6
|
+
- [Cloudflare and responsive grid verification](https://github.com/StyleFlow-App/styleflow-docs/blob/main/dev/rapporti/2026-10-08-cloudflare-rendering-commonjs.md).
|
|
7
|
+
|
|
8
|
+
## 1.0.0-beta.20 — 2026-10-07
|
|
9
|
+
|
|
10
|
+
- Normalize composition route SEO exactly like the route query: JSON-LD, Twitter metadata and image alt text remain intact when using the single-call page loader. Also accept already normalized composition SEO.
|
|
11
|
+
- Retain beta.19 media/query/runtime optimizations. [Canonical verification](https://github.com/StyleFlow-App/styleflow-docs/blob/main/dev/rapporti/2026-10-07-media-diretti-runtime.md).
|
|
12
|
+
|
|
13
|
+
## 1.0.0-beta.19 — 2026-10-07
|
|
14
|
+
|
|
15
|
+
- Publish the direct-media and editorial/runtime optimizations described below with a lockfile verified by clean installation and StyleFlow beta.9.
|
|
16
|
+
- Supersedes the unpublished beta.18 candidate; its immutable Git tag is retained.
|
|
17
|
+
|
|
18
|
+
## 1.0.0-beta.18 — unpublished candidate, 2026-10-07
|
|
19
|
+
|
|
20
|
+
- Deliver media at their real WordPress/R2 origin; undo legacy frontend aliases without inventing offload URLs. Preserve mixed libraries, srcset and external URLs. Proxy exports are deprecated compatibility APIs.
|
|
21
|
+
- Add `getPage` to reuse the route already returned by Site Editor compositions and optional `includeContent: false` (WordPress Core beta.19) for unused HTML. Existing APIs retain their defaults; previews are not cached across requests.
|
|
22
|
+
- Prepare descriptor/diagnostic indexes once per recursive composition, share unchanged media payload branches and consume StyleFlow Astro beta.9 contract indexes.
|
|
23
|
+
- [Canonical verification](https://github.com/StyleFlow-App/styleflow-docs/blob/main/dev/rapporti/2026-10-07-media-diretti-runtime.md).
|
|
24
|
+
|
|
25
|
+
## 1.0.0-beta.17 — 2026-10-07
|
|
26
|
+
|
|
27
|
+
- Official native and sf/* renderers at every nesting depth; responsive grids and measured container bleed, maps, neutral organic shapes, timeline and accessible navigation.
|
|
28
|
+
- Canonical behavior, migration and verification: [pilot integration](https://github.com/StyleFlow-App/styleflow-docs/blob/main/wiki/piloti-flowpress.md), [report](https://github.com/StyleFlow-App/styleflow-docs/blob/main/dev/rapporti/2026-10-07-integrazione-piloti-flowpress.md).
|
|
29
|
+
|
|
3
30
|
## Unreleased
|
|
4
31
|
|
|
32
|
+
## 1.0.0-beta.16
|
|
33
|
+
|
|
34
|
+
- Rebase owned composition media to the current frontend, including nested
|
|
35
|
+
query data, authoring attributes and responsive sources. WordPress uploads
|
|
36
|
+
keep `/app/uploads/`; offloaded assets keep `/media/`. External media and
|
|
37
|
+
raw HTML remain unchanged.
|
|
38
|
+
- Export `rewriteFlowpressMediaUrl`, `rewriteFlowpressMediaUrls` and explicit
|
|
39
|
+
frontend/backend/offload origin options for project integrations.
|
|
40
|
+
- Follow storage redirects server-side with a bounded redirect count. Proxy
|
|
41
|
+
responses no longer expose backend/CDN `Location` headers to the browser.
|
|
42
|
+
|
|
43
|
+
## 1.0.0-beta.15
|
|
44
|
+
|
|
45
|
+
- Fixed `proxyFlowpressMedia` forwarding the `/media/` route prefix to the
|
|
46
|
+
upstream `FLOWPRESS_MEDIA` origin. `/media/` is a frontend-only routing
|
|
47
|
+
marker with no equivalent on either upstream (an offload CDN root, or the
|
|
48
|
+
WordPress backend as a fallback), so it is now stripped before the request
|
|
49
|
+
is forwarded: `/media/2026/09/x.jpg` resolves to `<origin>/2026/09/x.jpg`
|
|
50
|
+
instead of `<origin>/media/2026/09/x.jpg`, which 404s.
|
|
51
|
+
- `proxyFlowpressUpload` (`/app/uploads/`) is unaffected: that prefix mirrors
|
|
52
|
+
a real path on the WordPress backend and continues to be forwarded as-is.
|
|
53
|
+
|
|
54
|
+
## 1.0.0-beta.14
|
|
55
|
+
|
|
56
|
+
- Adopted `@styleflow.app/astro@1.0.0-beta.7` and Typography vNext contract
|
|
57
|
+
axes with per-type `weightsByType` and partial HTML `tagMappings`.
|
|
58
|
+
- Updated the real renderer fixture to build format `2.0.0` bundles while
|
|
59
|
+
preserving the complete Cover, carousel, composition and Gutenberg suite.
|
|
60
|
+
- Added strict regression coverage for weights disabled on a selected type.
|
|
61
|
+
|
|
62
|
+
## 1.0.0-beta.13
|
|
63
|
+
|
|
64
|
+
- Added `scrimOpacity` as an explicit `0–100` percentage for the official
|
|
65
|
+
Cover renderer, clamped at the public boundary and emitted through a scoped
|
|
66
|
+
CSS custom property.
|
|
67
|
+
- Preserved legacy Cover content by using native `dimRatio` as the opacity
|
|
68
|
+
fallback only when `scrimOpacity` is absent or invalid.
|
|
69
|
+
|
|
70
|
+
## 1.0.0-beta.12
|
|
71
|
+
|
|
72
|
+
- Added the official `core/cover` renderer and editable default adapter with
|
|
73
|
+
image/video media, focal point, validated minimum height, nested content and
|
|
74
|
+
Styleflow root props.
|
|
75
|
+
- Added prefixed Styleflow coordinates for semantic scrims and kept native
|
|
76
|
+
`dimRatio` only as a temporary compatibility switch, never as raw CSS.
|
|
77
|
+
- Added a `default` root export so Node CommonJS resolution can locate the ESM
|
|
78
|
+
entry used by project scaffolding commands.
|
|
79
|
+
|
|
80
|
+
## 1.0.0-beta.11
|
|
81
|
+
|
|
82
|
+
- Made the official default adapter usable by both Site Editor compositions
|
|
83
|
+
and traditional Gutenberg rendering.
|
|
84
|
+
- Kept nested project overrides active in traditional rendering while applying
|
|
85
|
+
composition fingerprint gates only when a composition is present.
|
|
86
|
+
|
|
87
|
+
## 1.0.0-beta.10
|
|
88
|
+
|
|
89
|
+
- Added a versioned catalog of official default block adapters and a public
|
|
90
|
+
source generator for editable project overrides.
|
|
91
|
+
- Let an official default render a block without recursively selecting the
|
|
92
|
+
override currently wrapping it, while preserving certified overrides for
|
|
93
|
+
every nested child.
|
|
94
|
+
- Added reusable `FLOWPRESS_MEDIA` resolution, Astro image remote patterns and
|
|
95
|
+
safe upload/media proxy helpers with `GET`, `HEAD`, range and cache support.
|
|
96
|
+
- Extended normalized block HTML props with an explicit safe attribute
|
|
97
|
+
allowlist; Gutenberg event handlers, inline styles and Styleflow-owned data
|
|
98
|
+
attributes remain blocked.
|
|
99
|
+
|
|
100
|
+
## 1.0.0-beta.9
|
|
101
|
+
|
|
102
|
+
- Validated typography variants against the union of contract variants when
|
|
103
|
+
the block adapter has not yet supplied its typography type, preventing the
|
|
104
|
+
composition registry from rejecting valid heading-only variants early.
|
|
105
|
+
|
|
106
|
+
## 1.0.0-beta.8
|
|
107
|
+
|
|
108
|
+
- Normalized finite numeric CMS values for enumerated Styleflow axes to their
|
|
109
|
+
canonical contract strings, so typography variants such as WordPress `v=0`
|
|
110
|
+
remain valid in strict production builds without emitting a fallback.
|
|
111
|
+
|
|
112
|
+
## 1.0.0-beta.7
|
|
113
|
+
|
|
114
|
+
- Fixed theme-aware logo selection by placing fallback visibility variables on
|
|
115
|
+
the document root, allowing the nearest global or nested Styleflow theme to
|
|
116
|
+
override them while preserving per-block logo overrides.
|
|
117
|
+
|
|
118
|
+
## 1.0.0-beta.6
|
|
119
|
+
|
|
120
|
+
- Added required `htmlProps`, `styleflowProps`, composition and deterministic
|
|
121
|
+
render context to every certified block adapter.
|
|
122
|
+
- Added single-emission composition stylesheets for validated WordPress block
|
|
123
|
+
CSS, plus theme-aware positive/negative Site Logo rendering.
|
|
124
|
+
- Added the no-hydration multi-theme runtime and `sf/theme-toggle` adapter.
|
|
125
|
+
- Made `<S.*>` the only public Astro authoring syntax in package sources.
|
|
126
|
+
- Added `FlowpressCompositionV1`, typed `resolvedData`,
|
|
127
|
+
`FlowpressClient.getComposition()` and recursive production fail-closed
|
|
128
|
+
rendering with exact compatibility commands in development.
|
|
129
|
+
|
|
130
|
+
## 1.0.0-beta.5
|
|
131
|
+
|
|
132
|
+
- Updated the exact `@styleflow.app/astro` dependency to `1.0.0-beta.4`,
|
|
133
|
+
adopting the Styleflow contract beta.6 validator and generated runtime.
|
|
134
|
+
- Kept the grouped CMS coordinates and Gutenberg block format unchanged; no
|
|
135
|
+
legacy adapter was introduced.
|
|
136
|
+
|
|
137
|
+
## 1.0.0-beta.4
|
|
138
|
+
|
|
139
|
+
- Exported the `FlowpressLinkValue` relational contract and centralized safe
|
|
140
|
+
href extraction for resolved internal, external, protocol, and fragment
|
|
141
|
+
destinations.
|
|
142
|
+
- Made failed, missing, and bare-`#` relations fail closed: buttons retain
|
|
143
|
+
their label and Styleflow semantics as non-interactive elements, while
|
|
144
|
+
cards and list fallbacks emit anchors only for a valid resolved href.
|
|
145
|
+
- Added renderer and unit fixtures for missing translations, root-relative
|
|
146
|
+
query/fragment paths, safe protocols, and invalid schemes.
|
|
147
|
+
|
|
148
|
+
## 1.0.0-beta.3
|
|
149
|
+
|
|
150
|
+
- Deferred generic Gutenberg semantic validation until its renderer branch is
|
|
151
|
+
selected, preventing valid numeric heading variants from being validated as
|
|
152
|
+
body typography and spuriously falling back to `md`.
|
|
153
|
+
- Added a strict production fixture for `core/heading` with `v="5"` and verified
|
|
154
|
+
that the emitted Styleflow type and variant remain `heading` and `5`.
|
|
155
|
+
|
|
5
156
|
## 1.0.0-beta.2
|
|
6
157
|
|
|
7
158
|
- Added exact `@splidejs/splide@4.1.4` support and dedicated renderers for
|
|
@@ -18,7 +169,6 @@
|
|
|
18
169
|
- Updated the exact `@styleflow.app/astro` dependency to `1.0.0-beta.1`,
|
|
19
170
|
keeping consumer trees on one runtime while adopting deterministic CLI
|
|
20
171
|
reports. Runtime behavior is unchanged.
|
|
21
|
-
|
|
22
172
|
## 1.0.0-beta.0
|
|
23
173
|
|
|
24
174
|
- Adopted the grouped Styleflow vNext project contract and the exact Astro v1
|
package/README.md
CHANGED
|
@@ -9,8 +9,8 @@ The package must not import from an application or project plugin.
|
|
|
9
9
|
## Install
|
|
10
10
|
|
|
11
11
|
```bash
|
|
12
|
-
pnpm add @styleflow.app/flowpress-astro-core@1.0.0-beta.
|
|
13
|
-
@styleflow.app/astro@1.0.0-beta.
|
|
12
|
+
pnpm add @styleflow.app/flowpress-astro-core@1.0.0-beta.16 \
|
|
13
|
+
@styleflow.app/astro@1.0.0-beta.6
|
|
14
14
|
```
|
|
15
15
|
|
|
16
16
|
Prereleases are pinned exactly. The package expects Astro 7 or newer and the
|
|
@@ -54,6 +54,15 @@ visible characters. The exported
|
|
|
54
54
|
from rendered CMS blocks so consumers can generate Tailwind
|
|
55
55
|
`@source inline()` directives before compiling their frontend CSS.
|
|
56
56
|
|
|
57
|
+
The package exports `FlowpressLinkValue`, `flowpressLinkValue()` and
|
|
58
|
+
`flowpressLinkHref()` for the WordPress relational link contract. Navigation
|
|
59
|
+
paths are root-relative and are rendered only when resolution succeeds.
|
|
60
|
+
`missing_translation`, `missing_entity`, invalid schemes, and a bare `#` fail
|
|
61
|
+
closed. FlowPress buttons keep their authored label and semantic styling as an
|
|
62
|
+
`aria-disabled` non-interactive element; cards and list fallbacks omit the
|
|
63
|
+
anchor. Canonical, hreflang, social and media URLs remain under their separate
|
|
64
|
+
absolute-URL contracts.
|
|
65
|
+
|
|
57
66
|
`sf/carousel` renders an accessible horizontal Splide carousel whose direct
|
|
58
67
|
children must be `sf/carousel-item`; each item can recursively contain any
|
|
59
68
|
renderable block. Item counts inherit across `base/sm/md/lg/xl/2xl`, with
|
|
@@ -70,6 +79,89 @@ grid and dead controls are hidden. If a legacy carousel contains any direct
|
|
|
70
79
|
child other than `sf/carousel-item`, no interactive instance is initialized:
|
|
71
80
|
the complete content renders statically, with a development diagnostic.
|
|
72
81
|
|
|
82
|
+
## Site Editor composition
|
|
83
|
+
|
|
84
|
+
`FlowpressClient.getComposition(uri, locale)` reads the public
|
|
85
|
+
`FlowpressCompositionV1` contract. `CompositionRenderer.astro` walks its block
|
|
86
|
+
tree through an explicit `FlowpressBlockAdapters` registry, passes authored
|
|
87
|
+
attributes and `resolvedData` separately, and never renders `innerHtml` as a
|
|
88
|
+
fallback. Blocking WordPress diagnostics always fail the render. Missing or
|
|
89
|
+
draft adapters, absent block-type descriptors and schema-fingerprint drift
|
|
90
|
+
are visible diagnostics in development and fail closed in production with
|
|
91
|
+
the exact scaffold, refresh or approval command. The fingerprint comparison
|
|
92
|
+
is repeated by Astro and does not rely only on the CMS gate.
|
|
93
|
+
Before invoking an adapter, the renderer resolves the universal Styleflow
|
|
94
|
+
attributes through the same framework-neutral validator used by the built-in
|
|
95
|
+
renderer and passes them as `styleflowProps`. Project adapters can therefore
|
|
96
|
+
apply the authored semantic context to their real root without accepting raw
|
|
97
|
+
WordPress visual values.
|
|
98
|
+
|
|
99
|
+
At the composition root, owned media URLs are rebased to the current request
|
|
100
|
+
origin using explicit `BACKEND_URL`, `FLOWPRESS_MEDIA`, `SITE_URL` and the
|
|
101
|
+
composition's canonical frontend origin. This also covers nested query items
|
|
102
|
+
and responsive `srcSet` data passed to project adapters. WordPress uploads
|
|
103
|
+
remain under `/app/uploads/` and offloaded files under `/media/`; third-party
|
|
104
|
+
assets and raw HTML/CSS/scripts are preserved. A `media` prop of type
|
|
105
|
+
`FlowpressFrontendMediaOptions` can supply explicit origins. Projects can
|
|
106
|
+
also use exported `rewriteFlowpressMediaUrl` / `rewriteFlowpressMediaUrls`
|
|
107
|
+
for data rendered outside a composition. These functions do not mutate the
|
|
108
|
+
CMS payload.
|
|
109
|
+
|
|
110
|
+
The upload and media proxies follow HTTP(S) storage redirects on the server
|
|
111
|
+
(at most five), forwarding only safe request headers and preserving range,
|
|
112
|
+
validator and cache semantics. They never return an upstream `Location` or
|
|
113
|
+
`Set-Cookie` header: the browser stays on the public frontend URL.
|
|
114
|
+
|
|
115
|
+
Every adapter also receives required normalized `htmlProps` (`anchor` → `id`
|
|
116
|
+
and the additional classes), the full composition and a deterministic render
|
|
117
|
+
context. The public HTML allowlist also preserves `title`, `role`, `lang`,
|
|
118
|
+
`dir`, `tabindex`, `aria-*` and project `data-*` attributes. Inline styles,
|
|
119
|
+
event handlers and Styleflow-owned `data-*` attributes are never copied from
|
|
120
|
+
Gutenberg indiscriminately. WordPress-processed block custom CSS is emitted
|
|
121
|
+
once at the root.
|
|
122
|
+
`ThemeRuntime.astro` applies the persisted contract theme before paint and
|
|
123
|
+
progressively enhances `sf/theme-toggle` without hydrating React. The shared
|
|
124
|
+
Site Logo adapter renders positive and negative variants while inherited CSS
|
|
125
|
+
variables make the nearest nested theme authoritative.
|
|
126
|
+
|
|
127
|
+
```astro
|
|
128
|
+
---
|
|
129
|
+
import CompositionRenderer from "@styleflow.app/flowpress-astro-core/CompositionRenderer.astro";
|
|
130
|
+
import { blockAdapters } from "./generated/block-adapter-registry";
|
|
131
|
+
---
|
|
132
|
+
|
|
133
|
+
<CompositionRenderer composition={composition} adapters={blockAdapters} />
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
The package publishes a versioned `flowpressDefaultBlockCatalog` and
|
|
137
|
+
`DefaultBlockAdapter.astro`. A project registry can therefore resolve a block
|
|
138
|
+
in this order: conventional local `namespace-block.astro`, explicit manifest
|
|
139
|
+
renderer, official default. Calling the official default skips only the
|
|
140
|
+
current override and keeps the same registry for nested children, avoiding
|
|
141
|
+
recursion without losing child overrides. The same adapter works in Site
|
|
142
|
+
Editor compositions and in traditional Gutenberg rendering; fingerprint gates
|
|
143
|
+
remain composition-only. File discovery never changes a
|
|
144
|
+
`draft`, missing or stale fingerprint into a certified adapter.
|
|
145
|
+
|
|
146
|
+
`createFlowpressDefaultBlockAdapterSource(blockName)` returns the editable
|
|
147
|
+
source used by scaffolding when `--from-default` is selected. Unsupported
|
|
148
|
+
blocks throw instead of pretending that a semantic implementation exists.
|
|
149
|
+
|
|
150
|
+
`core/cover` is part of catalog version 2. Its public `CoverBlock.astro`
|
|
151
|
+
renderer accepts the native image/video URL, focal point, content position and
|
|
152
|
+
minimum height, renders nested blocks through a slot and keeps media at
|
|
153
|
+
`object-fit: cover`. The root uses the normal Styleflow props; the overlay uses
|
|
154
|
+
the same validated contract through prefixed attributes such as `scrimTone`,
|
|
155
|
+
`scrimIntensity`, `scrimSurface` and `scrimTheme`. `scrimEnabled` controls its
|
|
156
|
+
presence and `scrimOpacity` accepts an explicit percentage from `0` to `100`.
|
|
157
|
+
Values outside the interval are clamped. Native `dimRatio` remains a
|
|
158
|
+
compatibility input for both activation and opacity when the explicit
|
|
159
|
+
Styleflow-facing fields are absent.
|
|
160
|
+
|
|
161
|
+
Static adapters produce no JavaScript by default. A project opts into client
|
|
162
|
+
runtime only inside adapters classified as interactive; React views rendered
|
|
163
|
+
without `client:*` remain server-only HTML.
|
|
164
|
+
|
|
73
165
|
Heading, rich-text, quote and matching core blocks accept Gutenberg alignment
|
|
74
166
|
from either `style.typography.textAlign` or the FlowPress `textAlign` field.
|
|
75
167
|
Only `left`, `center`, `right`, `justify`, `start` and `end` reach CSS.
|
|
@@ -138,6 +230,18 @@ assistive technology and without JavaScript; `prefers-reduced-motion: reduce`
|
|
|
138
230
|
skips the animation entirely. Browsers without viewport observation keep the
|
|
139
231
|
server-rendered final value instead of guessing when to start.
|
|
140
232
|
|
|
233
|
+
## Media
|
|
234
|
+
|
|
235
|
+
`resolveFlowpressMediaUrl()` reads `FLOWPRESS_MEDIA`, falling back to
|
|
236
|
+
`BACKEND_URL`, while `flowpressMediaRemotePattern()` returns the matching Astro
|
|
237
|
+
image pattern. URLs with credentials, query strings or fragments are rejected.
|
|
238
|
+
|
|
239
|
+
`proxyFlowpressUpload()` and `proxyFlowpressMedia()` are shared request
|
|
240
|
+
handlers for server output and static Pages Functions. They accept only
|
|
241
|
+
`GET`/`HEAD`, preserve conditional and Range requests plus cache metadata, and
|
|
242
|
+
use explicit request/response header allowlists so cookies, authorization and
|
|
243
|
+
other sensitive headers never cross the proxy boundary.
|
|
244
|
+
|
|
141
245
|
## Release
|
|
142
246
|
|
|
143
247
|
```bash
|
|
@@ -158,9 +262,13 @@ The TypeScript template-hierarchy suite is self-contained. Its additional PHP
|
|
|
158
262
|
parity test runs when the sibling `flowpress-wordpress-core` checkout is
|
|
159
263
|
available locally and is skipped in a standalone package checkout.
|
|
160
264
|
|
|
161
|
-
Publish
|
|
265
|
+
Publish `1.0.0-beta.15` on `next` only after the exact Styleflow prerelease is
|
|
162
266
|
available. Inspect `npm view`, `gitHead`, integrity and the downloaded tarball.
|
|
163
267
|
Promote to `latest` only after the DMO canary and rollback gate.
|
|
164
268
|
|
|
165
269
|
Release activity reports are indexed in
|
|
166
270
|
[`docs/activities/README.md`](docs/activities/README.md).
|
|
271
|
+
|
|
272
|
+
Pilot integration in `1.0.0-beta.17`: Canonical behavior, migration and verification: [pilot integration](https://github.com/StyleFlow-App/styleflow-docs/blob/main/wiki/piloti-flowpress.md), [report](https://github.com/StyleFlow-App/styleflow-docs/blob/main/dev/rapporti/2026-10-07-integrazione-piloti-flowpress.md).
|
|
273
|
+
|
|
274
|
+
Direct media and query loading: [canonical guide](https://github.com/StyleFlow-App/styleflow-docs/blob/main/wiki/runtime-editoriale.md), [media migration](https://github.com/StyleFlow-App/styleflow-docs/blob/main/wiki/asset.md).
|
|
@@ -1,19 +1,22 @@
|
|
|
1
1
|
---
|
|
2
2
|
import type { SfSeo } from "../types.js";
|
|
3
3
|
import S from "@styleflow.app/astro/S.astro";
|
|
4
|
+
import ThemeRuntime from "./ThemeRuntime.astro";
|
|
4
5
|
|
|
5
6
|
interface Props {
|
|
6
|
-
lang?: string;
|
|
7
|
-
seo?: SfSeo | null;
|
|
8
|
-
siteName?: string;
|
|
9
|
-
theme?: string;
|
|
7
|
+
lang?: string | undefined;
|
|
8
|
+
seo?: SfSeo | null | undefined;
|
|
9
|
+
siteName?: string | undefined;
|
|
10
|
+
theme?: string | undefined;
|
|
11
|
+
themes?: string[] | undefined;
|
|
10
12
|
}
|
|
11
13
|
|
|
12
14
|
const {
|
|
13
15
|
lang = "it",
|
|
14
16
|
seo = null,
|
|
15
17
|
siteName = import.meta.env.PROJECT_NAME ?? "FlowPress",
|
|
16
|
-
theme
|
|
18
|
+
theme,
|
|
19
|
+
themes = theme ? [theme] : []
|
|
17
20
|
} = Astro.props;
|
|
18
21
|
const title = seo?.title || siteName;
|
|
19
22
|
const description = seo?.description || "";
|
|
@@ -26,6 +29,7 @@ const jsonLd = seo?.jsonLd ? JSON.stringify(seo.jsonLd) : null;
|
|
|
26
29
|
<head>
|
|
27
30
|
<meta charset="UTF-8" />
|
|
28
31
|
<meta name="viewport" content="width=device-width" />
|
|
32
|
+
{theme && themes.length ? <ThemeRuntime themes={themes} defaultTheme={theme} /> : null}
|
|
29
33
|
<title>{title}</title>
|
|
30
34
|
{description && <meta name="description" content={description} />}
|
|
31
35
|
{robots && <meta name="robots" content={robots} />}
|
|
@@ -50,7 +54,7 @@ const jsonLd = seo?.jsonLd ? JSON.stringify(seo.jsonLd) : null;
|
|
|
50
54
|
<slot name="head" />
|
|
51
55
|
</head>
|
|
52
56
|
<body>
|
|
53
|
-
<S.main theme
|
|
57
|
+
<S.main {...(theme ? { theme } : {})} surface="default" layoutRole="none" density="regular">
|
|
54
58
|
<slot />
|
|
55
59
|
</S.main>
|
|
56
60
|
</body>
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
---
|
|
2
|
+
import "./native/grid.css";
|
|
3
|
+
import { decorateGridBlocks } from "./native/grid.js";
|
|
4
|
+
import type { FlowpressBlockAdapters } from "../block-renderers.js";
|
|
5
|
+
import {
|
|
6
|
+
flowpressAdapterCompatibilityIssue,
|
|
7
|
+
flowpressBlockHtmlProps,
|
|
8
|
+
flowpressCompositionLogoStyles,
|
|
9
|
+
flowpressBlockTypeDescriptors
|
|
10
|
+
} from "../composition.js";
|
|
11
|
+
import {
|
|
12
|
+
resolveFlowpressBlockStyleflowProps,
|
|
13
|
+
type StyleflowContract
|
|
14
|
+
} from "../styleflow.js";
|
|
15
|
+
import type { FlowpressBlock, FlowpressCompositionV1, FlowpressBlockTypeDescriptor } from "../types.js";
|
|
16
|
+
import { rewriteFlowpressMediaUrls, type FlowpressFrontendMediaOptions } from "../media.js";
|
|
17
|
+
|
|
18
|
+
interface Props {
|
|
19
|
+
composition: FlowpressCompositionV1;
|
|
20
|
+
adapters: FlowpressBlockAdapters;
|
|
21
|
+
blocks?: FlowpressBlock[] | undefined;
|
|
22
|
+
contract?: StyleflowContract | undefined;
|
|
23
|
+
parentBlockName?: string | undefined;
|
|
24
|
+
production?: boolean | undefined;
|
|
25
|
+
depth?: number | undefined;
|
|
26
|
+
media?: FlowpressFrontendMediaOptions | undefined;
|
|
27
|
+
prepared?: { descriptors: ReadonlyMap<string, FlowpressBlockTypeDescriptor>; blocking: FlowpressCompositionV1["diagnostics"] } | undefined;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
const {
|
|
31
|
+
composition: sourceComposition,
|
|
32
|
+
adapters,
|
|
33
|
+
blocks: sourceBlocks,
|
|
34
|
+
contract,
|
|
35
|
+
parentBlockName,
|
|
36
|
+
production = import.meta.env.PROD,
|
|
37
|
+
depth = 0
|
|
38
|
+
} = Astro.props;
|
|
39
|
+
|
|
40
|
+
const mediaOptions: FlowpressFrontendMediaOptions = Astro.props.media ?? {
|
|
41
|
+
frontendOrigin: Astro.url.origin,
|
|
42
|
+
backendUrl: import.meta.env.BACKEND_URL,
|
|
43
|
+
mediaUrl: import.meta.env.FLOWPRESS_MEDIA,
|
|
44
|
+
frontendUrls: [import.meta.env.SITE_URL, sourceComposition.route.seo?.canonicalUrl]
|
|
45
|
+
.filter((url): url is string => typeof url === "string" && Boolean(url))
|
|
46
|
+
};
|
|
47
|
+
const composition = depth === 0
|
|
48
|
+
? rewriteFlowpressMediaUrls(sourceComposition, mediaOptions)
|
|
49
|
+
: sourceComposition;
|
|
50
|
+
const inputBlocks = sourceBlocks
|
|
51
|
+
? depth === 0 ? rewriteFlowpressMediaUrls(sourceBlocks, mediaOptions) : sourceBlocks
|
|
52
|
+
: composition.blocks;
|
|
53
|
+
// Prepare the whole authored tree once, before adapters render native groups.
|
|
54
|
+
// Nested resolved passes prepare their own trees through ResolvedBlocks.
|
|
55
|
+
const blocks = depth === 0 ? decorateGridBlocks(inputBlocks) : inputBlocks;
|
|
56
|
+
|
|
57
|
+
const prepared = Astro.props.prepared ?? {
|
|
58
|
+
descriptors: flowpressBlockTypeDescriptors(composition),
|
|
59
|
+
blocking: composition.diagnostics.filter((diagnostic) => diagnostic.blocking)
|
|
60
|
+
};
|
|
61
|
+
const { descriptors, blocking } = prepared;
|
|
62
|
+
if (blocking.length > 0 && production) {
|
|
63
|
+
throw new Error(
|
|
64
|
+
`FlowPress composition ${composition.sourceDigest} is not renderable:\n`
|
|
65
|
+
+ blocking.map(({ code, message }) => `- ${code}: ${message}`).join("\n")
|
|
66
|
+
);
|
|
67
|
+
}
|
|
68
|
+
const logoStyles = parentBlockName === undefined
|
|
69
|
+
? flowpressCompositionLogoStyles(composition)
|
|
70
|
+
: "";
|
|
71
|
+
---
|
|
72
|
+
|
|
73
|
+
{parentBlockName === undefined && composition.stylesheets.map((stylesheet) => (
|
|
74
|
+
<style data-flowpress-composition-style={stylesheet.id} set:html={stylesheet.css} />
|
|
75
|
+
))}
|
|
76
|
+
{logoStyles ? <style data-flowpress-logo-styles set:html={logoStyles} /> : null}
|
|
77
|
+
|
|
78
|
+
{blocking.length > 0 && !production && parentBlockName === undefined ? (
|
|
79
|
+
<aside data-flowpress-composition-diagnostics role="status">
|
|
80
|
+
<strong>FlowPress composition diagnostics</strong>
|
|
81
|
+
<ul>
|
|
82
|
+
{blocking.map(({ code, message, command }) => (
|
|
83
|
+
<li data-diagnostic-code={code}>
|
|
84
|
+
{message}
|
|
85
|
+
{command ? <code>{command}</code> : null}
|
|
86
|
+
</li>
|
|
87
|
+
))}
|
|
88
|
+
</ul>
|
|
89
|
+
</aside>
|
|
90
|
+
) : null}
|
|
91
|
+
|
|
92
|
+
{blocks.map((block) => {
|
|
93
|
+
const adapter = adapters[block.name];
|
|
94
|
+
const issue = flowpressAdapterCompatibilityIssue(block.name, descriptors, adapters);
|
|
95
|
+
if (issue && production) throw new Error(issue.message);
|
|
96
|
+
if (!adapter) {
|
|
97
|
+
return (
|
|
98
|
+
<aside data-flowpress-compatibility={issue?.code ?? "missing-adapter"} data-block-name={block.name} role="status">
|
|
99
|
+
<strong>Missing block adapter: {block.name}</strong>
|
|
100
|
+
<code>{issue?.command}</code>
|
|
101
|
+
</aside>
|
|
102
|
+
);
|
|
103
|
+
}
|
|
104
|
+
const Adapter = adapter.renderer;
|
|
105
|
+
const children = block.innerBlocks ?? [];
|
|
106
|
+
const styleflowProps = resolveFlowpressBlockStyleflowProps(
|
|
107
|
+
block.attributes,
|
|
108
|
+
contract,
|
|
109
|
+
{},
|
|
110
|
+
{
|
|
111
|
+
strict: production,
|
|
112
|
+
onDiagnostic: (diagnostic) => console.warn(
|
|
113
|
+
`[${diagnostic.code}] ${diagnostic.message}`
|
|
114
|
+
)
|
|
115
|
+
}
|
|
116
|
+
);
|
|
117
|
+
const htmlProps = flowpressBlockHtmlProps(block.attributes);
|
|
118
|
+
return (
|
|
119
|
+
<>
|
|
120
|
+
{issue && (
|
|
121
|
+
<aside data-flowpress-compatibility={issue.code} data-block-name={block.name} role="status">
|
|
122
|
+
<strong>{issue.message}</strong>
|
|
123
|
+
<code>{issue.command}</code>
|
|
124
|
+
</aside>
|
|
125
|
+
)}
|
|
126
|
+
<Adapter
|
|
127
|
+
block={block}
|
|
128
|
+
parentBlockName={parentBlockName}
|
|
129
|
+
contract={contract}
|
|
130
|
+
composition={composition}
|
|
131
|
+
styleflowProps={styleflowProps}
|
|
132
|
+
htmlProps={htmlProps}
|
|
133
|
+
context={{
|
|
134
|
+
...(parentBlockName ? { parentBlockName } : {}),
|
|
135
|
+
depth,
|
|
136
|
+
production
|
|
137
|
+
}}
|
|
138
|
+
adapters={adapters}
|
|
139
|
+
>
|
|
140
|
+
<Astro.self
|
|
141
|
+
composition={composition}
|
|
142
|
+
adapters={adapters}
|
|
143
|
+
blocks={children}
|
|
144
|
+
contract={contract}
|
|
145
|
+
parentBlockName={block.name}
|
|
146
|
+
production={production}
|
|
147
|
+
depth={depth + 1}
|
|
148
|
+
prepared={prepared}
|
|
149
|
+
/>
|
|
150
|
+
</Adapter>
|
|
151
|
+
</>
|
|
152
|
+
);
|
|
153
|
+
})}
|
|
154
|
+
|
|
155
|
+
<script>
|
|
156
|
+
import "./native/grid-bleed.js";
|
|
157
|
+
</script>
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
---
|
|
2
|
+
import type {
|
|
3
|
+
FlowpressBlockRendererProps,
|
|
4
|
+
FlowpressBlockRenderers
|
|
5
|
+
} from "../block-renderers.js";
|
|
6
|
+
import GutenbergRenderer from "./GutenbergRenderer.astro";
|
|
7
|
+
|
|
8
|
+
const {
|
|
9
|
+
block,
|
|
10
|
+
contract,
|
|
11
|
+
styleflowProps,
|
|
12
|
+
htmlProps,
|
|
13
|
+
composition,
|
|
14
|
+
adapters = {},
|
|
15
|
+
context
|
|
16
|
+
} = Astro.props as FlowpressBlockRendererProps;
|
|
17
|
+
const blockRenderers = Object.fromEntries(
|
|
18
|
+
Object.entries(adapters).map(([name, definition]) => [name, definition.renderer])
|
|
19
|
+
) as FlowpressBlockRenderers;
|
|
20
|
+
---
|
|
21
|
+
|
|
22
|
+
<GutenbergRenderer
|
|
23
|
+
blocks={[block]}
|
|
24
|
+
contract={contract}
|
|
25
|
+
blockRenderers={blockRenderers}
|
|
26
|
+
adapterDefinitions={adapters}
|
|
27
|
+
composition={composition}
|
|
28
|
+
rootHtmlProps={htmlProps}
|
|
29
|
+
rootStyleflowProps={styleflowProps}
|
|
30
|
+
parentBlockName={context.parentBlockName}
|
|
31
|
+
production={context.production}
|
|
32
|
+
depth={context.depth}
|
|
33
|
+
skipCustomRendererFor={block.name}
|
|
34
|
+
requireRegisteredAdapters={Boolean(composition)}
|
|
35
|
+
/>
|
|
@@ -11,7 +11,12 @@ const hasGutembergBlocks = Array.isArray(content?.contentBlocks) && content.cont
|
|
|
11
11
|
//TODO SET GLOBAL LOCAL ON ENV
|
|
12
12
|
---
|
|
13
13
|
|
|
14
|
-
<BaseLayout
|
|
14
|
+
<BaseLayout
|
|
15
|
+
lang={route.locale || "it"}
|
|
16
|
+
seo={route.seo}
|
|
17
|
+
theme={styleflowContract?.defaultTheme}
|
|
18
|
+
themes={styleflowContract?.semantic.themes}
|
|
19
|
+
>
|
|
15
20
|
|
|
16
21
|
{hasGutembergBlocks ? (
|
|
17
22
|
<GutenbergRenderer
|