@styleflow.app/flowpress-astro-core 1.0.0-beta.27 → 1.0.0-beta.29

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 (41) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist/astro/BaseLayout.astro +7 -6
  3. package/dist/astro/GutenbergRenderer.astro +11 -10
  4. package/dist/astro/StyleflowElement.astro +4 -0
  5. package/dist/astro/blocks/FormBlock.astro +5 -4
  6. package/dist/astro/blocks/ListItemFallback.astro +5 -4
  7. package/dist/astro/blocks/NumberSpinnerBlock.astro +3 -2
  8. package/dist/astro/blocks/TextBlock.astro +2 -1
  9. package/dist/astro/native/CustomFieldValue.astro +6 -5
  10. package/dist/astro/native/TermFieldValue.astro +3 -2
  11. package/dist/astro/native/Timeline.astro +5 -4
  12. package/dist/astro/native/core-home-link.astro +2 -1
  13. package/dist/astro/native/core-navigation-link.astro +2 -1
  14. package/dist/astro/native/core-navigation-submenu.astro +2 -1
  15. package/dist/astro/native/core-page-list-data-item.astro +2 -1
  16. package/dist/astro/native/core-page-list-item.astro +2 -1
  17. package/dist/astro/native/core-post-date.astro +2 -1
  18. package/dist/astro/native/core-post-excerpt.astro +3 -2
  19. package/dist/astro/native/core-post-terms.astro +6 -5
  20. package/dist/astro/native/core-separator.astro +20 -0
  21. package/dist/astro/native/core-site-title.astro +2 -1
  22. package/dist/astro/native/core-term-name.astro +2 -1
  23. package/dist/astro/native/registry.d.ts.map +1 -1
  24. package/dist/astro/native/registry.js +2 -0
  25. package/dist/astro/native/registry.js.map +1 -1
  26. package/dist/astro/native/registry.ts +2 -0
  27. package/dist/astro/preferences/AccessibilityPanel.astro +5 -4
  28. package/dist/default-blocks.d.ts +1 -1
  29. package/dist/default-blocks.d.ts.map +1 -1
  30. package/dist/default-blocks.js +2 -1
  31. package/dist/default-blocks.js.map +1 -1
  32. package/dist/index.d.ts +1 -0
  33. package/dist/index.d.ts.map +1 -1
  34. package/dist/index.js +1 -0
  35. package/dist/index.js.map +1 -1
  36. package/dist/text.d.ts +3 -0
  37. package/dist/text.d.ts.map +1 -0
  38. package/dist/text.js +6 -0
  39. package/dist/text.js.map +1 -0
  40. package/dist/tsconfig.tsbuildinfo +1 -1
  41. package/package.json +3 -2
package/CHANGELOG.md CHANGED
@@ -1,5 +1,16 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.0.0-beta.29 — 2026-10-08
4
+
5
+ - Extend the escaped plain-text entity decoding to buttons, cards, spinner segments, excerpts, timeline, list fallbacks, forms and accessibility labels. Keep RichText fragments unchanged.
6
+ - [Canonical verification](https://github.com/StyleFlow-App/styleflow-docs/blob/main/dev/rapporti/2026-10-08-tipografia-tag-mapping.md).
7
+
8
+ ## 1.0.0-beta.28 — 2026-10-08
9
+
10
+ - Decode WordPress entities once for escaped plain text across site titles, navigation, terms, custom fields and metadata.
11
+ - Add the official core/separator adapter with Styleflow props and a line painted from foreground via currentColor; preserve wide and dots variants.
12
+ - [Canonical verification](https://github.com/StyleFlow-App/styleflow-docs/blob/main/dev/rapporti/2026-10-08-tipografia-tag-mapping.md).
13
+
3
14
  ## 1.0.0-beta.27 — 2026-10-08
4
15
 
5
16
  - Render Gutenberg defaults through HTML tag mapping without text data attributes across official blocks, native adapters and independent Number Spinner segments. Preserve explicit typography overrides.
@@ -1,4 +1,5 @@
1
1
  ---
2
+ import { decodeFlowpressText } from "../text.js";
2
3
  import type { SfSeo } from "../types.js";
3
4
  import StyleflowElement from "./StyleflowElement.astro";
4
5
  import ThemeRuntime from "./ThemeRuntime.astro";
@@ -28,8 +29,8 @@ const defaultTheme = siteDesign?.defaults.theme || theme;
28
29
  const documentAttributes = siteDesign ? flowpressSiteDesignAttributes(siteDesign) : {
29
30
  html: defaultTheme ? { "data-styleflow-theme": defaultTheme } : {}, body: {}
30
31
  };
31
- const title = seo?.title || siteName;
32
- const description = seo?.description || "";
32
+ const title = decodeFlowpressText(seo?.title || siteName);
33
+ const description = decodeFlowpressText(seo?.description);
33
34
  const robots = seo?.robots?.join(",") || "";
34
35
  const jsonLd = seo?.jsonLd ? JSON.stringify(seo.jsonLd) : null;
35
36
  ---
@@ -48,14 +49,14 @@ const jsonLd = seo?.jsonLd ? JSON.stringify(seo.jsonLd) : null;
48
49
  {seo?.hreflang?.map((alternate) => (
49
50
  <link rel="alternate" hreflang={alternate.locale} href={alternate.url} />
50
51
  ))}
51
- {seo?.openGraph?.title && <meta property="og:title" content={seo.openGraph.title} />}
52
- {seo?.openGraph?.description && <meta property="og:description" content={seo.openGraph.description} />}
52
+ {seo?.openGraph?.title && <meta property="og:title" content={decodeFlowpressText(seo.openGraph.title)} />}
53
+ {seo?.openGraph?.description && <meta property="og:description" content={decodeFlowpressText(seo.openGraph.description)} />}
53
54
  {seo?.canonicalUrl && <meta property="og:url" content={seo.canonicalUrl} />}
54
55
  {seo?.openGraph?.image?.url && <meta property="og:image" content={seo.openGraph.image.url} />}
55
56
  {seo?.openGraph?.image?.alt && <meta property="og:image:alt" content={seo.openGraph.image.alt} />}
56
57
  <meta name="twitter:card" content={seo?.twitter?.image?.url ? "summary_large_image" : "summary"} />
57
- {seo?.twitter?.title && <meta name="twitter:title" content={seo.twitter.title} />}
58
- {seo?.twitter?.description && <meta name="twitter:description" content={seo.twitter.description} />}
58
+ {seo?.twitter?.title && <meta name="twitter:title" content={decodeFlowpressText(seo.twitter.title)} />}
59
+ {seo?.twitter?.description && <meta name="twitter:description" content={decodeFlowpressText(seo.twitter.description)} />}
59
60
  {seo?.twitter?.image?.url && <meta name="twitter:image" content={seo.twitter.image.url} />}
60
61
  {seo?.twitter?.image?.alt && <meta name="twitter:image:alt" content={seo.twitter.image.alt} />}
61
62
  {jsonLd && <script type="application/ld+json" set:html={jsonLd} />}
@@ -1,4 +1,5 @@
1
1
  ---
2
+ import { decodeFlowpressText } from "../text.js";
2
3
  import "./native/grid.css";
3
4
  import StyleflowElement from "./StyleflowElement.astro";
4
5
  import type {
@@ -326,7 +327,7 @@ function nestedRendererProps(nextParentBlockName: string) {
326
327
  const buttonContent = (
327
328
  <>
328
329
  {iconPosition === "before" ? buttonIcon : null}
329
- {textValue(block, "label")}
330
+ {decodeFlowpressText(textValue(block, "label"))}
330
331
  {iconPosition === "after" ? buttonIcon : null}
331
332
  </>
332
333
  );
@@ -369,7 +370,7 @@ function nestedRendererProps(nextParentBlockName: string) {
369
370
  name={icon}
370
371
  display={display}
371
372
  size={size}
372
- label={String(block.attributes.label ?? "").trim() || undefined}
373
+ label={decodeFlowpressText(block.attributes.label).trim() || undefined}
373
374
  {...iconSemantic}
374
375
  {...htmlAttributes}
375
376
  />
@@ -399,7 +400,7 @@ function nestedRendererProps(nextParentBlockName: string) {
399
400
  {images.map((image) => image.url ? (
400
401
  <img
401
402
  src={String(image.url)}
402
- alt={String(image.alt ?? "")}
403
+ alt={decodeFlowpressText(image.alt)}
403
404
  loading="lazy"
404
405
  decoding="async"
405
406
  />
@@ -431,7 +432,7 @@ function nestedRendererProps(nextParentBlockName: string) {
431
432
  <StyleflowElement as="div" {...semantic} {...htmlAttributes}>
432
433
  <iframe
433
434
  src={embed}
434
- title={String(block.attributes.title ?? "YouTube video")}
435
+ title={decodeFlowpressText(block.attributes.title ?? "YouTube video")}
435
436
  loading="lazy"
436
437
  allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
437
438
  allowfullscreen
@@ -443,7 +444,7 @@ function nestedRendererProps(nextParentBlockName: string) {
443
444
  if (name === "chip") {
444
445
  return (
445
446
  <StyleflowElement as="span" {...semantic} {...htmlAttributes}>
446
- {textValue(block, "label")}
447
+ {decodeFlowpressText(textValue(block, "label"))}
447
448
  </StyleflowElement>
448
449
  );
449
450
  }
@@ -454,10 +455,10 @@ function nestedRendererProps(nextParentBlockName: string) {
454
455
  return (
455
456
  <StyleflowElement as="article" {...semantic} {...htmlAttributes}>
456
457
  {media.url && (
457
- <img src={String(media.url)} alt={String(media.alt ?? "")} loading="lazy" />
458
+ <img src={String(media.url)} alt={decodeFlowpressText(media.alt)} loading="lazy" />
458
459
  )}
459
- {block.attributes.title && <StyleflowElement as="h3">{String(block.attributes.title)}</StyleflowElement>}
460
- {block.attributes.text && <StyleflowElement as="p">{String(block.attributes.text)}</StyleflowElement>}
460
+ {block.attributes.title && <StyleflowElement as="h3">{decodeFlowpressText(block.attributes.title)}</StyleflowElement>}
461
+ {block.attributes.text && <StyleflowElement as="p">{decodeFlowpressText(block.attributes.text)}</StyleflowElement>}
461
462
  {href && <StyleflowElement as="a" href={href}>Scopri</StyleflowElement>}
462
463
  </StyleflowElement>
463
464
  );
@@ -521,7 +522,7 @@ function nestedRendererProps(nextParentBlockName: string) {
521
522
  return (
522
523
  <StyleflowElement as="div" {...semantic} {...htmlAttributes}>
523
524
  <details>
524
- <summary>{String(block.attributes.title ?? "")}</summary>
525
+ <summary>{decodeFlowpressText(block.attributes.title)}</summary>
525
526
  <Astro.self descriptorIndex={descriptors}
526
527
  blocks={children}
527
528
  contract={contract}
@@ -567,7 +568,7 @@ function nestedRendererProps(nextParentBlockName: string) {
567
568
  href={`https://www.openstreetmap.org/search?query=${encodeURIComponent(query)}`}
568
569
  rel="noreferrer"
569
570
  >
570
- {address || query}
571
+ {decodeFlowpressText(address || query)}
571
572
  </StyleflowElement>
572
573
  </StyleflowElement>
573
574
  ) : null;
@@ -1,4 +1,5 @@
1
1
  ---
2
+ import { decodeFlowpressText } from "../text.js";
2
3
  import { resolveStyleFlowAstroPrimitive } from "@styleflow.app/astro";
3
4
 
4
5
  interface Props {
@@ -9,6 +10,9 @@ const props = { ...Astro.props } as Props;
9
10
  for (const key of ["ty", "v", "w"]) {
10
11
  if (props[key] === "" || props[key] === null) delete props[key];
11
12
  }
13
+ for (const name of ["alt", "title", "aria-label", "placeholder"]) {
14
+ if (typeof props[name] === "string") props[name] = decodeFlowpressText(props[name]);
15
+ }
12
16
  const { tag, attributes } = resolveStyleFlowAstroPrimitive(props);
13
17
  if (["ty", "v", "w"].every((key) => props[key] === undefined)) {
14
18
  for (const name of ["type", "variant", "weight", "style"]) delete attributes[`data-text-${name}`];
@@ -1,4 +1,5 @@
1
1
  ---
2
+ import { decodeFlowpressText } from "../../text.js";
2
3
  import type { HTMLAttributes } from "astro/types";
3
4
  type HTMLInputTypeAttribute = HTMLAttributes<"input">["type"];
4
5
  import StyleflowElement from "../StyleflowElement.astro";
@@ -37,7 +38,7 @@ const labelFor = (field: FormField): string => field.name
37
38
  .replace(/[-_]+/g, " ")
38
39
  .replace(/\b\w/g, (letter) => letter.toUpperCase());
39
40
  const optionLabel = (field: FormField, index: number): string =>
40
- field.labels?.[index] || field.values?.[index] || "";
41
+ decodeFlowpressText(field.labels?.[index] || field.values?.[index] || "");
41
42
  ---
42
43
 
43
44
  {schema?.available ? (
@@ -45,13 +46,13 @@ const optionLabel = (field: FormField, index: number): string =>
45
46
  <flowpress-cf7-form>
46
47
  <form action={schema.submitUrl} method="post" enctype="multipart/form-data" novalidate>
47
48
  {block.attributes.title || schema.title ? (
48
- <StyleflowElement as="h2">{String(block.attributes.title || schema.title)}</StyleflowElement>
49
+ <StyleflowElement as="h2">{decodeFlowpressText(block.attributes.title || schema.title)}</StyleflowElement>
49
50
  ) : null}
50
51
  {schema.fields.map((field) => {
51
52
  if (field.type === "submit") {
52
53
  return (
53
54
  <button type="submit">
54
- {field.values?.[0] || "Invia"}
55
+ {decodeFlowpressText(field.values?.[0] || "Invia")}
55
56
  </button>
56
57
  );
57
58
  }
@@ -81,7 +82,7 @@ const optionLabel = (field: FormField, index: number): string =>
81
82
  return (
82
83
  <label>
83
84
  <input type="checkbox" name={field.name} value="1" required={field.required} />
84
- {field.values?.[0] || labelFor(field)}
85
+ {decodeFlowpressText(field.values?.[0] || labelFor(field))}
85
86
  <span data-field-error={field.name}></span>
86
87
  </label>
87
88
  );
@@ -1,4 +1,5 @@
1
1
  ---
2
+ import { decodeFlowpressText } from "../../text.js";
2
3
  import StyleflowElement from "../StyleflowElement.astro";
3
4
  import { flowpressLinkHref } from "../../links.js";
4
5
 
@@ -16,15 +17,15 @@ const href = flowpressLinkHref(item.uri);
16
17
  {image.url ? (
17
18
  <img
18
19
  src={String(image.url)}
19
- alt={String(image.alt ?? "")}
20
+ alt={decodeFlowpressText(image.alt)}
20
21
  loading="lazy"
21
22
  decoding="async"
22
23
  />
23
24
  ) : null}
24
25
  {href ? (
25
- <StyleflowElement as="a" href={href}>{String(item.title ?? "")}</StyleflowElement>
26
+ <StyleflowElement as="a" href={href}>{decodeFlowpressText(item.title)}</StyleflowElement>
26
27
  ) : (
27
- <StyleflowElement as="span">{String(item.title ?? "")}</StyleflowElement>
28
+ <StyleflowElement as="span">{decodeFlowpressText(item.title)}</StyleflowElement>
28
29
  )}
29
- {item.excerpt ? <StyleflowElement as="p">{String(item.excerpt)}</StyleflowElement> : null}
30
+ {item.excerpt ? <StyleflowElement as="p">{decodeFlowpressText(item.excerpt)}</StyleflowElement> : null}
30
31
  {item.priceHtml ? <StyleflowElement as="div" set:html={String(item.priceHtml)} /> : null}
@@ -1,4 +1,5 @@
1
1
  ---
2
+ import { decodeFlowpressText } from "../../text.js";
2
3
  import StyleflowElement from "../StyleflowElement.astro";
3
4
  import {
4
5
  clampSpinnerDuration,
@@ -21,8 +22,8 @@ interface Props {
21
22
 
22
23
  const { block, contract } = Astro.props;
23
24
  const attributes = block.attributes;
24
- const prefix = String(attributes.prefix ?? "");
25
- const suffix = String(attributes.suffix ?? "");
25
+ const prefix = decodeFlowpressText(attributes.prefix);
26
+ const suffix = decodeFlowpressText(attributes.suffix);
26
27
  const candidateNumber = Number(attributes.number);
27
28
  const number = Number.isFinite(candidateNumber) ? candidateNumber : 0;
28
29
  const duration = clampSpinnerDuration(attributes.duration);
@@ -1,4 +1,5 @@
1
1
  ---
2
+ import { decodeFlowpressText } from "../../text.js";
2
3
  import StyleflowElement from "../StyleflowElement.astro";
3
4
  import type { FlowpressBlock } from "../../types.js";
4
5
  import type { StyleflowContract } from "../../styleflow.js";
@@ -71,7 +72,7 @@ const listTag = Boolean(attributes.ordered) ? "ol" : "ul";
71
72
  ) : name === "quote" || name === "core/quote" ? (
72
73
  <StyleflowElement as="blockquote" {...semantic} {...htmlAttributes} style={alignmentStyle}>
73
74
  {hasChildren ? <slot /> : <div set:html={html}></div>}
74
- {attributes.citation ? <cite>{String(attributes.citation)}</cite> : null}
75
+ {attributes.citation ? <cite>{decodeFlowpressText(attributes.citation)}</cite> : null}
75
76
  </StyleflowElement>
76
77
  ) : name === "core/paragraph" ? (
77
78
  <StyleflowElement as="p"
@@ -1,4 +1,5 @@
1
1
  ---
2
+ import { decodeFlowpressText } from "../../text.js";
2
3
  import StyleflowElement from "../StyleflowElement.astro";
3
4
  import type { FlowpressBlockRendererProps } from "../../index.js";
4
5
  import LevelTag from "./LevelTag.astro";
@@ -16,8 +17,8 @@ const resolved = (block.resolvedData ?? {}) as { as?: string | undefined; value?
16
17
  const options = (attributes.options && typeof attributes.options === "object" ? attributes.options : {}) as Record<string, unknown>;
17
18
  const as = text(resolved.as);
18
19
  const authoredAs = text(attributes.as) || "text";
19
- const prefix = text(attributes.prefix);
20
- const suffix = text(attributes.suffix);
20
+ const prefix = decodeFlowpressText(attributes.prefix);
21
+ const suffix = decodeFlowpressText(attributes.suffix);
21
22
  const TEXT_TAGS = ["p", "span", "h1", "h2", "h3", "h4", "h5", "h6"];
22
23
  const textTag = authoredAs === "text" && TEXT_TAGS.includes(text(options.tag)) ? text(options.tag) : "p";
23
24
  const rootProps = {
@@ -40,7 +41,7 @@ const imageProps = {
40
41
  };
41
42
  const link = as === "link" ? (resolved.value ?? {}) as { url?: string | undefined; label?: string | undefined; target?: string } : {};
42
43
  const date = as === "date" ? (resolved.value ?? {}) as { datetime?: string | undefined; formatted?: string } : {};
43
- const list = as === "list" && Array.isArray(resolved.value) ? resolved.value.map(text) : [];
44
+ const list = as === "list" && Array.isArray(resolved.value) ? resolved.value.map(decodeFlowpressText) : [];
44
45
  ---
45
46
 
46
47
  {as === "" ? null
@@ -66,7 +67,7 @@ const list = as === "list" && Array.isArray(resolved.value) ? resolved.value.map
66
67
  class={options.variant === "button" ? "wp-element-button" : undefined}
67
68
  target={link.target === "_blank" ? "_blank" : undefined}
68
69
  rel={link.target === "_blank" ? "noopener noreferrer" : undefined}
69
- >{link.label || link.url}</StyleflowElement>
70
+ >{decodeFlowpressText(link.label || link.url)}</StyleflowElement>
70
71
  {suffix ? <StyleflowElement as="span" class="project-field__suffix">{suffix}</StyleflowElement> : null}
71
72
  </StyleflowElement>
72
73
  )
@@ -81,6 +82,6 @@ const list = as === "list" && Array.isArray(resolved.value) ? resolved.value.map
81
82
  )
82
83
  : (
83
84
  <LevelTag tag={textTag} {...rootProps} {...styleflowProps}>
84
- {prefix}{as === "date" ? <StyleflowElement as="time" datetime={date.datetime}>{date.formatted}</StyleflowElement> : text(resolved.value)}{suffix}
85
+ {prefix}{as === "date" ? <StyleflowElement as="time" datetime={date.datetime}>{decodeFlowpressText(date.formatted)}</StyleflowElement> : decodeFlowpressText(resolved.value)}{suffix}
85
86
  </LevelTag>
86
87
  )}
@@ -1,4 +1,5 @@
1
1
  ---
2
+ import { decodeFlowpressText } from "../../text.js";
2
3
  import StyleflowElement from "../StyleflowElement.astro";
3
4
  import { classNames, text, type ResolvedImage } from "./query-loop.js";
4
5
 
@@ -31,7 +32,7 @@ const imageProps = {
31
32
  {as === "image" ? (
32
33
  imageProps.src ? <StyleflowElement as="img" {...imageProps} /> : null
33
34
  ) : as === "date" ? (
34
- <StyleflowElement as="time" class="wp-block-post-terms__field" datetime={date.datetime}>{date.formatted}</StyleflowElement>
35
+ <StyleflowElement as="time" class="wp-block-post-terms__field" datetime={date.datetime}>{decodeFlowpressText(date.formatted)}</StyleflowElement>
35
36
  ) : (
36
- <StyleflowElement as="span" class="wp-block-post-terms__field">{text(field.value)}</StyleflowElement>
37
+ <StyleflowElement as="span" class="wp-block-post-terms__field">{decodeFlowpressText(field.value)}</StyleflowElement>
37
38
  )}
@@ -1,4 +1,5 @@
1
1
  ---
2
+ import { decodeFlowpressText } from "../../text.js";
2
3
  import StyleflowElement from "../StyleflowElement.astro";
3
4
  import type { TimelineItem } from "./timeline.js";
4
5
  import "./timeline.css";
@@ -9,11 +10,11 @@ const {items,tone="inherit",intensity="inherit",id,class:className="",ariaLabel=
9
10
  <StyleflowElement as="ol" layoutRole="stack" density="regular" class="flowpress-timeline__list">
10
11
  {items.map(item=>(
11
12
  <StyleflowElement as="li" {...(item.tone && item.tone !== "inherit" ? {tone:item.tone} : {})} {...(item.intensity && item.intensity !== "inherit" ? {intensity:item.intensity} : {})} layoutRole="stack" density="regular" surface="default" class="flowpress-timeline__item" data-flowpress-timeline-item>
12
- {item.year && <StyleflowElement as="h3">{item.year}</StyleflowElement>}
13
+ {item.year && <StyleflowElement as="h3">{decodeFlowpressText(item.year)}</StyleflowElement>}
13
14
  {item.image && <StyleflowElement as="img" src={item.image.url ?? item.image.sourceUrl} alt={item.image.alt ?? item.image.altText ?? ""} width={item.image.width} height={item.image.height} loading="lazy" />}
14
- {item.description && <StyleflowElement as="p">{item.description}</StyleflowElement>}
15
- {item.metric && <StyleflowElement as="p">{item.metric}</StyleflowElement>}
16
- {(item.statisticValue || item.statisticLabel) && <StyleflowElement as="p"><StyleflowElement as="strong">{item.statisticValue}</StyleflowElement> {item.statisticLabel}</StyleflowElement>}
15
+ {item.description && <StyleflowElement as="p">{decodeFlowpressText(item.description)}</StyleflowElement>}
16
+ {item.metric && <StyleflowElement as="p">{decodeFlowpressText(item.metric)}</StyleflowElement>}
17
+ {(item.statisticValue || item.statisticLabel) && <StyleflowElement as="p"><StyleflowElement as="strong">{decodeFlowpressText(item.statisticValue)}</StyleflowElement> {decodeFlowpressText(item.statisticLabel)}</StyleflowElement>}
17
18
  </StyleflowElement>
18
19
  ))}
19
20
  </StyleflowElement>
@@ -1,10 +1,11 @@
1
1
  ---
2
+ import { decodeFlowpressText } from "../../text.js";
2
3
  import StyleflowElement from "../StyleflowElement.astro";
3
4
  import type { FlowpressBlockRendererProps } from "../../index.js";
4
5
 
5
6
  const { block, htmlProps, styleflowProps } = Astro.props as FlowpressBlockRendererProps;
6
7
  const href = String(block.resolvedData?.url ?? block.attributes.url ?? "/");
7
- const label = String(block.resolvedData?.label ?? block.attributes.label ?? "Home");
8
+ const label = decodeFlowpressText(block.resolvedData?.label ?? block.attributes.label ?? "Home");
8
9
  const rootProps = { ...htmlProps, class: ["wp-block-navigation-item", htmlProps.class].filter(Boolean).join(" ") };
9
10
  ---
10
11
 
@@ -1,11 +1,12 @@
1
1
  ---
2
+ import { decodeFlowpressText } from "../../text.js";
2
3
  import StyleflowElement from "../StyleflowElement.astro";
3
4
  import type { FlowpressBlockRendererProps } from "../../index.js";
4
5
 
5
6
  const { block, htmlProps, styleflowProps } =
6
7
  Astro.props as FlowpressBlockRendererProps;
7
8
  const href = String(block.attributes.url ?? "").trim() || "#";
8
- const label = String(block.attributes.label ?? block.attributes.title ?? href);
9
+ const label = decodeFlowpressText(block.attributes.label ?? block.attributes.title ?? href);
9
10
  const external = block.attributes.opensInNewTab === true;
10
11
  const authoredRel = String(block.attributes.rel ?? "").trim();
11
12
  const rel = external
@@ -1,9 +1,10 @@
1
1
  ---
2
+ import { decodeFlowpressText } from "../../text.js";
2
3
  import StyleflowElement from "../StyleflowElement.astro";
3
4
  import type { FlowpressBlockRendererProps } from "../../index.js";
4
5
 
5
6
  const { block, htmlProps, styleflowProps } = Astro.props as FlowpressBlockRendererProps;
6
- const label = String(block.attributes.label ?? block.attributes.title ?? "Submenu");
7
+ const label = decodeFlowpressText(block.attributes.label ?? block.attributes.title ?? "Submenu");
7
8
  const rootProps = { ...htmlProps, class: ["wp-block-navigation-item has-child", htmlProps.class].filter(Boolean).join(" ") };
8
9
  ---
9
10
 
@@ -1,4 +1,5 @@
1
1
  ---
2
+ import { decodeFlowpressText } from "../../text.js";
2
3
  import StyleflowElement from "../StyleflowElement.astro";
3
4
 
4
5
  interface Props { item: Record<string, unknown>; styleflowProps?: Record<string, unknown> | undefined; htmlProps?: { id?: string | undefined; class?: string } | undefined; }
@@ -9,7 +10,7 @@ const children = Array.isArray(item.children)
9
10
  ---
10
11
 
11
12
  <StyleflowElement as="li" {...htmlProps} class={["wp-block-pages-list__item", htmlProps.class].filter(Boolean).join(" ")} {...styleflowProps}>
12
- <StyleflowElement as="a" href={String(item.url ?? "#")}>{String(item.label ?? "")}</StyleflowElement>
13
+ <StyleflowElement as="a" href={String(item.url ?? "#")}>{decodeFlowpressText(item.label)}</StyleflowElement>
13
14
  {children.length > 0 && (
14
15
  <StyleflowElement as="ul">
15
16
  {children.map((child) => <Astro.self item={child} />)}
@@ -1,7 +1,8 @@
1
1
  ---
2
+ import { decodeFlowpressText } from "../../text.js";
2
3
  import StyleflowElement from "../StyleflowElement.astro";
3
4
  import type { FlowpressBlockRendererProps } from "../../index.js";
4
5
  const { block, htmlProps, styleflowProps } = Astro.props as FlowpressBlockRendererProps;
5
6
  const rootProps = { ...htmlProps, class: ["wp-block-pages-list__item", htmlProps.class].filter(Boolean).join(" ") };
6
7
  ---
7
- <StyleflowElement as="li" {...rootProps} {...styleflowProps}><StyleflowElement as="a" href={String(block.attributes.url ?? "#")}>{String(block.attributes.label ?? "")}</StyleflowElement><slot /></StyleflowElement>
8
+ <StyleflowElement as="li" {...rootProps} {...styleflowProps}><StyleflowElement as="a" href={String(block.attributes.url ?? "#")}>{decodeFlowpressText(block.attributes.label)}</StyleflowElement><slot /></StyleflowElement>
@@ -1,4 +1,5 @@
1
1
  ---
2
+ import { decodeFlowpressText } from "../../text.js";
2
3
  import StyleflowElement from "../StyleflowElement.astro";
3
4
  import type { FlowpressBlockRendererProps } from "../../index.js";
4
5
  import { classNames, text } from "./query-loop.js";
@@ -6,7 +7,7 @@ import { classNames, text } from "./query-loop.js";
6
7
  // Publication (or modification) date of the current loop item.
7
8
  const { block, htmlProps, styleflowProps } = Astro.props as FlowpressBlockRendererProps;
8
9
  const datetime = text(block.resolvedData?.datetime);
9
- const formatted = text(block.resolvedData?.formatted);
10
+ const formatted = decodeFlowpressText(block.resolvedData?.formatted);
10
11
  const url = text(block.resolvedData?.url);
11
12
  const rootProps = { ...htmlProps, class: classNames("wp-block-post-date", htmlProps.class) };
12
13
  ---
@@ -1,4 +1,5 @@
1
1
  ---
2
+ import { decodeFlowpressText } from "../../text.js";
2
3
  import StyleflowElement from "../StyleflowElement.astro";
3
4
  import type { FlowpressBlockRendererProps } from "../../index.js";
4
5
  import { classNames, text } from "./query-loop.js";
@@ -6,9 +7,9 @@ import { classNames, text } from "./query-loop.js";
6
7
  // Excerpt of the current loop item, trimmed to `excerptLength` words.
7
8
  const { block, htmlProps, styleflowProps } = Astro.props as FlowpressBlockRendererProps;
8
9
  const attributes = block.attributes;
9
- const excerpt = text(block.resolvedData?.excerpt);
10
+ const excerpt = decodeFlowpressText(block.resolvedData?.excerpt);
10
11
  const url = text(block.resolvedData?.url);
11
- const moreText = text(attributes.moreText).trim();
12
+ const moreText = decodeFlowpressText(attributes.moreText).trim();
12
13
  const rootProps = { ...htmlProps, class: classNames("wp-block-post-excerpt", htmlProps.class) };
13
14
  ---
14
15
 
@@ -1,4 +1,5 @@
1
1
  ---
2
+ import { decodeFlowpressText } from "../../text.js";
2
3
  import StyleflowElement from "../StyleflowElement.astro";
3
4
  import type { FlowpressBlockRendererProps } from "../../index.js";
4
5
  import TermFieldValue from "./TermFieldValue.astro";
@@ -13,9 +14,9 @@ const { block, htmlProps, styleflowProps } = Astro.props as FlowpressBlockRender
13
14
  const attributes = block.attributes;
14
15
  const terms = (Array.isArray(block.resolvedData?.terms) ? block.resolvedData.terms : []) as TermLink[];
15
16
  const display = text(block.resolvedData?.display);
16
- const separator = typeof attributes.separator === "string" ? attributes.separator : ", ";
17
- const prefix = text(attributes.prefix);
18
- const suffix = text(attributes.suffix);
17
+ const separator = typeof attributes.separator === "string" ? decodeFlowpressText(attributes.separator) : ", ";
18
+ const prefix = decodeFlowpressText(attributes.prefix);
19
+ const suffix = decodeFlowpressText(attributes.suffix);
19
20
  const rootProps = {
20
21
  ...htmlProps,
21
22
  class: classNames("wp-block-post-terms", `taxonomy-${text(attributes.term)}`, htmlProps.class),
@@ -29,11 +30,11 @@ const rootProps = {
29
30
  const field = display === "name" ? undefined : term.field;
30
31
  const label = field ? (
31
32
  <>
32
- {display === "both" ? <StyleflowElement as="span" class="wp-block-post-terms__name">{term.name}</StyleflowElement> : null}
33
+ {display === "both" ? <StyleflowElement as="span" class="wp-block-post-terms__name">{decodeFlowpressText(term.name)}</StyleflowElement> : null}
33
34
  {display === "both" ? " " : null}
34
35
  <TermFieldValue field={field} fallbackAlt={display === "field" ? term.name : ""} />
35
36
  </>
36
- ) : term.name;
37
+ ) : decodeFlowpressText(term.name);
37
38
  return (
38
39
  <>
39
40
  {index > 0 ? <StyleflowElement as="span" class="wp-block-post-terms__separator">{separator}</StyleflowElement> : null}
@@ -0,0 +1,20 @@
1
+ ---
2
+ import StyleflowElement from "../StyleflowElement.astro";
3
+ import type { FlowpressBlockRendererProps } from "../../index.js";
4
+ import { classNames } from "./query-loop.js";
5
+ const { htmlProps, styleflowProps } = Astro.props as FlowpressBlockRendererProps;
6
+ ---
7
+
8
+ <StyleflowElement as="hr" {...htmlProps} {...styleflowProps}
9
+ class={classNames("wp-block-separator", htmlProps.class)}
10
+ foreground={styleflowProps.foreground || "primary"}
11
+ />
12
+
13
+ <style is:global>
14
+ .wp-block-separator { background: transparent; border: 0; border-top: 1px solid currentColor; height: 0; opacity: 1; }
15
+ .wp-block-separator:not(.is-style-wide):not(.is-style-dots) { width: 100px; max-width: 100%; margin-inline: auto; }
16
+ .wp-block-separator.is-style-wide { width: 100%; }
17
+ .wp-block-separator.is-style-dots { border: 0; height: auto; text-align: center; }
18
+ .wp-block-separator.is-style-dots::before { content: "···"; color: inherit; letter-spacing: 1em; padding-inline-start: 1em; }
19
+ .wp-block-separator[data-sf-no-border="true"] { border: 0; }
20
+ </style>
@@ -1,9 +1,10 @@
1
1
  ---
2
+ import { decodeFlowpressText } from "../../text.js";
2
3
  import StyleflowElement from "../StyleflowElement.astro";
3
4
  import type { FlowpressBlockRendererProps } from "../../index.js";
4
5
  const { block, htmlProps, styleflowProps } = Astro.props as FlowpressBlockRendererProps;
5
6
  const level = Number(block.attributes.level ?? 1);
6
- const title = String(block.resolvedData?.title ?? "");
7
+ const title = decodeFlowpressText(block.resolvedData?.title);
7
8
  const url = String(block.resolvedData?.url ?? "/");
8
9
  ---
9
10
  {level === 1 ? <StyleflowElement as="h1" {...htmlProps} {...styleflowProps}><StyleflowElement as="a" href={url}>{title}</StyleflowElement></StyleflowElement>
@@ -1,4 +1,5 @@
1
1
  ---
2
+ import { decodeFlowpressText } from "../../text.js";
2
3
  import StyleflowElement from "../StyleflowElement.astro";
3
4
  import type { FlowpressBlockRendererProps } from "../../index.js";
4
5
  import LevelTag from "./LevelTag.astro";
@@ -6,7 +7,7 @@ import { classNames, headingLevel, text } from "./query-loop.js";
6
7
 
7
8
  // Name of the current Terms Query item.
8
9
  const { block, htmlProps, styleflowProps } = Astro.props as FlowpressBlockRendererProps;
9
- const name = text(block.resolvedData?.name);
10
+ const name = decodeFlowpressText(block.resolvedData?.name);
10
11
  const url = text(block.resolvedData?.url);
11
12
  const level = headingLevel(block.attributes.level, 0);
12
13
  const tag = level === 0 ? "p" : `h${level}`;
@@ -1 +1 @@
1
- {"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../../src/astro/native/registry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AAqCxE,eAAO,MAAM,oBAAoB,EAAE,uBAyClC,CAAC"}
1
+ {"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../../src/astro/native/registry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AAsCxE,eAAO,MAAM,oBAAoB,EAAE,uBA0ClC,CAAC"}
@@ -32,9 +32,11 @@ import Renderer31 from "./ProjectTimelineBlock.astro";
32
32
  import TimelineCardBlock from "./TimelineCardBlock.astro";
33
33
  import BlobBlock from "./BlobBlock.astro";
34
34
  import TransparentBlock from "./core-transparent.astro";
35
+ import SeparatorBlock from "./core-separator.astro";
35
36
  import SiteLogoBlock from "../blocks/SiteLogoBlock.astro";
36
37
  import ThemeToggleBlock from "../blocks/ThemeToggleBlock.astro";
37
38
  export const nativeBlockRenderers = {
39
+ "core/separator": SeparatorBlock,
38
40
  "core/post-content": TransparentBlock,
39
41
  "core/template-part": TransparentBlock,
40
42
  "core/site-logo": SiteLogoBlock,
@@ -1 +1 @@
1
- {"version":3,"file":"registry.js","sourceRoot":"","sources":["../../../src/astro/native/registry.ts"],"names":[],"mappings":"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","sourcesContent":["import type { FlowpressBlockRenderers } from \"../../block-renderers.js\";\nimport Renderer0 from \"./core-term-name.astro\";\nimport Renderer2 from \"./core-post-terms.astro\";\nimport Renderer3 from \"./core-button.astro\";\nimport Renderer4 from \"./core-post-date.astro\";\nimport Renderer5 from \"./core-icon.astro\";\nimport Renderer6 from \"./core-post-excerpt.astro\";\nimport Renderer7 from \"./core-term-description.astro\";\nimport Renderer8 from \"./core-post-template.astro\";\nimport Renderer9 from \"./core-group.astro\";\nimport Renderer10 from \"./core-html.astro\";\nimport Renderer11 from \"./core-block.astro\";\nimport Renderer12 from \"./core-site-title.astro\";\nimport Renderer13 from \"./core-post-featured-image.astro\";\nimport Renderer14 from \"./core-page-list.astro\";\nimport Renderer15 from \"./core-terms-query.astro\";\nimport Renderer16 from \"./core-buttons.astro\";\nimport Renderer17 from \"./core-image.astro\";\nimport Renderer18 from \"./core-query-no-results.astro\";\nimport Renderer19 from \"./core-term-template.astro\";\nimport Renderer20 from \"./core-navigation.astro\";\nimport Renderer21 from \"./core-navigation-submenu.astro\";\nimport Renderer22 from \"./core-query.astro\";\nimport Renderer23 from \"./core-home-link.astro\";\nimport Renderer24 from \"./core-page-list-item.astro\";\nimport Renderer25 from \"./core-navigation-link.astro\";\nimport Renderer26 from \"./core-post-title.astro\";\nimport Renderer27 from \"./sf-post-field.astro\";\nimport Renderer28 from \"./sf-block-binding.astro\";\nimport Renderer29 from \"./sf-term-field.astro\";\nimport Renderer30 from \"./MapBlock.astro\";\nimport Renderer31 from \"./ProjectTimelineBlock.astro\";\nimport TimelineCardBlock from \"./TimelineCardBlock.astro\";\nimport BlobBlock from \"./BlobBlock.astro\";\nimport TransparentBlock from \"./core-transparent.astro\";\nimport SiteLogoBlock from \"../blocks/SiteLogoBlock.astro\";\nimport ThemeToggleBlock from \"../blocks/ThemeToggleBlock.astro\";\nexport const nativeBlockRenderers: FlowpressBlockRenderers = {\n \"core/post-content\": TransparentBlock,\n \"core/template-part\": TransparentBlock,\n \"core/site-logo\": SiteLogoBlock,\n \"sf/theme-toggle\": ThemeToggleBlock,\n \"core/term-name\": Renderer0,\n \"core/post-terms\": Renderer2,\n \"core/button\": Renderer3,\n \"core/post-date\": Renderer4,\n \"core/icon\": Renderer5,\n \"core/post-excerpt\": Renderer6,\n \"core/term-description\": Renderer7,\n \"core/post-template\": Renderer8,\n \"core/group\": Renderer9,\n \"core/html\": Renderer10,\n \"core/block\": Renderer11,\n \"core/site-title\": Renderer12,\n \"core/post-featured-image\": Renderer13,\n \"core/page-list\": Renderer14,\n \"core/terms-query\": Renderer15,\n \"core/buttons\": Renderer16,\n \"core/image\": Renderer17,\n \"core/query-no-results\": Renderer18,\n \"core/term-template\": Renderer19,\n \"core/navigation\": Renderer20,\n \"core/navigation-submenu\": Renderer21,\n \"core/query\": Renderer22,\n \"core/home-link\": Renderer23,\n \"core/page-list-item\": Renderer24,\n \"core/navigation-link\": Renderer25,\n \"core/post-title\": Renderer26,\n \"sf/post-field\": Renderer27,\n \"project/post-field\": Renderer27,\n \"sf/block-binding\": Renderer28,\n \"project/block-binding\": Renderer28,\n \"sf/term-field\": Renderer29,\n \"project/term-field\": Renderer29,\n \"sf/blob\": BlobBlock,\n \"sf/map\": Renderer30,\n \"sf/timeline\": Renderer31,\n \"sf/timeline-card\": TimelineCardBlock,\n};\n"]}
1
+ {"version":3,"file":"registry.js","sourceRoot":"","sources":["../../../src/astro/native/registry.ts"],"names":[],"mappings":"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","sourcesContent":["import type { FlowpressBlockRenderers } from \"../../block-renderers.js\";\nimport Renderer0 from \"./core-term-name.astro\";\nimport Renderer2 from \"./core-post-terms.astro\";\nimport Renderer3 from \"./core-button.astro\";\nimport Renderer4 from \"./core-post-date.astro\";\nimport Renderer5 from \"./core-icon.astro\";\nimport Renderer6 from \"./core-post-excerpt.astro\";\nimport Renderer7 from \"./core-term-description.astro\";\nimport Renderer8 from \"./core-post-template.astro\";\nimport Renderer9 from \"./core-group.astro\";\nimport Renderer10 from \"./core-html.astro\";\nimport Renderer11 from \"./core-block.astro\";\nimport Renderer12 from \"./core-site-title.astro\";\nimport Renderer13 from \"./core-post-featured-image.astro\";\nimport Renderer14 from \"./core-page-list.astro\";\nimport Renderer15 from \"./core-terms-query.astro\";\nimport Renderer16 from \"./core-buttons.astro\";\nimport Renderer17 from \"./core-image.astro\";\nimport Renderer18 from \"./core-query-no-results.astro\";\nimport Renderer19 from \"./core-term-template.astro\";\nimport Renderer20 from \"./core-navigation.astro\";\nimport Renderer21 from \"./core-navigation-submenu.astro\";\nimport Renderer22 from \"./core-query.astro\";\nimport Renderer23 from \"./core-home-link.astro\";\nimport Renderer24 from \"./core-page-list-item.astro\";\nimport Renderer25 from \"./core-navigation-link.astro\";\nimport Renderer26 from \"./core-post-title.astro\";\nimport Renderer27 from \"./sf-post-field.astro\";\nimport Renderer28 from \"./sf-block-binding.astro\";\nimport Renderer29 from \"./sf-term-field.astro\";\nimport Renderer30 from \"./MapBlock.astro\";\nimport Renderer31 from \"./ProjectTimelineBlock.astro\";\nimport TimelineCardBlock from \"./TimelineCardBlock.astro\";\nimport BlobBlock from \"./BlobBlock.astro\";\nimport TransparentBlock from \"./core-transparent.astro\";\nimport SeparatorBlock from \"./core-separator.astro\";\nimport SiteLogoBlock from \"../blocks/SiteLogoBlock.astro\";\nimport ThemeToggleBlock from \"../blocks/ThemeToggleBlock.astro\";\nexport const nativeBlockRenderers: FlowpressBlockRenderers = {\n \"core/separator\": SeparatorBlock,\n \"core/post-content\": TransparentBlock,\n \"core/template-part\": TransparentBlock,\n \"core/site-logo\": SiteLogoBlock,\n \"sf/theme-toggle\": ThemeToggleBlock,\n \"core/term-name\": Renderer0,\n \"core/post-terms\": Renderer2,\n \"core/button\": Renderer3,\n \"core/post-date\": Renderer4,\n \"core/icon\": Renderer5,\n \"core/post-excerpt\": Renderer6,\n \"core/term-description\": Renderer7,\n \"core/post-template\": Renderer8,\n \"core/group\": Renderer9,\n \"core/html\": Renderer10,\n \"core/block\": Renderer11,\n \"core/site-title\": Renderer12,\n \"core/post-featured-image\": Renderer13,\n \"core/page-list\": Renderer14,\n \"core/terms-query\": Renderer15,\n \"core/buttons\": Renderer16,\n \"core/image\": Renderer17,\n \"core/query-no-results\": Renderer18,\n \"core/term-template\": Renderer19,\n \"core/navigation\": Renderer20,\n \"core/navigation-submenu\": Renderer21,\n \"core/query\": Renderer22,\n \"core/home-link\": Renderer23,\n \"core/page-list-item\": Renderer24,\n \"core/navigation-link\": Renderer25,\n \"core/post-title\": Renderer26,\n \"sf/post-field\": Renderer27,\n \"project/post-field\": Renderer27,\n \"sf/block-binding\": Renderer28,\n \"project/block-binding\": Renderer28,\n \"sf/term-field\": Renderer29,\n \"project/term-field\": Renderer29,\n \"sf/blob\": BlobBlock,\n \"sf/map\": Renderer30,\n \"sf/timeline\": Renderer31,\n \"sf/timeline-card\": TimelineCardBlock,\n};\n"]}
@@ -33,9 +33,11 @@ import Renderer31 from "./ProjectTimelineBlock.astro";
33
33
  import TimelineCardBlock from "./TimelineCardBlock.astro";
34
34
  import BlobBlock from "./BlobBlock.astro";
35
35
  import TransparentBlock from "./core-transparent.astro";
36
+ import SeparatorBlock from "./core-separator.astro";
36
37
  import SiteLogoBlock from "../blocks/SiteLogoBlock.astro";
37
38
  import ThemeToggleBlock from "../blocks/ThemeToggleBlock.astro";
38
39
  export const nativeBlockRenderers: FlowpressBlockRenderers = {
40
+ "core/separator": SeparatorBlock,
39
41
  "core/post-content": TransparentBlock,
40
42
  "core/template-part": TransparentBlock,
41
43
  "core/site-logo": SiteLogoBlock,
@@ -1,4 +1,5 @@
1
1
  ---
2
+ import { decodeFlowpressText } from "../../text.js";
2
3
  import StyleflowElement from "../StyleflowElement.astro";
3
4
  import MotionToggle from "./MotionToggle.astro";
4
5
  import ThemeToggle from "./ThemeToggle.astro";
@@ -93,19 +94,19 @@ const id = `sf-a11y-${crypto.randomUUID()}`;
93
94
  density="regular"
94
95
  class="sf-a11y__panel"
95
96
  >
96
- <StyleflowElement as="h2" id={`${id}-title`} {...titleTypography}>{title}</StyleflowElement>
97
+ <StyleflowElement as="h2" id={`${id}-title`} {...titleTypography}>{decodeFlowpressText(title)}</StyleflowElement>
97
98
  {showTheme ? (
98
99
  <StyleflowElement as="div" layoutRole="none" class="sf-a11y__row">
99
- <StyleflowElement as="span" id={`${id}-theme-label`} {...labelTypography}>{themeLabel}</StyleflowElement>
100
+ <StyleflowElement as="span" id={`${id}-theme-label`} {...labelTypography}>{decodeFlowpressText(themeLabel)}</StyleflowElement>
100
101
  <ThemeToggle labelledby={`${id}-theme-label`} />
101
102
  </StyleflowElement>
102
103
  ) : null}
103
104
  <StyleflowElement as="div" layoutRole="none" class="sf-a11y__row">
104
- <StyleflowElement as="span" id={`${id}-motion-label`} {...labelTypography}>{motionLabel}</StyleflowElement>
105
+ <StyleflowElement as="span" id={`${id}-motion-label`} {...labelTypography}>{decodeFlowpressText(motionLabel)}</StyleflowElement>
105
106
  <MotionToggle labelledby={`${id}-motion-label`} />
106
107
  </StyleflowElement>
107
108
  <StyleflowElement as="div" layoutRole="none" class="sf-a11y__row">
108
- <StyleflowElement as="span" id={`${id}-color-mode-vivid-label`} {...labelTypography}>{vividColorLabel}</StyleflowElement>
109
+ <StyleflowElement as="span" id={`${id}-color-mode-vivid-label`} {...labelTypography}>{decodeFlowpressText(vividColorLabel)}</StyleflowElement>
109
110
  <ColorModeToggle labelledby={`${id}-color-mode-vivid-label`} />
110
111
  </StyleflowElement>
111
112
  </StyleflowElement>
@@ -1,4 +1,4 @@
1
- export declare const FLOWPRESS_DEFAULT_BLOCK_CATALOG_VERSION: "4";
1
+ export declare const FLOWPRESS_DEFAULT_BLOCK_CATALOG_VERSION: "5";
2
2
  export interface FlowpressDefaultBlockCatalogEntry {
3
3
  blockName: string;
4
4
  template: "DefaultBlockAdapter.astro";
@@ -1 +1 @@
1
- {"version":3,"file":"default-blocks.d.ts","sourceRoot":"","sources":["../src/default-blocks.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,uCAAuC,EAAG,GAAY,CAAC;AAEpE,MAAM,WAAW,iCAAiC;IAChD,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,2BAA2B,CAAC;CACvC;AAkFD,eAAO,MAAM,4BAA4B,EAAE,SAAS,iCAAiC,EACc,CAAC;AAIpG,wBAAgB,+BAA+B,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAE1E;AAED,wBAAgB,wCAAwC,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CA+BlF"}
1
+ {"version":3,"file":"default-blocks.d.ts","sourceRoot":"","sources":["../src/default-blocks.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,uCAAuC,EAAG,GAAY,CAAC;AAEpE,MAAM,WAAW,iCAAiC;IAChD,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,2BAA2B,CAAC;CACvC;AAmFD,eAAO,MAAM,4BAA4B,EAAE,SAAS,iCAAiC,EACc,CAAC;AAIpG,wBAAgB,+BAA+B,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAE1E;AAED,wBAAgB,wCAAwC,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CA+BlF"}
@@ -1,5 +1,6 @@
1
- export const FLOWPRESS_DEFAULT_BLOCK_CATALOG_VERSION = "4";
1
+ export const FLOWPRESS_DEFAULT_BLOCK_CATALOG_VERSION = "5";
2
2
  const blockNames = [
3
+ "core/separator",
3
4
  "core/post-content",
4
5
  "core/site-logo",
5
6
  "core/template-part",
@@ -1 +1 @@
1
- {"version":3,"file":"default-blocks.js","sourceRoot":"","sources":["../src/default-blocks.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,uCAAuC,GAAG,GAAY,CAAC;AAOpE,MAAM,UAAU,GAAG;IACjB,mBAAmB;IACnB,gBAAgB;IAChB,oBAAoB;IACpB,cAAc;IACd,eAAe;IACf,SAAS;IACT,UAAU;IACV,YAAY;IACZ,eAAe;IACf,iBAAiB;IAEjB,gBAAgB;IAChB,iBAAiB;IACjB,aAAa;IACb,gBAAgB;IAChB,WAAW;IACX,mBAAmB;IACnB,uBAAuB;IACvB,oBAAoB;IACpB,WAAW;IACX,YAAY;IACZ,iBAAiB;IACjB,0BAA0B;IAC1B,gBAAgB;IAChB,kBAAkB;IAClB,cAAc;IACd,YAAY;IACZ,uBAAuB;IACvB,oBAAoB;IACpB,iBAAiB;IACjB,yBAAyB;IACzB,YAAY;IACZ,gBAAgB;IAChB,qBAAqB;IACrB,sBAAsB;IACtB,iBAAiB;IACjB,eAAe;IACf,oBAAoB;IACpB,kBAAkB;IAClB,uBAAuB;IACvB,eAAe;IACf,oBAAoB;IACpB,aAAa;IACb,YAAY;IACZ,YAAY;IACZ,cAAc;IACd,WAAW;IACX,gBAAgB;IAChB,gBAAgB;IAChB,YAAY;IACZ,mBAAmB;IACnB,WAAW;IACX,SAAS;IACT,aAAa;IACb,kBAAkB;IAClB,SAAS;IACT,SAAS;IACT,WAAW;IACX,iBAAiB;IACjB,SAAS;IACT,YAAY;IACZ,SAAS;IACT,YAAY;IACZ,SAAS;IACT,SAAS;IACT,UAAU;IACV,SAAS;IACT,kBAAkB;IAClB,QAAQ;IACR,mBAAmB;IACnB,UAAU;IACV,cAAc;IACd,YAAY;IACZ,aAAa;IACb,cAAc;IACd,UAAU;IACV,kBAAkB;CACV,CAAC;AAEX,MAAM,CAAC,MAAM,4BAA4B,GACvC,CAAC,GAAG,UAAU,CAAC,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,2BAA2B,EAAE,CAAC,CAAC,CAAC;AAEpG,MAAM,SAAS,GAAG,IAAI,GAAG,CAAS,UAAU,CAAC,CAAC;AAE9C,MAAM,UAAU,+BAA+B,CAAC,SAAiB;IAC/D,OAAO,SAAS,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;AAClC,CAAC;AAED,MAAM,UAAU,wCAAwC,CAAC,SAAiB;IACxE,IAAI,CAAC,+BAA+B,CAAC,SAAS,CAAC,EAAE,CAAC;QAChD,MAAM,IAAI,KAAK,CAAC,iDAAiD,SAAS,GAAG,CAAC,CAAC;IACjF,CAAC;IACD,IAAI,SAAS,KAAK,YAAY,EAAE,CAAC;QAC/B,OAAO;;;;;;;;;;;;;;;CAeV,CAAC;IACA,CAAC;IACD,OAAO;;;;;;;;CAQR,CAAC;AACF,CAAC","sourcesContent":["export const FLOWPRESS_DEFAULT_BLOCK_CATALOG_VERSION = \"4\" as const;\n\nexport interface FlowpressDefaultBlockCatalogEntry {\n blockName: string;\n template: \"DefaultBlockAdapter.astro\";\n}\n\nconst blockNames = [\n \"core/post-content\",\n \"core/site-logo\",\n \"core/template-part\",\n \"sf/accordion\",\n \"sf/collection\",\n \"sf/flex\",\n \"sf/group\",\n \"sf/marquee\",\n \"sf/media-text\",\n \"sf/theme-toggle\",\n\n \"core/term-name\",\n \"core/post-terms\",\n \"core/button\",\n \"core/post-date\",\n \"core/icon\",\n \"core/post-excerpt\",\n \"core/term-description\",\n \"core/post-template\",\n \"core/html\",\n \"core/block\",\n \"core/site-title\",\n \"core/post-featured-image\",\n \"core/page-list\",\n \"core/terms-query\",\n \"core/buttons\",\n \"core/image\",\n \"core/query-no-results\",\n \"core/term-template\",\n \"core/navigation\",\n \"core/navigation-submenu\",\n \"core/query\",\n \"core/home-link\",\n \"core/page-list-item\",\n \"core/navigation-link\",\n \"core/post-title\",\n \"sf/post-field\",\n \"project/post-field\",\n \"sf/block-binding\",\n \"project/block-binding\",\n \"sf/term-field\",\n \"project/term-field\",\n \"sf/timeline\",\n \"core/cover\",\n \"core/group\",\n \"core/heading\",\n \"core/list\",\n \"core/list-item\",\n \"core/paragraph\",\n \"core/quote\",\n \"sf/accordion-item\",\n \"sf/button\",\n \"sf/card\",\n \"sf/carousel\",\n \"sf/carousel-item\",\n \"sf/chip\",\n \"sf/code\",\n \"sf/column\",\n \"sf/content-list\",\n \"sf/form\",\n \"sf/gallery\",\n \"sf/grid\",\n \"sf/heading\",\n \"sf/hero\",\n \"sf/icon\",\n \"sf/image\",\n \"sf/blob\",\n \"sf/timeline-card\",\n \"sf/map\",\n \"sf/number-spinner\",\n \"sf/quote\",\n \"sf/rich-text\",\n \"sf/section\",\n \"sf/template\",\n \"sf/term-list\",\n \"sf/video\",\n \"sf/video-youtube\"\n] as const;\n\nexport const flowpressDefaultBlockCatalog: readonly FlowpressDefaultBlockCatalogEntry[] =\n [...blockNames].sort().map((blockName) => ({ blockName, template: \"DefaultBlockAdapter.astro\" }));\n\nconst supported = new Set<string>(blockNames);\n\nexport function hasFlowpressDefaultBlockAdapter(blockName: string): boolean {\n return supported.has(blockName);\n}\n\nexport function createFlowpressDefaultBlockAdapterSource(blockName: string): string {\n if (!hasFlowpressDefaultBlockAdapter(blockName)) {\n throw new Error(`FlowPress has no official default adapter for ${blockName}.`);\n }\n if (blockName === \"core/cover\") {\n return `---\nimport CoverBlock from \"@styleflow.app/flowpress-astro-core/blocks/CoverBlock.astro\";\nimport type { FlowpressBlockRendererProps } from \"@styleflow.app/flowpress-astro-core\";\n\nconst { block, contract, htmlProps, styleflowProps } = Astro.props as FlowpressBlockRendererProps;\n---\n\n<CoverBlock\n block={block}\n contract={contract}\n htmlProps={htmlProps}\n styleflowProps={styleflowProps}\n>\n <slot />\n</CoverBlock>\n`;\n }\n return `---\nimport DefaultBlockAdapter from \"@styleflow.app/flowpress-astro-core/DefaultBlockAdapter.astro\";\nimport type { FlowpressBlockRendererProps } from \"@styleflow.app/flowpress-astro-core\";\n\nconst props = Astro.props as FlowpressBlockRendererProps;\n---\n\n<DefaultBlockAdapter {...props} />\n`;\n}\n"]}
1
+ {"version":3,"file":"default-blocks.js","sourceRoot":"","sources":["../src/default-blocks.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,uCAAuC,GAAG,GAAY,CAAC;AAOpE,MAAM,UAAU,GAAG;IACjB,gBAAgB;IAChB,mBAAmB;IACnB,gBAAgB;IAChB,oBAAoB;IACpB,cAAc;IACd,eAAe;IACf,SAAS;IACT,UAAU;IACV,YAAY;IACZ,eAAe;IACf,iBAAiB;IAEjB,gBAAgB;IAChB,iBAAiB;IACjB,aAAa;IACb,gBAAgB;IAChB,WAAW;IACX,mBAAmB;IACnB,uBAAuB;IACvB,oBAAoB;IACpB,WAAW;IACX,YAAY;IACZ,iBAAiB;IACjB,0BAA0B;IAC1B,gBAAgB;IAChB,kBAAkB;IAClB,cAAc;IACd,YAAY;IACZ,uBAAuB;IACvB,oBAAoB;IACpB,iBAAiB;IACjB,yBAAyB;IACzB,YAAY;IACZ,gBAAgB;IAChB,qBAAqB;IACrB,sBAAsB;IACtB,iBAAiB;IACjB,eAAe;IACf,oBAAoB;IACpB,kBAAkB;IAClB,uBAAuB;IACvB,eAAe;IACf,oBAAoB;IACpB,aAAa;IACb,YAAY;IACZ,YAAY;IACZ,cAAc;IACd,WAAW;IACX,gBAAgB;IAChB,gBAAgB;IAChB,YAAY;IACZ,mBAAmB;IACnB,WAAW;IACX,SAAS;IACT,aAAa;IACb,kBAAkB;IAClB,SAAS;IACT,SAAS;IACT,WAAW;IACX,iBAAiB;IACjB,SAAS;IACT,YAAY;IACZ,SAAS;IACT,YAAY;IACZ,SAAS;IACT,SAAS;IACT,UAAU;IACV,SAAS;IACT,kBAAkB;IAClB,QAAQ;IACR,mBAAmB;IACnB,UAAU;IACV,cAAc;IACd,YAAY;IACZ,aAAa;IACb,cAAc;IACd,UAAU;IACV,kBAAkB;CACV,CAAC;AAEX,MAAM,CAAC,MAAM,4BAA4B,GACvC,CAAC,GAAG,UAAU,CAAC,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,2BAA2B,EAAE,CAAC,CAAC,CAAC;AAEpG,MAAM,SAAS,GAAG,IAAI,GAAG,CAAS,UAAU,CAAC,CAAC;AAE9C,MAAM,UAAU,+BAA+B,CAAC,SAAiB;IAC/D,OAAO,SAAS,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;AAClC,CAAC;AAED,MAAM,UAAU,wCAAwC,CAAC,SAAiB;IACxE,IAAI,CAAC,+BAA+B,CAAC,SAAS,CAAC,EAAE,CAAC;QAChD,MAAM,IAAI,KAAK,CAAC,iDAAiD,SAAS,GAAG,CAAC,CAAC;IACjF,CAAC;IACD,IAAI,SAAS,KAAK,YAAY,EAAE,CAAC;QAC/B,OAAO;;;;;;;;;;;;;;;CAeV,CAAC;IACA,CAAC;IACD,OAAO;;;;;;;;CAQR,CAAC;AACF,CAAC","sourcesContent":["export const FLOWPRESS_DEFAULT_BLOCK_CATALOG_VERSION = \"5\" as const;\n\nexport interface FlowpressDefaultBlockCatalogEntry {\n blockName: string;\n template: \"DefaultBlockAdapter.astro\";\n}\n\nconst blockNames = [\n \"core/separator\",\n \"core/post-content\",\n \"core/site-logo\",\n \"core/template-part\",\n \"sf/accordion\",\n \"sf/collection\",\n \"sf/flex\",\n \"sf/group\",\n \"sf/marquee\",\n \"sf/media-text\",\n \"sf/theme-toggle\",\n\n \"core/term-name\",\n \"core/post-terms\",\n \"core/button\",\n \"core/post-date\",\n \"core/icon\",\n \"core/post-excerpt\",\n \"core/term-description\",\n \"core/post-template\",\n \"core/html\",\n \"core/block\",\n \"core/site-title\",\n \"core/post-featured-image\",\n \"core/page-list\",\n \"core/terms-query\",\n \"core/buttons\",\n \"core/image\",\n \"core/query-no-results\",\n \"core/term-template\",\n \"core/navigation\",\n \"core/navigation-submenu\",\n \"core/query\",\n \"core/home-link\",\n \"core/page-list-item\",\n \"core/navigation-link\",\n \"core/post-title\",\n \"sf/post-field\",\n \"project/post-field\",\n \"sf/block-binding\",\n \"project/block-binding\",\n \"sf/term-field\",\n \"project/term-field\",\n \"sf/timeline\",\n \"core/cover\",\n \"core/group\",\n \"core/heading\",\n \"core/list\",\n \"core/list-item\",\n \"core/paragraph\",\n \"core/quote\",\n \"sf/accordion-item\",\n \"sf/button\",\n \"sf/card\",\n \"sf/carousel\",\n \"sf/carousel-item\",\n \"sf/chip\",\n \"sf/code\",\n \"sf/column\",\n \"sf/content-list\",\n \"sf/form\",\n \"sf/gallery\",\n \"sf/grid\",\n \"sf/heading\",\n \"sf/hero\",\n \"sf/icon\",\n \"sf/image\",\n \"sf/blob\",\n \"sf/timeline-card\",\n \"sf/map\",\n \"sf/number-spinner\",\n \"sf/quote\",\n \"sf/rich-text\",\n \"sf/section\",\n \"sf/template\",\n \"sf/term-list\",\n \"sf/video\",\n \"sf/video-youtube\"\n] as const;\n\nexport const flowpressDefaultBlockCatalog: readonly FlowpressDefaultBlockCatalogEntry[] =\n [...blockNames].sort().map((blockName) => ({ blockName, template: \"DefaultBlockAdapter.astro\" }));\n\nconst supported = new Set<string>(blockNames);\n\nexport function hasFlowpressDefaultBlockAdapter(blockName: string): boolean {\n return supported.has(blockName);\n}\n\nexport function createFlowpressDefaultBlockAdapterSource(blockName: string): string {\n if (!hasFlowpressDefaultBlockAdapter(blockName)) {\n throw new Error(`FlowPress has no official default adapter for ${blockName}.`);\n }\n if (blockName === \"core/cover\") {\n return `---\nimport CoverBlock from \"@styleflow.app/flowpress-astro-core/blocks/CoverBlock.astro\";\nimport type { FlowpressBlockRendererProps } from \"@styleflow.app/flowpress-astro-core\";\n\nconst { block, contract, htmlProps, styleflowProps } = Astro.props as FlowpressBlockRendererProps;\n---\n\n<CoverBlock\n block={block}\n contract={contract}\n htmlProps={htmlProps}\n styleflowProps={styleflowProps}\n>\n <slot />\n</CoverBlock>\n`;\n }\n return `---\nimport DefaultBlockAdapter from \"@styleflow.app/flowpress-astro-core/DefaultBlockAdapter.astro\";\nimport type { FlowpressBlockRendererProps } from \"@styleflow.app/flowpress-astro-core\";\n\nconst props = Astro.props as FlowpressBlockRendererProps;\n---\n\n<DefaultBlockAdapter {...props} />\n`;\n}\n"]}
package/dist/index.d.ts CHANGED
@@ -14,4 +14,5 @@ export * from "./theme-runtime.js";
14
14
  export { resolveFlowpressSiteDesign, flowpressSiteDesignAttributes } from "@styleflow.app/flowpress-components/site-design";
15
15
  export type { FlowpressSiteDesign, FlowpressSiteDesignDefaults } from "@styleflow.app/flowpress-components/site-design";
16
16
  export * from "./types.js";
17
+ export * from "./text.js";
17
18
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,oBAAoB,CAAC;AACnC,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC;AACnC,OAAO,EAAE,0BAA0B,EAAE,6BAA6B,EAAE,MAAM,iDAAiD,CAAC;AAC5H,YAAY,EAAE,mBAAmB,EAAE,2BAA2B,EAAE,MAAM,iDAAiD,CAAC;AACxH,cAAc,YAAY,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,oBAAoB,CAAC;AACnC,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC;AACnC,OAAO,EAAE,0BAA0B,EAAE,6BAA6B,EAAE,MAAM,iDAAiD,CAAC;AAC5H,YAAY,EAAE,mBAAmB,EAAE,2BAA2B,EAAE,MAAM,iDAAiD,CAAC;AACxH,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC"}
package/dist/index.js CHANGED
@@ -13,4 +13,5 @@ export * from "./template-hierarchy.js";
13
13
  export * from "./theme-runtime.js";
14
14
  export { resolveFlowpressSiteDesign, flowpressSiteDesignAttributes } from "@styleflow.app/flowpress-components/site-design";
15
15
  export * from "./types.js";
16
+ export * from "./text.js";
16
17
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,oBAAoB,CAAC;AACnC,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC;AACnC,OAAO,EAAE,0BAA0B,EAAE,6BAA6B,EAAE,MAAM,iDAAiD,CAAC;AAE5H,cAAc,YAAY,CAAC","sourcesContent":["export * from \"./client.js\";\nexport * from \"./carousel.js\";\nexport * from \"./block-renderers.js\";\nexport * from \"./composition.js\";\nexport * from \"./default-blocks.js\";\nexport * from \"./env.js\";\nexport * from \"./links.js\";\nexport * from \"./media.js\";\nexport * from \"./number-spinner.js\";\nexport * from \"./styleflow.js\";\nexport * from \"./style-classes.js\";\nexport * from \"./template-hierarchy.js\";\nexport * from \"./theme-runtime.js\";\nexport { resolveFlowpressSiteDesign, flowpressSiteDesignAttributes } from \"@styleflow.app/flowpress-components/site-design\";\nexport type { FlowpressSiteDesign, FlowpressSiteDesignDefaults } from \"@styleflow.app/flowpress-components/site-design\";\nexport * from \"./types.js\";\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,oBAAoB,CAAC;AACnC,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC;AACnC,OAAO,EAAE,0BAA0B,EAAE,6BAA6B,EAAE,MAAM,iDAAiD,CAAC;AAE5H,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC","sourcesContent":["export * from \"./client.js\";\nexport * from \"./carousel.js\";\nexport * from \"./block-renderers.js\";\nexport * from \"./composition.js\";\nexport * from \"./default-blocks.js\";\nexport * from \"./env.js\";\nexport * from \"./links.js\";\nexport * from \"./media.js\";\nexport * from \"./number-spinner.js\";\nexport * from \"./styleflow.js\";\nexport * from \"./style-classes.js\";\nexport * from \"./template-hierarchy.js\";\nexport * from \"./theme-runtime.js\";\nexport { resolveFlowpressSiteDesign, flowpressSiteDesignAttributes } from \"@styleflow.app/flowpress-components/site-design\";\nexport type { FlowpressSiteDesign, FlowpressSiteDesignDefaults } from \"@styleflow.app/flowpress-components/site-design\";\nexport * from \"./types.js\";\nexport * from \"./text.js\";\n"]}
package/dist/text.d.ts ADDED
@@ -0,0 +1,3 @@
1
+ /** Decode WordPress entities once; render the result as escaped text, never HTML. */
2
+ export declare function decodeFlowpressText(value: unknown): string;
3
+ //# sourceMappingURL=text.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../src/text.ts"],"names":[],"mappings":"AAEA,qFAAqF;AACrF,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAE1D"}
package/dist/text.js ADDED
@@ -0,0 +1,6 @@
1
+ import { decodeHTMLStrict } from "entities";
2
+ /** Decode WordPress entities once; render the result as escaped text, never HTML. */
3
+ export function decodeFlowpressText(value) {
4
+ return decodeHTMLStrict(typeof value === "string" ? value : typeof value === "number" ? String(value) : "");
5
+ }
6
+ //# sourceMappingURL=text.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"text.js","sourceRoot":"","sources":["../src/text.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAE5C,qFAAqF;AACrF,MAAM,UAAU,mBAAmB,CAAC,KAAc;IAChD,OAAO,gBAAgB,CAAC,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;AAC9G,CAAC","sourcesContent":["import { decodeHTMLStrict } from \"entities\";\n\n/** Decode WordPress entities once; render the result as escaped text, never HTML. */\nexport function decodeFlowpressText(value: unknown): string {\n return decodeHTMLStrict(typeof value === \"string\" ? value : typeof value === \"number\" ? String(value) : \"\");\n}\n"]}
@@ -1 +1 @@
1
- {"root":["../src/accessibility-panel.ts","../src/astro.d.ts","../src/block-renderers.ts","../src/carousel.ts","../src/client.ts","../src/composition.ts","../src/default-blocks.ts","../src/env.ts","../src/index.ts","../src/links.ts","../src/media.ts","../src/motion-preference.ts","../src/number-spinner.ts","../src/preferences-runtime.ts","../src/preferences-styleflow.ts","../src/preferences.ts","../src/style-classes.ts","../src/styleflow.ts","../src/template-hierarchy.ts","../src/templates.ts","../src/theme-runtime.ts","../src/types.ts","../src/vivid-colors-preference.ts","../src/astro/blocks/cover.ts","../src/astro/blocks/helpers.ts","../src/astro/native/button.ts","../src/astro/native/flowpress-navigation-controller.ts","../src/astro/native/grid.ts","../src/astro/native/html.ts","../src/astro/native/icon.ts","../src/astro/native/map.ts","../src/astro/native/motion-preference.ts","../src/astro/native/motion.ts","../src/astro/native/query-loop.ts","../src/astro/native/registry.ts","../src/astro/native/timeline.ts","../src/astro/native/blob/blob-shapes.generated.ts","../src/astro/native/blob/config.ts","../src/astro/native/blob/controller.ts","../src/astro/native/blob/geometry.ts","../src/astro/native/blob/ids.ts"],"version":"5.9.3"}
1
+ {"root":["../src/accessibility-panel.ts","../src/astro.d.ts","../src/block-renderers.ts","../src/carousel.ts","../src/client.ts","../src/composition.ts","../src/default-blocks.ts","../src/env.ts","../src/index.ts","../src/links.ts","../src/media.ts","../src/motion-preference.ts","../src/number-spinner.ts","../src/preferences-runtime.ts","../src/preferences-styleflow.ts","../src/preferences.ts","../src/style-classes.ts","../src/styleflow.ts","../src/template-hierarchy.ts","../src/templates.ts","../src/text.ts","../src/theme-runtime.ts","../src/types.ts","../src/vivid-colors-preference.ts","../src/astro/blocks/cover.ts","../src/astro/blocks/helpers.ts","../src/astro/native/button.ts","../src/astro/native/flowpress-navigation-controller.ts","../src/astro/native/grid.ts","../src/astro/native/html.ts","../src/astro/native/icon.ts","../src/astro/native/map.ts","../src/astro/native/motion-preference.ts","../src/astro/native/motion.ts","../src/astro/native/query-loop.ts","../src/astro/native/registry.ts","../src/astro/native/timeline.ts","../src/astro/native/blob/blob-shapes.generated.ts","../src/astro/native/blob/config.ts","../src/astro/native/blob/controller.ts","../src/astro/native/blob/geometry.ts","../src/astro/native/blob/ids.ts"],"version":"5.9.3"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@styleflow.app/flowpress-astro-core",
3
- "version": "1.0.0-beta.27",
3
+ "version": "1.0.0-beta.29",
4
4
  "description": "Project-agnostic WordPress routing, templates, SEO and GraphQL runtime for FlowPress Astro apps.",
5
5
  "type": "module",
6
6
  "private": false,
@@ -66,7 +66,8 @@
66
66
  "dependencies": {
67
67
  "@splidejs/splide": "4.1.4",
68
68
  "@styleflow.app/astro": "1.0.0-beta.9",
69
- "@styleflow.app/flowpress-components": "1.0.0-beta.12"
69
+ "@styleflow.app/flowpress-components": "1.0.0-beta.12",
70
+ "entities": "8.1.0"
70
71
  },
71
72
  "peerDependencies": {
72
73
  "astro": ">=7.0.0"