@styleflow.app/flowpress-astro-core 1.0.0-beta.30 → 1.0.0-beta.32

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 (112) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/astro/CompositionRenderer.astro +13 -2
  3. package/dist/astro/DefaultBlockAdapter.astro +3 -1
  4. package/dist/astro/FontStylesheets.astro +35 -0
  5. package/dist/astro/GutenbergRenderer.astro +59 -19
  6. package/dist/astro/Media.astro +24 -0
  7. package/dist/astro/StyleflowElement.astro +1 -0
  8. package/dist/astro/blocks/CarouselBlock.astro +3 -0
  9. package/dist/astro/blocks/CoverBlock.astro +2 -1
  10. package/dist/astro/blocks/HeroBlock.astro +2 -1
  11. package/dist/astro/blocks/ImageBlock.astro +2 -1
  12. package/dist/astro/blocks/ListItemFallback.astro +2 -1
  13. package/dist/astro/blocks/SiteLogoBlock.astro +3 -2
  14. package/dist/astro/blocks/helpers.d.ts +3 -1
  15. package/dist/astro/blocks/helpers.d.ts.map +1 -1
  16. package/dist/astro/blocks/helpers.js +5 -3
  17. package/dist/astro/blocks/helpers.js.map +1 -1
  18. package/dist/astro/blocks/helpers.ts +7 -4
  19. package/dist/astro/motion/AccordionRuntime.astro +9 -0
  20. package/dist/astro/motion/MotionBoot.astro +21 -0
  21. package/dist/astro/motion/MotionRuntime.astro +31 -0
  22. package/dist/astro/motion/accordion.css +163 -0
  23. package/dist/astro/motion/accordion.d.ts +3 -0
  24. package/dist/astro/motion/accordion.d.ts.map +1 -0
  25. package/dist/astro/motion/accordion.js +98 -0
  26. package/dist/astro/motion/accordion.js.map +1 -0
  27. package/dist/astro/motion/accordion.ts +109 -0
  28. package/dist/astro/motion/motion-controller.d.ts +12 -0
  29. package/dist/astro/motion/motion-controller.d.ts.map +1 -0
  30. package/dist/astro/motion/motion-controller.js +293 -0
  31. package/dist/astro/motion/motion-controller.js.map +1 -0
  32. package/dist/astro/motion/motion-controller.ts +377 -0
  33. package/dist/astro/motion/motion.css +546 -0
  34. package/dist/astro/motion/motion.d.ts +127 -0
  35. package/dist/astro/motion/motion.d.ts.map +1 -0
  36. package/dist/astro/motion/motion.js +255 -0
  37. package/dist/astro/motion/motion.js.map +1 -0
  38. package/dist/astro/motion/motion.ts +419 -0
  39. package/dist/astro/native/CustomFieldValue.astro +2 -1
  40. package/dist/astro/native/ReservedLogin.astro +107 -0
  41. package/dist/astro/native/ResolvedBlocks.astro +3 -1
  42. package/dist/astro/native/SyncedPatternContent.astro +3 -1
  43. package/dist/astro/native/TermFieldValue.astro +2 -1
  44. package/dist/astro/native/Timeline.astro +2 -1
  45. package/dist/astro/native/blob.css +1 -1
  46. package/dist/astro/native/button-template.d.ts +31 -0
  47. package/dist/astro/native/button-template.d.ts.map +1 -0
  48. package/dist/astro/native/button-template.js +54 -0
  49. package/dist/astro/native/button-template.js.map +1 -0
  50. package/dist/astro/native/button-template.ts +92 -0
  51. package/dist/astro/native/core-button-fallback.astro +43 -0
  52. package/dist/astro/native/core-button.astro +48 -26
  53. package/dist/astro/native/core-group.astro +3 -1
  54. package/dist/astro/native/core-image.astro +3 -2
  55. package/dist/astro/native/core-navigation.astro +9 -2
  56. package/dist/astro/native/core-post-featured-image.astro +3 -2
  57. package/dist/astro/native/core-post-template-fallback.astro +30 -0
  58. package/dist/astro/native/core-post-template.astro +17 -24
  59. package/dist/astro/native/grid-bleed.d.ts +2 -0
  60. package/dist/astro/native/grid-bleed.d.ts.map +1 -0
  61. package/dist/astro/native/grid-bleed.js +24 -7
  62. package/dist/astro/native/grid-bleed.js.map +1 -0
  63. package/dist/astro/native/group.css +36 -0
  64. package/dist/astro/native/group.d.ts +15 -0
  65. package/dist/astro/native/group.d.ts.map +1 -0
  66. package/dist/astro/native/group.js +66 -0
  67. package/dist/astro/native/group.js.map +1 -0
  68. package/dist/astro/native/group.ts +61 -0
  69. package/dist/astro/native/inline-text.css +15 -0
  70. package/dist/astro/native/query-carousel.d.ts +12 -0
  71. package/dist/astro/native/query-carousel.d.ts.map +1 -0
  72. package/dist/astro/native/query-carousel.js +36 -0
  73. package/dist/astro/native/query-carousel.js.map +1 -0
  74. package/dist/astro/native/query-carousel.ts +56 -0
  75. package/dist/astro/native/registry.d.ts.map +1 -1
  76. package/dist/astro/native/registry.js +3 -0
  77. package/dist/astro/native/registry.js.map +1 -1
  78. package/dist/astro/native/registry.ts +4 -0
  79. package/dist/astro/native/timeline.css +1 -1
  80. package/dist/astro/preferences/AccessibilityPanel.astro +73 -86
  81. package/dist/block-renderers.d.ts +3 -0
  82. package/dist/block-renderers.d.ts.map +1 -1
  83. package/dist/block-renderers.js.map +1 -1
  84. package/dist/composition.d.ts.map +1 -1
  85. package/dist/composition.js +2 -1
  86. package/dist/composition.js.map +1 -1
  87. package/dist/default-blocks.d.ts +1 -1
  88. package/dist/default-blocks.d.ts.map +1 -1
  89. package/dist/default-blocks.js +3 -1
  90. package/dist/default-blocks.js.map +1 -1
  91. package/dist/reserved-area.d.ts +10 -0
  92. package/dist/reserved-area.d.ts.map +1 -0
  93. package/dist/reserved-area.js +93 -0
  94. package/dist/reserved-area.js.map +1 -0
  95. package/dist/styleflow.d.ts +2 -0
  96. package/dist/styleflow.d.ts.map +1 -1
  97. package/dist/styleflow.js +6 -4
  98. package/dist/styleflow.js.map +1 -1
  99. package/dist/svg-media-runtime.d.ts +3 -0
  100. package/dist/svg-media-runtime.d.ts.map +1 -0
  101. package/dist/svg-media-runtime.js +33 -0
  102. package/dist/svg-media-runtime.js.map +1 -0
  103. package/dist/svg-media-types.d.ts +11 -0
  104. package/dist/svg-media-types.d.ts.map +1 -0
  105. package/dist/svg-media-types.js +2 -0
  106. package/dist/svg-media-types.js.map +1 -0
  107. package/dist/svg-media.d.ts +10 -0
  108. package/dist/svg-media.d.ts.map +1 -0
  109. package/dist/svg-media.js +34 -0
  110. package/dist/svg-media.js.map +1 -0
  111. package/dist/tsconfig.tsbuildinfo +1 -1
  112. package/package.json +30 -3
@@ -0,0 +1,54 @@
1
+ // Native button templates resolved by WordPress Core.
2
+ //
3
+ // The WordPress resolver attaches the selected template to core/button as
4
+ // `resolvedData.template`, resolved like a synced pattern. The template root
5
+ // Group becomes the focusable control, so StyleFlow interaction states
6
+ // (hover, focus-visible, disabled on data-interactive-priority) apply to the
7
+ // link itself; the root's children render inside it.
8
+ import { flowpressBlockHtmlProps, resolveFlowpressBlockStyleflowProps, } from "../../index.js";
9
+ import { nativeGroupProps } from "./group.js";
10
+ const CONTROL_CLASSES = ["wp-block-button__link", "wp-element-button", "flowpress-button-template"];
11
+ export function buttonTemplateData(resolvedData) {
12
+ const template = resolvedData?.template;
13
+ if (!template || typeof template !== "object")
14
+ return undefined;
15
+ const data = template;
16
+ return typeof data.slug === "string" && Array.isArray(data.blocks) && data.blocks.length > 0
17
+ ? data
18
+ : undefined;
19
+ }
20
+ export function buttonTemplateHasInteractiveBlocks(blocks) {
21
+ const intrinsic = new Set(["core/button", "core/buttons", "core/navigation", "core/navigation-link", "core/navigation-submenu", "core/home-link", "core/page-list", "core/block", "core/audio", "core/video", "core/embed", "sf/button", "sf/form", "sf/theme-toggle", "sf/carousel", "sf/video", "sf/video-youtube", "sf/code"]);
22
+ return blocks.some(block => {
23
+ const attrs = block.attributes ?? {};
24
+ const data = (block.resolvedData ?? {});
25
+ if (intrinsic.has(block.name) || attrs.isLink || attrs.href || attrs.link?.url || data.href || data.as === "link")
26
+ return true;
27
+ if ([attrs.content, attrs.html, block.innerHtml, data.html, data.svg?.content].some(value => typeof value === "string" && /<(?:a|button|input|select|textarea|form|iframe|summary|details|audio|video)\b/i.test(value)))
28
+ return true;
29
+ return buttonTemplateHasInteractiveBlocks(block.innerBlocks ?? []) || buttonTemplateHasInteractiveBlocks(data.blocks ?? []) || (data.items ?? []).some((item) => buttonTemplateHasInteractiveBlocks(item.blocks ?? []));
30
+ });
31
+ }
32
+ export function buttonTemplateControl(template, contract, options = {}) {
33
+ const [root] = template.blocks;
34
+ if (template.blocks.length !== 1 || !root || root.name !== "core/group" || buttonTemplateHasInteractiveBlocks(template.blocks))
35
+ return undefined;
36
+ const attributes = (root.attributes ?? {});
37
+ const styleflowProps = resolveFlowpressBlockStyleflowProps(attributes, contract, {}, options);
38
+ const groupProps = nativeGroupProps(attributes, flowpressBlockHtmlProps(attributes), styleflowProps);
39
+ return {
40
+ controlProps: {
41
+ ...groupProps,
42
+ class: [...CONTROL_CLASSES, groupProps.class].filter(Boolean).join(" "),
43
+ },
44
+ styleflowProps,
45
+ children: root.innerBlocks ?? [],
46
+ };
47
+ }
48
+ /** Diagnostic codes worth surfacing on the element outside production. */
49
+ export function buttonTemplateDiagnosticCodes(template, resolvedData) {
50
+ const own = resolvedData
51
+ ?.templateDiagnostics ?? [];
52
+ return [...own, ...(template?.diagnostics ?? [])].map(({ code }) => code).join(" ");
53
+ }
54
+ //# sourceMappingURL=button-template.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"button-template.js","sourceRoot":"","sources":["../../../src/astro/native/button-template.ts"],"names":[],"mappings":"AAAA,sDAAsD;AACtD,EAAE;AACF,0EAA0E;AAC1E,6EAA6E;AAC7E,uEAAuE;AACvE,6EAA6E;AAC7E,qDAAqD;AACrD,OAAO,EACL,uBAAuB,EACvB,mCAAmC,GAKpC,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AA6B9C,MAAM,eAAe,GAAG,CAAC,uBAAuB,EAAE,mBAAmB,EAAE,2BAA2B,CAAC,CAAC;AAEpG,MAAM,UAAU,kBAAkB,CAAC,YAAqB;IACtD,MAAM,QAAQ,GAAI,YAA0D,EAAE,QAAQ,CAAC;IACvF,IAAI,CAAC,QAAQ,IAAI,OAAO,QAAQ,KAAK,QAAQ;QAAE,OAAO,SAAS,CAAC;IAChE,MAAM,IAAI,GAAG,QAAuC,CAAC;IACrD,OAAO,OAAO,IAAI,CAAC,IAAI,KAAK,QAAQ,IAAI,KAAK,CAAC,OAAO,CAAC,IAAI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IAAI,EAAE,CAAC;IAC9B,OAAO,CAAC,GAAG,GAAG,EAAE,GAAG,CAAC,QAAQ,EAAE,WAAW,IAAI,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AACtF,CAAC","sourcesContent":["// Native button templates resolved by WordPress Core.\n//\n// The WordPress resolver attaches the selected template to core/button as\n// `resolvedData.template`, resolved like a synced pattern. The template root\n// Group becomes the focusable control, so StyleFlow interaction states\n// (hover, focus-visible, disabled on data-interactive-priority) apply to the\n// link itself; the root's children render inside it.\nimport {\n flowpressBlockHtmlProps,\n resolveFlowpressBlockStyleflowProps,\n type DynamicStyleflowProps,\n type FlowpressBlock,\n type StyleflowContract,\n type ResolveDynamicStyleflowOptions,\n} from \"../../index.js\";\nimport { nativeGroupProps } from \"./group.js\";\n\nexport interface ButtonTemplateDiagnostic {\n code: string;\n message: string;\n blocking: boolean;\n blockName?: string;\n path?: string;\n}\n\nexport interface ButtonTemplateData {\n slug: string;\n ref: number;\n requested?: string | null;\n blocks: FlowpressBlock[];\n blockTypes?: unknown[];\n stylesheets?: unknown[];\n diagnostics?: ButtonTemplateDiagnostic[];\n}\n\nexport interface ButtonTemplateControl {\n /** Props of the focusable element (a, button or span). */\n controlProps: Record<string, unknown>;\n /** StyleFlow props of the template root, applied to the control. */\n styleflowProps: DynamicStyleflowProps;\n /** Blocks rendered inside the control. */\n children: FlowpressBlock[];\n}\n\nconst CONTROL_CLASSES = [\"wp-block-button__link\", \"wp-element-button\", \"flowpress-button-template\"];\n\nexport function buttonTemplateData(resolvedData: unknown): ButtonTemplateData | undefined {\n const template = (resolvedData as { template?: unknown } | null | undefined)?.template;\n if (!template || typeof template !== \"object\") return undefined;\n const data = template as Partial<ButtonTemplateData>;\n return typeof data.slug === \"string\" && Array.isArray(data.blocks) && data.blocks.length > 0\n ? (data as ButtonTemplateData)\n : undefined;\n}\n\nexport function buttonTemplateHasInteractiveBlocks(blocks: FlowpressBlock[]): boolean {\n const intrinsic = new Set([\"core/button\",\"core/buttons\",\"core/navigation\",\"core/navigation-link\",\"core/navigation-submenu\",\"core/home-link\",\"core/page-list\",\"core/block\",\"core/audio\",\"core/video\",\"core/embed\",\"sf/button\",\"sf/form\",\"sf/theme-toggle\",\"sf/carousel\",\"sf/video\",\"sf/video-youtube\",\"sf/code\"]);\n return blocks.some(block => {\n const attrs = block.attributes ?? {};\n const data = (block.resolvedData ?? {}) as Record<string, any>;\n if (intrinsic.has(block.name) || attrs.isLink || attrs.href || (attrs.link as {url?:string}|undefined)?.url || data.href || data.as === \"link\") return true;\n if ([attrs.content, attrs.html, block.innerHtml, data.html, data.svg?.content].some(value => typeof value === \"string\" && /<(?:a|button|input|select|textarea|form|iframe|summary|details|audio|video)\\b/i.test(value))) return true;\n return buttonTemplateHasInteractiveBlocks(block.innerBlocks ?? []) || buttonTemplateHasInteractiveBlocks(data.blocks ?? []) || (data.items ?? []).some((item:{blocks?:FlowpressBlock[]}) => buttonTemplateHasInteractiveBlocks(item.blocks ?? []));\n });\n}\n\nexport function buttonTemplateControl(\n template: ButtonTemplateData,\n contract?: StyleflowContract,\n options: ResolveDynamicStyleflowOptions = {},\n): ButtonTemplateControl | undefined {\n const [root] = template.blocks;\n if (template.blocks.length !== 1 || !root || root.name !== \"core/group\" || buttonTemplateHasInteractiveBlocks(template.blocks)) return undefined;\n const attributes = (root.attributes ?? {}) as Record<string, unknown>;\n const styleflowProps = resolveFlowpressBlockStyleflowProps(attributes, contract, {}, options);\n const groupProps = nativeGroupProps(attributes, flowpressBlockHtmlProps(attributes), styleflowProps);\n return {\n controlProps: {\n ...groupProps,\n class: [...CONTROL_CLASSES, groupProps.class].filter(Boolean).join(\" \"),\n },\n styleflowProps,\n children: root.innerBlocks ?? [],\n };\n}\n\n/** Diagnostic codes worth surfacing on the element outside production. */\nexport function buttonTemplateDiagnosticCodes(template: ButtonTemplateData | undefined, resolvedData: unknown): string {\n const own = (resolvedData as { templateDiagnostics?: ButtonTemplateDiagnostic[] } | null | undefined)\n ?.templateDiagnostics ?? [];\n return [...own, ...(template?.diagnostics ?? [])].map(({ code }) => code).join(\" \");\n}\n"]}
@@ -0,0 +1,92 @@
1
+ // Native button templates resolved by WordPress Core.
2
+ //
3
+ // The WordPress resolver attaches the selected template to core/button as
4
+ // `resolvedData.template`, resolved like a synced pattern. The template root
5
+ // Group becomes the focusable control, so StyleFlow interaction states
6
+ // (hover, focus-visible, disabled on data-interactive-priority) apply to the
7
+ // link itself; the root's children render inside it.
8
+ import {
9
+ flowpressBlockHtmlProps,
10
+ resolveFlowpressBlockStyleflowProps,
11
+ type DynamicStyleflowProps,
12
+ type FlowpressBlock,
13
+ type StyleflowContract,
14
+ type ResolveDynamicStyleflowOptions,
15
+ } from "../../index.js";
16
+ import { nativeGroupProps } from "./group.js";
17
+
18
+ export interface ButtonTemplateDiagnostic {
19
+ code: string;
20
+ message: string;
21
+ blocking: boolean;
22
+ blockName?: string;
23
+ path?: string;
24
+ }
25
+
26
+ export interface ButtonTemplateData {
27
+ slug: string;
28
+ ref: number;
29
+ requested?: string | null;
30
+ blocks: FlowpressBlock[];
31
+ blockTypes?: unknown[];
32
+ stylesheets?: unknown[];
33
+ diagnostics?: ButtonTemplateDiagnostic[];
34
+ }
35
+
36
+ export interface ButtonTemplateControl {
37
+ /** Props of the focusable element (a, button or span). */
38
+ controlProps: Record<string, unknown>;
39
+ /** StyleFlow props of the template root, applied to the control. */
40
+ styleflowProps: DynamicStyleflowProps;
41
+ /** Blocks rendered inside the control. */
42
+ children: FlowpressBlock[];
43
+ }
44
+
45
+ const CONTROL_CLASSES = ["wp-block-button__link", "wp-element-button", "flowpress-button-template"];
46
+
47
+ export function buttonTemplateData(resolvedData: unknown): ButtonTemplateData | undefined {
48
+ const template = (resolvedData as { template?: unknown } | null | undefined)?.template;
49
+ if (!template || typeof template !== "object") return undefined;
50
+ const data = template as Partial<ButtonTemplateData>;
51
+ return typeof data.slug === "string" && Array.isArray(data.blocks) && data.blocks.length > 0
52
+ ? (data as ButtonTemplateData)
53
+ : undefined;
54
+ }
55
+
56
+ export function buttonTemplateHasInteractiveBlocks(blocks: FlowpressBlock[]): boolean {
57
+ const intrinsic = new Set(["core/button","core/buttons","core/navigation","core/navigation-link","core/navigation-submenu","core/home-link","core/page-list","core/block","core/audio","core/video","core/embed","sf/button","sf/form","sf/theme-toggle","sf/carousel","sf/video","sf/video-youtube","sf/code"]);
58
+ return blocks.some(block => {
59
+ const attrs = block.attributes ?? {};
60
+ const data = (block.resolvedData ?? {}) as Record<string, any>;
61
+ if (intrinsic.has(block.name) || attrs.isLink || attrs.href || (attrs.link as {url?:string}|undefined)?.url || data.href || data.as === "link") return true;
62
+ if ([attrs.content, attrs.html, block.innerHtml, data.html, data.svg?.content].some(value => typeof value === "string" && /<(?:a|button|input|select|textarea|form|iframe|summary|details|audio|video)\b/i.test(value))) return true;
63
+ return buttonTemplateHasInteractiveBlocks(block.innerBlocks ?? []) || buttonTemplateHasInteractiveBlocks(data.blocks ?? []) || (data.items ?? []).some((item:{blocks?:FlowpressBlock[]}) => buttonTemplateHasInteractiveBlocks(item.blocks ?? []));
64
+ });
65
+ }
66
+
67
+ export function buttonTemplateControl(
68
+ template: ButtonTemplateData,
69
+ contract?: StyleflowContract,
70
+ options: ResolveDynamicStyleflowOptions = {},
71
+ ): ButtonTemplateControl | undefined {
72
+ const [root] = template.blocks;
73
+ if (template.blocks.length !== 1 || !root || root.name !== "core/group" || buttonTemplateHasInteractiveBlocks(template.blocks)) return undefined;
74
+ const attributes = (root.attributes ?? {}) as Record<string, unknown>;
75
+ const styleflowProps = resolveFlowpressBlockStyleflowProps(attributes, contract, {}, options);
76
+ const groupProps = nativeGroupProps(attributes, flowpressBlockHtmlProps(attributes), styleflowProps);
77
+ return {
78
+ controlProps: {
79
+ ...groupProps,
80
+ class: [...CONTROL_CLASSES, groupProps.class].filter(Boolean).join(" "),
81
+ },
82
+ styleflowProps,
83
+ children: root.innerBlocks ?? [],
84
+ };
85
+ }
86
+
87
+ /** Diagnostic codes worth surfacing on the element outside production. */
88
+ export function buttonTemplateDiagnosticCodes(template: ButtonTemplateData | undefined, resolvedData: unknown): string {
89
+ const own = (resolvedData as { templateDiagnostics?: ButtonTemplateDiagnostic[] } | null | undefined)
90
+ ?.templateDiagnostics ?? [];
91
+ return [...own, ...(template?.diagnostics ?? [])].map(({ code }) => code).join(" ");
92
+ }
@@ -0,0 +1,43 @@
1
+ ---
2
+ import StyleflowElement from "../StyleflowElement.astro";
3
+ import type { FlowpressBlockRendererProps } from "../../index.js";
4
+ import { nativeButtonData } from "./button.js";
5
+
6
+ const { block, htmlProps, styleflowProps } = Astro.props as FlowpressBlockRendererProps;
7
+ const button = nativeButtonData(block.resolvedData);
8
+ const resolved = typeof block.resolvedData?.empty === "boolean";
9
+ const width = Number(block.attributes.width);
10
+ const rootProps = {
11
+ ...htmlProps,
12
+ class: ["wp-block-button", htmlProps.class].filter(Boolean).join(" "),
13
+ style: [htmlProps.style, [25, 50, 75, 100].includes(width) ? `width:${width}%` : ""].filter(Boolean).join(";"),
14
+ };
15
+ const controlProps = {
16
+ ...styleflowProps,
17
+ ...(!block.attributes.layoutRole ? { layoutRole: "control" as const } : {}),
18
+ ...(!block.attributes.density ? { density: "regular" as const } : {}),
19
+ class: "wp-block-button__link wp-element-button",
20
+ title: button.title,
21
+ };
22
+ ---
23
+
24
+ {!resolved ? (
25
+ block.innerHtml ? <StyleflowElement as="div" {...htmlProps} {...styleflowProps} data-flowpress-button-legacy set:html={block.innerHtml} /> : null
26
+ ) : !button.empty ? (
27
+ <StyleflowElement as="div" {...rootProps}>
28
+ {button.tag === "button" ? (
29
+ <StyleflowElement as="button" {...controlProps} type={button.type}><Fragment set:html={button.label} /></StyleflowElement>
30
+ ) : button.href ? (
31
+ <StyleflowElement as="a" {...controlProps} href={button.href} target={button.target} rel={button.rel}>
32
+ <Fragment set:html={button.label} />
33
+ </StyleflowElement>
34
+ ) : (
35
+ <StyleflowElement as="span" {...controlProps} aria-disabled="true"><Fragment set:html={button.label} /></StyleflowElement>
36
+ )}
37
+ </StyleflowElement>
38
+ ) : null}
39
+
40
+ <style>
41
+ .wp-block-button__link { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
42
+ .wp-block-button[style*="width:"] .wp-block-button__link { width: 100%; }
43
+ </style>
@@ -1,43 +1,65 @@
1
1
  ---
2
- import StyleflowElement from "../StyleflowElement.astro";
3
- import type { FlowpressBlockRendererProps } from "../../index.js";
2
+ // Native button templates resolved by WordPress Core.
3
+ // With a template, the template root Group is the focusable control and its
4
+ // children render inside it through the synced pattern renderer. The
5
+ // instance styleflowProps are intentionally not applied: the template decides
6
+ // the look. Without a template (pilot off, no template published) the official
7
+ // native renderer runs with all props, as before the pilot.
8
+ import S from "../StyleflowElement.astro";
9
+ import NativeCoreButton from "./core-button-fallback.astro";
10
+ import SyncedPatternContent from "./SyncedPatternContent.astro";
4
11
  import { nativeButtonData } from "./button.js";
12
+ import type { FlowpressBlockRendererProps } from "../../index.js";
13
+ import {
14
+ buttonTemplateControl,
15
+ buttonTemplateData,
16
+ buttonTemplateDiagnosticCodes,
17
+ } from "./button-template.js";
5
18
 
6
- const { block, htmlProps, styleflowProps } = Astro.props as FlowpressBlockRendererProps;
19
+ const props = Astro.props as FlowpressBlockRendererProps;
20
+ const { block, contract, context, htmlProps } = props;
21
+ const template = buttonTemplateData(block.resolvedData);
7
22
  const button = nativeButtonData(block.resolvedData);
8
- const resolved = typeof block.resolvedData?.empty === "boolean";
23
+ const control = template ? buttonTemplateControl(template, contract, {strict: context.production, effectiveTone: context.inheritedTone ?? context.effectiveTone}) : undefined;
9
24
  const width = Number(block.attributes.width);
25
+ const diagnostics = context.production ? "" : buttonTemplateDiagnosticCodes(template, block.resolvedData);
10
26
  const rootProps = {
11
27
  ...htmlProps,
12
28
  class: ["wp-block-button", htmlProps.class].filter(Boolean).join(" "),
13
- style: [htmlProps.style, [25, 50, 75, 100].includes(width) ? `width:${width}%` : ""].filter(Boolean).join(";"),
14
- };
15
- const controlProps = {
16
- ...styleflowProps,
17
- ...(!block.attributes.layoutRole ? { layoutRole: "control" as const } : {}),
18
- ...(!block.attributes.density ? { density: "regular" as const } : {}),
19
- class: "wp-block-button__link wp-element-button",
20
- title: button.title,
29
+ style: [htmlProps.style, [25, 50, 75, 100].includes(width) ? `width:${width}%` : ""].filter(Boolean).join(";") || undefined,
30
+ "data-sf-button-template": context.production ? undefined : template?.slug,
31
+ "data-sf-button-template-diagnostics": diagnostics || undefined,
21
32
  };
33
+ const controlProps = { ...control?.controlProps, ...control?.styleflowProps, title: button.title };
34
+ const content = template && control
35
+ ? {
36
+ ...block,
37
+ resolvedData: {
38
+ ref: template.ref,
39
+ blocks: control.children,
40
+ blockTypes: template.blockTypes,
41
+ stylesheets: template.stylesheets,
42
+ diagnostics: template.diagnostics,
43
+ },
44
+ }
45
+ : block;
22
46
  ---
23
47
 
24
- {!resolved ? (
25
- block.innerHtml ? <StyleflowElement as="div" {...htmlProps} {...styleflowProps} data-flowpress-button-legacy set:html={block.innerHtml} /> : null
26
- ) : !button.empty ? (
27
- <StyleflowElement as="div" {...rootProps}>
48
+ {!template || !control || button.empty ? (
49
+ <NativeCoreButton {...props} />
50
+ ) : (
51
+ <S as="div" {...rootProps}>
28
52
  {button.tag === "button" ? (
29
- <StyleflowElement as="button" {...controlProps} type={button.type}><Fragment set:html={button.label} /></StyleflowElement>
53
+ <S as="button" {...controlProps} type={button.type}><SyncedPatternContent {...props} block={content} context={{...context, effectiveTone: typeof control?.styleflowProps.tone === "string" ? control.styleflowProps.tone : context.effectiveTone}} /></S>
30
54
  ) : button.href ? (
31
- <StyleflowElement as="a" {...controlProps} href={button.href} target={button.target} rel={button.rel}>
32
- <Fragment set:html={button.label} />
33
- </StyleflowElement>
55
+ <S as="a" {...controlProps} href={button.href} target={button.target} rel={button.rel}><SyncedPatternContent {...props} block={content} context={{...context, effectiveTone: typeof control?.styleflowProps.tone === "string" ? control.styleflowProps.tone : context.effectiveTone}} /></S>
34
56
  ) : (
35
- <StyleflowElement as="span" {...controlProps} aria-disabled="true"><Fragment set:html={button.label} /></StyleflowElement>
57
+ <S as="span" {...controlProps} aria-disabled="true"><SyncedPatternContent {...props} block={content} context={{...context, effectiveTone: typeof control?.styleflowProps.tone === "string" ? control.styleflowProps.tone : context.effectiveTone}} /></S>
36
58
  )}
37
- </StyleflowElement>
38
- ) : null}
59
+ </S>
60
+ )}
39
61
 
40
- <style>
41
- .wp-block-button__link { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
42
- .wp-block-button[style*="width:"] .wp-block-button__link { width: 100%; }
62
+ <style is:global>
63
+ :where(.flowpress-button-template) { text-decoration: none; }
64
+ :where(.wp-block-button[style*="width:"] > .flowpress-button-template) { width: 100%; }
43
65
  </style>
@@ -1,4 +1,6 @@
1
1
  ---
2
+ import "./group.css";
3
+ import { nativeGroupProps } from "./group.js";
2
4
  import StyleflowElement from "../StyleflowElement.astro";
3
5
  import type { FlowpressBlockRendererProps } from "../../index.js";
4
6
 
@@ -8,7 +10,7 @@ const tag = (["div", "section", "article", "header", "footer", "main", "aside",
8
10
  ? authored
9
11
  : "div");
10
12
  const rootProps = {
11
- ...htmlProps,
13
+ ...nativeGroupProps(block.attributes, htmlProps, styleflowProps),
12
14
  id: htmlProps.id || (tag === "main" ? "main-content" : undefined),
13
15
  };
14
16
  ---
@@ -1,4 +1,5 @@
1
1
  ---
2
+ import Media from "../Media.astro";
2
3
  import StyleflowElement from "../StyleflowElement.astro";
3
4
  import type { FlowpressBlockRendererProps } from "../../index.js";
4
5
 
@@ -112,9 +113,9 @@ const imageProps = {
112
113
  target={external ? "_blank" : undefined}
113
114
  rel={rel}
114
115
  >
115
- <StyleflowElement as="img" {...imageProps} />
116
+ <Media {...imageProps} />
116
117
  </StyleflowElement>
117
- ) : <StyleflowElement as="img" {...imageProps} />}
118
+ ) : <Media {...imageProps} />}
118
119
  {caption ? (
119
120
  <StyleflowElement as="figcaption" class="wp-element-caption">
120
121
  <Fragment set:html={caption} />
@@ -16,6 +16,11 @@ const overlay = ["always", "never", "mobile"].includes(authoredOverlay) ? author
16
16
  const layout = block.attributes.layout as { orientation?: string } | undefined;
17
17
  const vertical = layout?.orientation === "vertical";
18
18
  const openLabel = String(block.attributes.openMenuLabel ?? "Open menu");
19
+ const rawBreakpoint=String(block.attributes.overlayBreakpoint??"64rem");
20
+ const breakpoint=/^\d+(?:\.\d+)?rem$/.test(rawBreakpoint)&&parseFloat(rawBreakpoint)>0?rawBreakpoint:"64rem";
21
+ const instanceId=`fp-nav-${crypto.randomUUID()}`;
22
+ const mobileMax = `${Math.max(0, parseFloat(breakpoint) - 0.001).toFixed(3)}rem`;
23
+ const preupgradeCss=`#${instanceId}:not([data-ready="true"]) .site-nav__sheet{display:none} #${instanceId}:not([data-ready="true"]) [data-navigation-toggle]{display:none} @media(min-width:${breakpoint}){#${instanceId}:not([data-ready="true"]) .site-nav__list{flex-direction:row;flex-wrap:wrap}} @media(max-width:${mobileMax}){html[data-flowpress-navigation-js="true"] #${instanceId}[data-overlay="mobile"]:not([data-ready="true"]) [data-navigation-panel]{display:none} html[data-flowpress-navigation-js="true"] #${instanceId}[data-overlay="mobile"]:not([data-ready="true"]) [data-navigation-toggle]{display:block}} html[data-flowpress-navigation-js="true"] #${instanceId}[data-overlay="always"]:not([data-ready="true"]) [data-navigation-panel]{display:none} html[data-flowpress-navigation-js="true"] #${instanceId}[data-overlay="always"]:not([data-ready="true"]) [data-navigation-toggle]{display:block}`;
19
24
  const closeLabel = String(block.attributes.closeMenuLabel ?? "Close menu");
20
25
  ---
21
26
 
@@ -26,11 +31,14 @@ const closeLabel = String(block.attributes.closeMenuLabel ?? "Close menu");
26
31
  the shared navigation controller; the look in navigation.css.
27
32
  -->
28
33
  <!-- styleflow-ignore-next-line rule=sf-raw-html reason="Certified navigation custom element owns behavior without visual values" scope="framework" -->
34
+ <script is:inline>document.documentElement.dataset.flowpressNavigationJs="true";</script>
35
+ <style is:inline set:html={preupgradeCss} />
29
36
  <flowpress-navigation
37
+ id={instanceId}
30
38
  class="site-nav"
31
39
  data-overlay={overlay}
32
40
  data-orientation={vertical ? "vertical" : "horizontal"}
33
- data-overlay-breakpoint={String(block.attributes.overlayBreakpoint ?? "64rem")}
41
+ data-overlay-breakpoint={breakpoint}
34
42
  data-open-label={openLabel}
35
43
  data-close-label={closeLabel}
36
44
  >
@@ -49,7 +57,6 @@ const closeLabel = String(block.attributes.closeMenuLabel ?? "Close menu");
49
57
  density="compact"
50
58
  interactivePriority="tertiary"
51
59
  class="site-nav__toggle sf-motion-menu-toggle"
52
- hidden
53
60
  >
54
61
  <StyleflowElement as="span" class="sr-only">{openLabel}</StyleflowElement>
55
62
  <StyleflowElement as="span" aria-hidden="true" class="sf-motion-menu-toggle__icon relative block size-5">
@@ -1,4 +1,5 @@
1
1
  ---
2
+ import Media from "../Media.astro";
2
3
  import StyleflowElement from "../StyleflowElement.astro";
3
4
  import type { FlowpressBlockRendererProps } from "../../index.js";
4
5
  import { classNames, externalRel, text, type ResolvedImage } from "./query-loop.js";
@@ -31,7 +32,7 @@ const imageProps = {
31
32
  {src ? (
32
33
  <StyleflowElement as="figure" {...rootProps} {...styleflowProps}>
33
34
  {href
34
- ? <StyleflowElement as="a" href={href} target={attributes.linkTarget === "_blank" ? "_blank" : undefined} rel={externalRel(attributes.linkTarget, attributes.rel)}><StyleflowElement as="img" {...imageProps} /></StyleflowElement>
35
- : <StyleflowElement as="img" {...imageProps} />}
35
+ ? <StyleflowElement as="a" href={href} target={attributes.linkTarget === "_blank" ? "_blank" : undefined} rel={externalRel(attributes.linkTarget, attributes.rel)}><Media {...imageProps} /></StyleflowElement>
36
+ : <Media {...imageProps} />}
36
37
  </StyleflowElement>
37
38
  ) : null}
@@ -0,0 +1,30 @@
1
+ ---
2
+ import StyleflowElement from "../StyleflowElement.astro";
3
+ import type { FlowpressBlockRendererProps } from "../../index.js";
4
+ import ResolvedBlocks from "./ResolvedBlocks.astro";
5
+ import { classNames, type LoopTemplateData } from "./query-loop.js";
6
+ import { bleedClasses, gridClasses, isGrid, spanClasses, usedSpanClasses } from "./grid.js";
7
+
8
+ // core/post-template: one resolved copy of the template per queried post.
9
+ const props = Astro.props as FlowpressBlockRendererProps;
10
+ const { block, htmlProps, styleflowProps } = props;
11
+ const data = (block.resolvedData ?? {}) as LoopTemplateData;
12
+ const items = data.items ?? [];
13
+ const grid = isGrid(block.name, block.attributes);
14
+ const childAttributes = items.map((item) => item.blocks?.[0]?.attributes || {});
15
+ const bleed = grid ? bleedClasses(block.attributes, childAttributes) : [];
16
+ const rootProps = {
17
+ ...htmlProps,
18
+ class: classNames("wp-block-post-template", grid ? "is-layout-grid" : "", htmlProps.class, grid ? gridClasses(block.attributes).join(" ") : ""),
19
+ };
20
+ ---
21
+
22
+ {items.length > 0 ? (
23
+ <StyleflowElement as="ul" {...rootProps} {...styleflowProps}>
24
+ {items.map((item, index) => (
25
+ <StyleflowElement as="li" class={classNames("wp-block-post", `post-${item.id}`, item.postType ? `type-${item.postType}` : "", grid ? [...spanClasses((childAttributes[index] ?? {})), ...usedSpanClasses(block.attributes, (childAttributes[index] ?? {})), ...(bleed[index] ?? [])].join(" ") : "")}>
26
+ <ResolvedBlocks {...props} blocks={item.blocks} pass={data} renderPassOutput={index === 0} />
27
+ </StyleflowElement>
28
+ ))}
29
+ </StyleflowElement>
30
+ ) : null}
@@ -1,30 +1,23 @@
1
1
  ---
2
- import StyleflowElement from "../StyleflowElement.astro";
3
- import type { FlowpressBlockRendererProps } from "../../index.js";
2
+ import DefaultBlockAdapter from "./core-post-template-fallback.astro";
3
+ // Query Loop carousel with the shared static fallback.
4
4
  import ResolvedBlocks from "./ResolvedBlocks.astro";
5
- import { classNames, type LoopTemplateData } from "./query-loop.js";
6
- import { bleedClasses, gridClasses, isGrid, spanClasses, usedSpanClasses } from "./grid.js";
5
+ import type { FlowpressBlockRendererProps } from "../../index.js";
6
+ import { queryCarouselBlocks, type QueryCarouselData } from "./query-carousel.js";
7
7
 
8
- // core/post-template: one resolved copy of the template per queried post.
9
8
  const props = Astro.props as FlowpressBlockRendererProps;
10
- const { block, htmlProps, styleflowProps } = props;
11
- const data = (block.resolvedData ?? {}) as LoopTemplateData;
12
- const items = data.items ?? [];
13
- const grid = isGrid(block.name, block.attributes);
14
- const childAttributes = items.map((item) => item.blocks?.[0]?.attributes || {});
15
- const bleed = grid ? bleedClasses(block.attributes, childAttributes) : [];
16
- const rootProps = {
17
- ...htmlProps,
18
- class: classNames("wp-block-post-template", grid ? "is-layout-grid" : "", htmlProps.class, grid ? gridClasses(block.attributes).join(" ") : ""),
19
- };
9
+ const blocks = queryCarouselBlocks(props);
10
+ const pass = (props.block.resolvedData ?? {}) as QueryCarouselData;
20
11
  ---
21
12
 
22
- {items.length > 0 ? (
23
- <StyleflowElement as="ul" {...rootProps} {...styleflowProps}>
24
- {items.map((item, index) => (
25
- <StyleflowElement as="li" class={classNames("wp-block-post", `post-${item.id}`, item.postType ? `type-${item.postType}` : "", grid ? [...spanClasses((childAttributes[index] ?? {})), ...usedSpanClasses(block.attributes, (childAttributes[index] ?? {})), ...(bleed[index] ?? [])].join(" ") : "")}>
26
- <ResolvedBlocks {...props} blocks={item.blocks} pass={data} renderPassOutput={index === 0} />
27
- </StyleflowElement>
28
- ))}
29
- </StyleflowElement>
30
- ) : null}
13
+ {blocks === undefined ? (
14
+ <DefaultBlockAdapter {...props} />
15
+ ) : (
16
+ <ResolvedBlocks {...props} blocks={blocks} pass={pass} />
17
+ )}
18
+
19
+ <style is:global>
20
+ /* Splide core hides its root until mount. Keep the shared static grid
21
+ readable when JavaScript is unavailable or initialization fails. */
22
+ .flowpress-query-carousel:not(.is-initialized) { visibility: visible; }
23
+ </style>
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=grid-bleed.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"grid-bleed.d.ts","sourceRoot":"","sources":["../../../src/astro/native/grid-bleed.js"],"names":[],"mappings":""}
@@ -52,14 +52,30 @@
52
52
  };
53
53
 
54
54
  const install = (doc) => {
55
- if (!doc?.body || installed.has(doc)) return;
55
+ if (!doc?.body || !doc.defaultView || installed.has(doc)) return;
56
56
  installed.add(doc);
57
- let scheduled = false;
57
+ const view = doc.defaultView;
58
+ let frame = 0;
59
+ let active = true;
60
+ const cleanup = () => {
61
+ if (!active) return;
62
+ active = false;
63
+ if (frame) view.cancelAnimationFrame(frame);
64
+ frame = 0;
65
+ observer.disconnect();
66
+ resizeObserver.disconnect();
67
+ resizeObservers.delete(doc);
68
+ resizeObserved.delete(doc);
69
+ view.removeEventListener("resize", schedule);
70
+ view.removeEventListener("pagehide", cleanup);
71
+ };
58
72
  const schedule = () => {
59
- if (scheduled) return;
60
- scheduled = true;
61
- doc.defaultView.requestAnimationFrame(() => {
62
- scheduled = false;
73
+ if (!active) return;
74
+ if (!doc.defaultView) { cleanup(); return; }
75
+ if (frame) return;
76
+ frame = view.requestAnimationFrame(() => {
77
+ frame = 0;
78
+ if (!active || !doc.defaultView) { cleanup(); return; }
63
79
  update(doc);
64
80
  });
65
81
  };
@@ -73,7 +89,8 @@
73
89
  }
74
90
  });
75
91
  observer.observe(doc.body, { childList: true, subtree: true, attributes: true, attributeFilter: ["class", "data-layout-role", "data-layout-density", "dir"] });
76
- doc.defaultView.addEventListener("resize", schedule, { passive: true });
92
+ view.addEventListener("resize", schedule, { passive: true });
93
+ view.addEventListener("pagehide", cleanup, { once: true });
77
94
  const resizeObserver = new ResizeObserver(schedule);
78
95
  resizeObservers.set(doc, resizeObserver);
79
96
  resizeObserved.set(doc, new WeakSet());
@@ -0,0 +1 @@
1
+ {"version":3,"file":"grid-bleed.js","sourceRoot":"","sources":["../../../src/astro/native/grid-bleed.js"],"names":[],"mappings":"AAAA,sFAAsF;AACtF,CAAC;IACC,MAAM,WAAW,GAAG,CAAC,MAAM,EAAE,IAAI,EAAE,IAAI,EA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C;gBAC7C,CAAC;YACH,CAAC;YAAC,MAAM,CAAC;gBACP,gEAAgE;YAClE,CAAC;QACH,CAAC;IACH,CAAC,CAAC;IAEF,MAAM,CAAC,wBAAwB,GAAG,MAAM,CAAC;IACzC,IAAI,QAAQ,CAAC,UAAU,KAAK,SAAS,EAAE,CAAC;QACtC,QAAQ,CAAC,gBAAgB,CAAC,kBAAkB,EAAE,aAAa,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC;IAC/E,CAAC;SAAM,CAAC;QACN,aAAa,EAAE,CAAC;IAClB,CAAC;IACD,IAAI,gBAAgB,CAAC,aAAa,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,eAAe,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC;AAC5G,CAAC,CAAC,EAAE,CAAC","sourcesContent":["/* Exact logical viewport offset for grid items inside nested Styleflow containers. */\n(function () {\n const breakpoints = [\"base\", \"sm\", \"md\", \"lg\", \"xl\", \"2xl\"];\n const thresholds = [0, 640, 768, 1024, 1280, 1536];\n const installed = new WeakSet();\n const resizeObservers = new WeakMap();\n const resizeObserved = new WeakMap();\n\n const setOffset = (element, property, value) => {\n if (element.style.getPropertyValue(property) !== value) {\n element.style.setProperty(property, value);\n }\n };\n\n const update = (doc) => {\n if (!doc?.defaultView) return;\n const win = doc.defaultView;\n const viewportWidth = doc.documentElement.clientWidth;\n const breakpoint = breakpoints.reduce((current, name, index) =>\n win.innerWidth >= thresholds[index] ? name : current, \"base\");\n for (const item of doc.querySelectorAll(\".fp-grid > .fp-bleed-managed\")) {\n const grid = item.parentElement;\n const container = grid.closest('[data-layout-role=\"container\"], .sf-container');\n const resizeObserver = resizeObservers.get(doc);\n const observed = resizeObserved.get(doc);\n for (const element of [grid, container]) {\n if (element && !observed?.has(element)) {\n resizeObserver?.observe(element);\n observed?.add(element);\n }\n }\n if (!container) {\n item.style.removeProperty(\"--fp-bleed-start-offset\");\n item.style.removeProperty(\"--fp-bleed-end-offset\");\n continue;\n }\n const active = item.classList.contains(`fp-bleed-${breakpoint}-start`) ||\n item.classList.contains(`fp-bleed-${breakpoint}-end`);\n if (!active) continue;\n const rect = grid.getBoundingClientRect();\n const style = win.getComputedStyle(grid);\n const rtl = style.direction === \"rtl\";\n const insetStart = (Number.parseFloat(style.paddingInlineStart) || 0) +\n (Number.parseFloat(style.borderInlineStartWidth) || 0);\n const insetEnd = (Number.parseFloat(style.paddingInlineEnd) || 0) +\n (Number.parseFloat(style.borderInlineEndWidth) || 0);\n const start = rtl ? viewportWidth - rect.right + insetStart : rect.left + insetStart;\n const end = rtl ? rect.left + insetEnd : viewportWidth - rect.right + insetEnd;\n setOffset(item, \"--fp-bleed-start-offset\", `${-Math.max(0, start)}px`);\n setOffset(item, \"--fp-bleed-end-offset\", `${-Math.max(0, end)}px`);\n }\n };\n\n const install = (doc) => {\n if (!doc?.body || !doc.defaultView || installed.has(doc)) return;\n installed.add(doc);\n const view = doc.defaultView;\n let frame = 0;\n let active = true;\n const cleanup = () => {\n if (!active) return;\n active = false;\n if (frame) view.cancelAnimationFrame(frame);\n frame = 0;\n observer.disconnect();\n resizeObserver.disconnect();\n resizeObservers.delete(doc);\n resizeObserved.delete(doc);\n view.removeEventListener(\"resize\", schedule);\n view.removeEventListener(\"pagehide\", cleanup);\n };\n const schedule = () => {\n if (!active) return;\n if (!doc.defaultView) { cleanup(); return; }\n if (frame) return;\n frame = view.requestAnimationFrame(() => {\n frame = 0;\n if (!active || !doc.defaultView) { cleanup(); return; }\n update(doc);\n });\n };\n const observer = new MutationObserver((mutations) => {\n if (mutations.some((mutation) => mutation.type === \"childList\" ||\n (mutation.type === \"attributes\" &&\n (mutation.target.classList.contains(\"fp-grid\") ||\n mutation.target.classList.contains(\"fp-bleed-managed\") ||\n [\"data-layout-role\", \"data-layout-density\", \"dir\"].includes(mutation.attributeName))))) {\n schedule();\n }\n });\n observer.observe(doc.body, { childList: true, subtree: true, attributes: true, attributeFilter: [\"class\", \"data-layout-role\", \"data-layout-density\", \"dir\"] });\n view.addEventListener(\"resize\", schedule, { passive: true });\n view.addEventListener(\"pagehide\", cleanup, { once: true });\n const resizeObserver = new ResizeObserver(schedule);\n resizeObservers.set(doc, resizeObserver);\n resizeObserved.set(doc, new WeakSet());\n resizeObserver.observe(doc.documentElement);\n update(doc);\n };\n\n const installCanvas = () => {\n install(document);\n for (const frame of document.querySelectorAll('iframe[name=\"editor-canvas\"]')) {\n try {\n install(frame.contentDocument);\n if (!frame.dataset.fpGridBleedListener) {\n frame.addEventListener(\"load\", installCanvas);\n frame.dataset.fpGridBleedListener = \"true\";\n }\n } catch {\n // The WordPress canvas is same-origin; ignore unrelated frames.\n }\n }\n };\n\n window.flowpressGridBleedUpdate = update;\n if (document.readyState === \"loading\") {\n document.addEventListener(\"DOMContentLoaded\", installCanvas, { once: true });\n } else {\n installCanvas();\n }\n new MutationObserver(installCanvas).observe(document.documentElement, { childList: true, subtree: true });\n})();\n"]}
@@ -0,0 +1,36 @@
1
+ /* Native layout selectors have zero specificity. Authored classes win.
2
+ StyleFlow recipes belong in the styleflow layer; utilities are unlayered. */
3
+ :where(.fp-native-group) { gap: var(--fp-group-default-gap, normal); }
4
+ /* No gap also cancels Gutenberg layout rules and inline gaps. */
5
+ .fp-native-group[data-sf-no-gap="true"] { gap: 0 !important; }
6
+ :where(.fp-native-group:not([data-fp-group-layout="grid"])) { display: flex; flex-direction: column; flex-wrap: nowrap; }
7
+ :where(.fp-native-group[data-fp-group-layout="horizontal"]) { flex-direction: row; align-items: center; }
8
+ :where(.fp-native-group[data-fp-group-layout="vertical"]) { align-items: flex-start; }
9
+ :where(.fp-native-group[data-fp-group-wrap="wrap"]) { flex-wrap: wrap; }
10
+ :where(.fp-native-group[data-fp-group-wrap="nowrap"]) { flex-wrap: nowrap; }
11
+ :where(.fp-native-group[data-fp-group-layout="horizontal"][data-fp-group-justify="left"]) { justify-content: flex-start; }
12
+ :where(.fp-native-group[data-fp-group-layout="horizontal"][data-fp-group-justify="center"]) { justify-content: center; }
13
+ :where(.fp-native-group[data-fp-group-layout="horizontal"][data-fp-group-justify="right"]) { justify-content: flex-end; }
14
+ :where(.fp-native-group[data-fp-group-layout="horizontal"][data-fp-group-justify="space-between"]) { justify-content: space-between; }
15
+ :where(.fp-native-group[data-fp-group-layout="horizontal"][data-fp-group-align="top"]) { align-items: flex-start; }
16
+ :where(.fp-native-group[data-fp-group-layout="horizontal"][data-fp-group-align="center"]) { align-items: center; }
17
+ :where(.fp-native-group[data-fp-group-layout="horizontal"][data-fp-group-align="bottom"]) { align-items: flex-end; }
18
+ :where(.fp-native-group[data-fp-group-layout="horizontal"][data-fp-group-align="stretch"]) { align-items: stretch; }
19
+ :where(.fp-native-group[data-fp-group-layout="vertical"][data-fp-group-justify="left"]) { align-items: flex-start; }
20
+ :where(.fp-native-group[data-fp-group-layout="vertical"][data-fp-group-justify="center"]) { align-items: center; }
21
+ :where(.fp-native-group[data-fp-group-layout="vertical"][data-fp-group-justify="right"]) { align-items: flex-end; }
22
+ :where(.fp-native-group[data-fp-group-layout="vertical"][data-fp-group-justify="stretch"]) { align-items: stretch; }
23
+ :where(.fp-native-group[data-fp-group-layout="vertical"][data-fp-group-align="top"]) { justify-content: flex-start; }
24
+ :where(.fp-native-group[data-fp-group-layout="vertical"][data-fp-group-align="center"]) { justify-content: center; }
25
+ :where(.fp-native-group[data-fp-group-layout="vertical"][data-fp-group-align="bottom"]) { justify-content: flex-end; }
26
+ :where(.fp-native-group[data-fp-group-layout="vertical"][data-fp-group-align="space-between"]) { justify-content: space-between; }
27
+ :where(.fp-native-group[data-fp-group-row-gap="true"]) { row-gap: var(--fp-group-row-gap); }
28
+ :where(.fp-native-group[data-fp-group-column-gap="true"]) { column-gap: var(--fp-group-column-gap); }
29
+ :where(.fp-native-group[data-fp-group-layout="constrained"]) > :where(:not(.alignwide):not(.alignfull)) { max-width: var(--fp-group-content-size, var(--wp--style--global--content-size, revert-layer)); }
30
+ :where(.fp-native-group[data-fp-group-layout="constrained"]) > :where(.alignwide) { max-width: var(--fp-group-wide-size, var(--wp--style--global--wide-size, revert-layer)); }
31
+
32
+ :where([data-fp-flex-size="fill"]) { flex-grow: 1; }
33
+ :where([data-fp-flex-size="fixed"]) { flex-basis: var(--fp-flex-basis, auto); box-sizing: border-box; }
34
+ :where(.fp-native-group[data-fp-group-layout="constrained"][data-fp-group-justify="left"], .fp-native-group[data-fp-group-layout="default"][data-fp-group-justify="left"]) { align-items: flex-start; }
35
+ :where(.fp-native-group[data-fp-group-layout="constrained"][data-fp-group-justify="center"], .fp-native-group[data-fp-group-layout="default"][data-fp-group-justify="center"]) { align-items: center; }
36
+ :where(.fp-native-group[data-fp-group-layout="constrained"][data-fp-group-justify="right"], .fp-native-group[data-fp-group-layout="default"][data-fp-group-justify="right"]) { align-items: flex-end; }
@@ -0,0 +1,15 @@
1
+ /** Gutenberg Group, Row and Stack use the same core/group block. */
2
+ export declare function groupLength(value: unknown): string | undefined;
3
+ export declare function nativeGroupProps(attributes?: Record<string, any>, htmlProps?: Record<string, any>, styleflowProps?: Record<string, any>): {
4
+ class: string;
5
+ "data-fp-group-layout": any;
6
+ "data-fp-group-justify": any;
7
+ "data-fp-group-align": any;
8
+ "data-fp-group-wrap": string | undefined;
9
+ "data-fp-group-row-gap": string | undefined;
10
+ "data-fp-group-column-gap": string | undefined;
11
+ style: string | undefined;
12
+ };
13
+ /** Native sizing controls on children of a flex Group. */
14
+ export declare function nativeFlexItemProps(attributes: Record<string, any>, htmlProps: Record<string, any>): Record<string, any>;
15
+ //# sourceMappingURL=group.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"group.d.ts","sourceRoot":"","sources":["../../../src/astro/native/group.ts"],"names":[],"mappings":"AAAA,oEAAoE;AACpE,wBAAgB,WAAW,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAU9D;AAED,wBAAgB,gBAAgB,CAAC,UAAU,GAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAM,EAAE,SAAS,GAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAM,EAAE,cAAc,GAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAM;;;;;;;;;EAiCnJ;AAED,0DAA0D;AAC1D,wBAAgB,mBAAmB,CAAC,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,uBAWlG"}