@styleflow.app/flowpress-astro-core 1.0.0-beta.31 → 1.0.0-beta.33
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 +11 -0
- package/dist/astro/DefaultBlockAdapter.astro +2 -1
- package/dist/astro/GutenbergRenderer.astro +4 -1
- package/dist/astro/native/ResolvedBlocks.astro +1 -1
- package/dist/astro/native/SyncedPatternContent.astro +1 -1
- package/dist/block-renderers.d.ts +1 -0
- package/dist/block-renderers.d.ts.map +1 -1
- package/dist/block-renderers.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.0.0-beta.33 — 2026-10-15
|
|
4
|
+
|
|
5
|
+
- Preserve inherited surfaces and layout on native blocks rendered in nested semantic passes, including dynamic query titles.
|
|
6
|
+
- [Canonical verification](https://github.com/StyleFlow-App/styleflow-docs/blob/main/dev/rapporti/2026-10-14-consolidamento-tessari.md).
|
|
7
|
+
|
|
8
|
+
## 1.0.0-beta.32 — 2026-10-15
|
|
9
|
+
|
|
10
|
+
- Preserve project renderer overrides through Query Loop, Query Carousel and synced-pattern resolved passes, including semantic rendering without a composition registry.
|
|
11
|
+
- Add an actual Astro build regression with custom renderers in all three paths.
|
|
12
|
+
- [Canonical integration report](https://github.com/StyleFlow-App/styleflow-docs/blob/main/dev/rapporti/2026-10-14-consolidamento-tessari.md).
|
|
13
|
+
|
|
3
14
|
## 1.0.0-beta.31 — 2026-10-14
|
|
4
15
|
|
|
5
16
|
- Official renderers, inline SVG, inherited color validation, preferences, portable motion and accordion runtimes.
|
|
@@ -17,12 +17,13 @@ const {
|
|
|
17
17
|
const blockRenderers = Object.fromEntries(
|
|
18
18
|
Object.entries(adapters).map(([name, definition]) => [name, definition.renderer])
|
|
19
19
|
) as FlowpressBlockRenderers;
|
|
20
|
+
const scopedRenderers = { ...blockRenderers, ...context.blockRenderers };
|
|
20
21
|
---
|
|
21
22
|
|
|
22
23
|
<GutenbergRenderer
|
|
23
24
|
blocks={[block]}
|
|
24
25
|
contract={contract}
|
|
25
|
-
blockRenderers={
|
|
26
|
+
blockRenderers={scopedRenderers}
|
|
26
27
|
adapterDefinitions={adapters}
|
|
27
28
|
composition={composition}
|
|
28
29
|
rootHtmlProps={htmlProps}
|
|
@@ -127,7 +127,9 @@ function nestedRendererProps(nextParentBlockName: string, attrs: Record<string,
|
|
|
127
127
|
if (interactiveAncestor && /^(?:core|sf)\/(?:paragraph|heading)$/.test(block.name) && !block.attributes.foreground) block = {...block, attributes:{...block.attributes, foreground:"inherit"}};
|
|
128
128
|
const semantic = index === 0 && blocks.length === 1 && rootStyleflowProps
|
|
129
129
|
? rootStyleflowProps
|
|
130
|
-
: semanticProps(block.attributes, contract,
|
|
130
|
+
: semanticProps(block.attributes, contract,
|
|
131
|
+
block.name.startsWith("core/") && block.name !== "core/group" ? {} : undefined,
|
|
132
|
+
inheritedTone);
|
|
131
133
|
const htmlAttributes = index === 0 && blocks.length === 1 && rootHtmlProps
|
|
132
134
|
? { ...rootHtmlProps, class: Array.from(new Set([rootHtmlProps.class, block.attributes.className].filter(Boolean).join(" ").split(/\s+/))).join(" ") }
|
|
133
135
|
: blockHtmlAttributes(block.attributes);
|
|
@@ -179,6 +181,7 @@ function nestedRendererProps(nextParentBlockName: string, attrs: Record<string,
|
|
|
179
181
|
...(parentBlockName ? { parentBlockName } : {}),
|
|
180
182
|
depth,
|
|
181
183
|
production,
|
|
184
|
+
blockRenderers,
|
|
182
185
|
inheritedTone,
|
|
183
186
|
effectiveTone: typeof semantic.tone === "string" ? semantic.tone : inheritedTone
|
|
184
187
|
}}
|
|
@@ -81,7 +81,7 @@ const nestedComposition: FlowpressCompositionV1 | undefined = composition && ada
|
|
|
81
81
|
<GutenbergRenderer
|
|
82
82
|
blocks={decorateGridBlocks(blocks)}
|
|
83
83
|
contract={contract}
|
|
84
|
-
blockRenderers={nativeBlockRenderers}
|
|
84
|
+
blockRenderers={{ ...nativeBlockRenderers, ...context.blockRenderers }}
|
|
85
85
|
parentBlockName={block.name}
|
|
86
86
|
production={context.production}
|
|
87
87
|
depth={context.depth + 1}
|
|
@@ -83,7 +83,7 @@ const patternComposition: FlowpressCompositionV1 | undefined = composition && ad
|
|
|
83
83
|
<GutenbergRenderer
|
|
84
84
|
blocks={decorateGridBlocks(patternBlocks)}
|
|
85
85
|
contract={contract}
|
|
86
|
-
blockRenderers={{ ...nativeBlockRenderers, ...(selfRenderer ? { [block.name]: selfRenderer } : {}) }}
|
|
86
|
+
blockRenderers={{ ...nativeBlockRenderers, ...context.blockRenderers, ...(selfRenderer ? { [block.name]: selfRenderer } : {}) }}
|
|
87
87
|
parentBlockName={block.name}
|
|
88
88
|
production={context.production}
|
|
89
89
|
depth={context.depth + 1}
|
|
@@ -12,6 +12,7 @@ export interface FlowpressBlockRendererProps {
|
|
|
12
12
|
production: boolean;
|
|
13
13
|
effectiveTone?: string | undefined;
|
|
14
14
|
inheritedTone?: string | undefined;
|
|
15
|
+
blockRenderers?: FlowpressBlockRenderers | undefined;
|
|
15
16
|
};
|
|
16
17
|
parentBlockName?: string;
|
|
17
18
|
contract?: StyleflowContract | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"block-renderers.d.ts","sourceRoot":"","sources":["../src/block-renderers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AAC3E,OAAO,KAAK,EAAE,qBAAqB,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAC/E,OAAO,KAAK,EACV,cAAc,EACd,uBAAuB,EACvB,2BAA2B,EAC3B,mBAAmB,EACnB,sBAAsB,EACvB,MAAM,YAAY,CAAC;AAEpB,MAAM,WAAW,2BAA2B;IAC1C,KAAK,EAAE,cAAc,CAAC;IACtB,cAAc,EAAE,qBAAqB,CAAC;IACtC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ACzC,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAC;IAC7B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC5B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,MAAM,sBAAsB,GAAG,qBAAqB,CAAC;AAE3D,MAAM,MAAM,qBAAqB,GAAG,qBAAqB,CAAC;AAE1D,MAAM,MAAM,uBAAuB,GAAG,QAAQ,CAC5C,MAAM,CAAC,MAAM,EAAE,sBAAsB,CAAC,CACvC,CAAC;AAEF,MAAM,WAAW,+BAA+B;IAC9C,QAAQ,EAAE,sBAAsB,CAAC;IACjC,MAAM,EAAE,2BAA2B,CAAC;IACpC,KAAK,EAAE,mBAAmB,CAAC;IAC3B,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,MAAM,sBAAsB,GAAG,QAAQ,CAC3C,MAAM,CAAC,MAAM,EAAE,+BAA+B,CAAC,CAChD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"block-renderers.js","sourceRoot":"","sources":["../src/block-renderers.ts"],"names":[],"mappings":"","sourcesContent":["import type { AstroComponentFactory } from \"astro/runtime/server/index.js\";\nimport type { DynamicStyleflowProps, StyleflowContract } from \"./styleflow.js\";\nimport type {\n FlowpressBlock,\n FlowpressBlockHtmlProps,\n FlowpressBlockAdapterStatus,\n FlowpressBlockClass,\n FlowpressCompositionV1\n} from \"./types.js\";\n\nexport interface FlowpressBlockRendererProps {\n block: FlowpressBlock;\n styleflowProps: DynamicStyleflowProps;\n htmlProps: FlowpressBlockHtmlProps;\n composition?: FlowpressCompositionV1 | undefined;\n context: {\n parentBlockName?: string;\n depth: number;\n production: boolean;\n effectiveTone?: string | undefined;\n inheritedTone?: string | undefined;\n };\n parentBlockName?: string;\n contract?: StyleflowContract | undefined;\n adapters?: FlowpressBlockAdapters | undefined;\n}\n\nexport interface FlowpressIconRendererProps {\n name: string;\n display?: \"inline\" | \"block\";\n foreground?: string;\n tone?: string;\n intensity?: string | number;\n size?: number;\n label?: string;\n id?: string;\n class?: string;\n}\n\nexport type FlowpressBlockRenderer = AstroComponentFactory;\n\nexport type FlowpressIconRenderer = AstroComponentFactory;\n\nexport type FlowpressBlockRenderers = Readonly<\n Record<string, FlowpressBlockRenderer>\n>;\n\nexport interface FlowpressBlockAdapterDefinition {\n renderer: FlowpressBlockRenderer;\n status: FlowpressBlockAdapterStatus;\n class: FlowpressBlockClass;\n fingerprint: string;\n}\n\nexport type FlowpressBlockAdapters = Readonly<\n Record<string, FlowpressBlockAdapterDefinition>\n>;\n"]}
|
|
1
|
+
{"version":3,"file":"block-renderers.js","sourceRoot":"","sources":["../src/block-renderers.ts"],"names":[],"mappings":"","sourcesContent":["import type { AstroComponentFactory } from \"astro/runtime/server/index.js\";\nimport type { DynamicStyleflowProps, StyleflowContract } from \"./styleflow.js\";\nimport type {\n FlowpressBlock,\n FlowpressBlockHtmlProps,\n FlowpressBlockAdapterStatus,\n FlowpressBlockClass,\n FlowpressCompositionV1\n} from \"./types.js\";\n\nexport interface FlowpressBlockRendererProps {\n block: FlowpressBlock;\n styleflowProps: DynamicStyleflowProps;\n htmlProps: FlowpressBlockHtmlProps;\n composition?: FlowpressCompositionV1 | undefined;\n context: {\n parentBlockName?: string;\n depth: number;\n production: boolean;\n effectiveTone?: string | undefined;\n inheritedTone?: string | undefined;\n blockRenderers?: FlowpressBlockRenderers | undefined;\n };\n parentBlockName?: string;\n contract?: StyleflowContract | undefined;\n adapters?: FlowpressBlockAdapters | undefined;\n}\n\nexport interface FlowpressIconRendererProps {\n name: string;\n display?: \"inline\" | \"block\";\n foreground?: string;\n tone?: string;\n intensity?: string | number;\n size?: number;\n label?: string;\n id?: string;\n class?: string;\n}\n\nexport type FlowpressBlockRenderer = AstroComponentFactory;\n\nexport type FlowpressIconRenderer = AstroComponentFactory;\n\nexport type FlowpressBlockRenderers = Readonly<\n Record<string, FlowpressBlockRenderer>\n>;\n\nexport interface FlowpressBlockAdapterDefinition {\n renderer: FlowpressBlockRenderer;\n status: FlowpressBlockAdapterStatus;\n class: FlowpressBlockClass;\n fingerprint: string;\n}\n\nexport type FlowpressBlockAdapters = Readonly<\n Record<string, FlowpressBlockAdapterDefinition>\n>;\n"]}
|
package/package.json
CHANGED