@styleflow.app/flowpress-astro-core 1.0.0-beta.10 → 1.0.0-beta.11
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
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
## Unreleased
|
|
4
4
|
|
|
5
|
+
## 1.0.0-beta.11
|
|
6
|
+
|
|
7
|
+
- Made the official default adapter usable by both Site Editor compositions
|
|
8
|
+
and traditional Gutenberg rendering.
|
|
9
|
+
- Kept nested project overrides active in traditional rendering while applying
|
|
10
|
+
composition fingerprint gates only when a composition is present.
|
|
11
|
+
|
|
5
12
|
## 1.0.0-beta.10
|
|
6
13
|
|
|
7
14
|
- Added a versioned catalog of official default block adapters and a public
|
package/README.md
CHANGED
|
@@ -9,7 +9,7 @@ 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.
|
|
12
|
+
pnpm add @styleflow.app/flowpress-astro-core@1.0.0-beta.11 \
|
|
13
13
|
@styleflow.app/astro@1.0.0-beta.6
|
|
14
14
|
```
|
|
15
15
|
|
|
@@ -122,7 +122,9 @@ The package publishes a versioned `flowpressDefaultBlockCatalog` and
|
|
|
122
122
|
in this order: conventional local `namespace-block.astro`, explicit manifest
|
|
123
123
|
renderer, official default. Calling the official default skips only the
|
|
124
124
|
current override and keeps the same registry for nested children, avoiding
|
|
125
|
-
recursion without losing child overrides.
|
|
125
|
+
recursion without losing child overrides. The same adapter works in Site
|
|
126
|
+
Editor compositions and in traditional Gutenberg rendering; fingerprint gates
|
|
127
|
+
remain composition-only. File discovery never changes a
|
|
126
128
|
`draft`, missing or stale fingerprint into a certified adapter.
|
|
127
129
|
|
|
128
130
|
`createFlowpressDefaultBlockAdapterSource(blockName)` returns the editable
|
|
@@ -233,7 +235,7 @@ The TypeScript template-hierarchy suite is self-contained. Its additional PHP
|
|
|
233
235
|
parity test runs when the sibling `flowpress-wordpress-core` checkout is
|
|
234
236
|
available locally and is skipped in a standalone package checkout.
|
|
235
237
|
|
|
236
|
-
Publish `1.0.0-beta.
|
|
238
|
+
Publish `1.0.0-beta.11` on `next` only after the exact Styleflow prerelease is
|
|
237
239
|
available. Inspect `npm view`, `gitHead`, integrity and the downloaded tarball.
|
|
238
240
|
Promote to `latest` only after the DMO canary and rollback gate.
|
|
239
241
|
|
|
@@ -11,7 +11,7 @@ const {
|
|
|
11
11
|
styleflowProps,
|
|
12
12
|
htmlProps,
|
|
13
13
|
composition,
|
|
14
|
-
adapters,
|
|
14
|
+
adapters = {},
|
|
15
15
|
context
|
|
16
16
|
} = Astro.props as FlowpressBlockRendererProps;
|
|
17
17
|
const blockRenderers = Object.fromEntries(
|
|
@@ -31,5 +31,5 @@ const blockRenderers = Object.fromEntries(
|
|
|
31
31
|
production={context.production}
|
|
32
32
|
depth={context.depth}
|
|
33
33
|
skipCustomRendererFor={block.name}
|
|
34
|
-
requireRegisteredAdapters
|
|
34
|
+
requireRegisteredAdapters={Boolean(composition)}
|
|
35
35
|
/>
|
|
@@ -5,7 +5,7 @@ export interface FlowpressBlockRendererProps {
|
|
|
5
5
|
block: FlowpressBlock;
|
|
6
6
|
styleflowProps: DynamicStyleflowProps;
|
|
7
7
|
htmlProps: FlowpressBlockHtmlProps;
|
|
8
|
-
composition
|
|
8
|
+
composition?: FlowpressCompositionV1;
|
|
9
9
|
context: {
|
|
10
10
|
parentBlockName?: string;
|
|
11
11
|
depth: number;
|
|
@@ -13,7 +13,7 @@ export interface FlowpressBlockRendererProps {
|
|
|
13
13
|
};
|
|
14
14
|
parentBlockName?: string;
|
|
15
15
|
contract?: StyleflowContract;
|
|
16
|
-
adapters
|
|
16
|
+
adapters?: FlowpressBlockAdapters;
|
|
17
17
|
}
|
|
18
18
|
export interface FlowpressIconRendererProps {
|
|
19
19
|
name: string;
|
|
@@ -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,SAAS,EAAE,uBAAuB,CAAC;IACnC,WAAW,EAAE,sBAAsB,CAAC;
|
|
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,SAAS,EAAE,uBAAuB,CAAC;IACnC,WAAW,CAAC,EAAE,sBAAsB,CAAC;IACrC,OAAO,EAAE;QACP,eAAe,CAAC,EAAE,MAAM,CAAC;QACzB,KAAK,EAAE,MAAM,CAAC;QACd,UAAU,EAAE,OAAO,CAAC;KACrB,CAAC;IACF,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,EAAE,iBAAiB,CAAC;IAC7B,QAAQ,CAAC,EAAE,sBAAsB,CAAC;CACnC;AAED,MAAM,WAAW,0BAA0B;IACzC,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
|
|
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;\n context: {\n parentBlockName?: string;\n depth: number;\n production: boolean;\n };\n parentBlockName?: string;\n contract?: StyleflowContract;\n adapters?: FlowpressBlockAdapters;\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