efficient-web-builder 69.1.0 → 69.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +20 -0
- package/dist/editor/components/BlogPostSource.d.ts +2 -8
- package/dist/editor/components/BlogPostSource.js +1 -1
- package/dist/format/lib/content/post-date.d.ts +1 -0
- package/dist/format/lib/content/post-date.js +1 -1
- package/dist/format/lib/content/post-snapshot.d.ts +11 -0
- package/dist/format/lib/content/post-snapshot.js +1 -0
- package/dist/render/components/FeaturedCover.d.ts +2 -1
- package/dist/render/components/FeaturedCover.js +1 -1
- package/dist/render/components/LongRead.d.ts +2 -1
- package/dist/render/components/LongRead.js +1 -1
- package/dist/render/components/PostCard.d.ts +1 -0
- package/dist/render/components/PostCard.js +1 -1
- package/dist/render/components/PostDate.d.ts +3 -0
- package/dist/render/components/PostDate.js +1 -0
- package/dist/render/lib/document/blocks/general/FeaturedCover/render.js +1 -1
- package/dist/render/lib/document/blocks/general/LongRead/render.js +1 -1
- package/dist/render/lib/document/blocks/general/PostCard/render.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 69.2.0 - 2026-11-15
|
|
4
|
+
|
|
5
|
+
From main at `18a8db55`: #756. A minor: no `!`, no export is removed, the peers stay `efficient-easel` `^34.3.0` and `efficient-shell` `^13.3.0`. New exports only. `postDateLabel` is deprecated (delete by 2026-12-12, in a major).
|
|
6
|
+
|
|
7
|
+
**For hosts:**
|
|
8
|
+
- storefront-blocks and storefront may draw a post's date with `PostDate` / `postDay` (the reader's day) and stop writing the UTC day (`postDateLabel`). No step is required to take this release.
|
|
9
|
+
- Stored data: 8 linked post snapshots on the two US `/journal` pages have no `publishedAt` and `date: ""`, so they draw no day today and need no change to take this release. Adding `publishedAt` to them is a separate CLI move with its own approval.
|
|
10
|
+
|
|
11
|
+
### Added
|
|
12
|
+
|
|
13
|
+
- **A post's date is the reader's day** (#756): new `render/components/PostDate` draws `<time dateTime>` with the instant; the server draws no day (an invisible stand-in holds the width), and the browser fills in the reader's day, so hydration does not mismatch. New `postDay(iso)` in `lib/content/post-date`, written by efficient-shell `formatDate`. New `lib/content/post-snapshot` (`BlogPostSnapshot`, `postSnapshotOf`), the one blog row -> snapshot mapper: a snapshot stores `publishedAt` and `date: ""`.
|
|
14
|
+
|
|
15
|
+
### Changed
|
|
16
|
+
|
|
17
|
+
- **Featured cover, Long read and Post card** (#756): a linked post with an instant draws `PostDate`; a hand-typed date or an old snapshot's `date` text draws as before. `BlogPostSource` uses `postSnapshotOf` and re-pulls a stored snapshot without `publishedAt` on its next open. `BlogPostSourceValue` is now `type BlogPostSourceValue = BlogPostSnapshot` (same fields).
|
|
18
|
+
|
|
19
|
+
### Deprecated
|
|
20
|
+
|
|
21
|
+
- **`postDateLabel`** (the UTC day, `lib/content/post-date`, #756): delete by 2026-12-12, in a major. Nothing in `src/` calls it.
|
|
22
|
+
|
|
3
23
|
## 69.1.0 - 2026-11-15
|
|
4
24
|
|
|
5
25
|
From main at `2ee511c3`: #755, #757, #758, #759. A minor: no `!`, no export is removed, the peers stay `efficient-easel` `^34.3.0` and `efficient-shell` `^13.3.0`. New exports only. No stored key or value moves.
|
|
@@ -1,11 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
image: string;
|
|
4
|
-
title: string;
|
|
5
|
-
dek: string;
|
|
6
|
-
date: string;
|
|
7
|
-
href: string;
|
|
8
|
-
}
|
|
1
|
+
import { type BlogPostSnapshot } from "../../format/lib/content/post-snapshot.js";
|
|
2
|
+
export type BlogPostSourceValue = BlogPostSnapshot;
|
|
9
3
|
interface Props {
|
|
10
4
|
value?: BlogPostSourceValue | null;
|
|
11
5
|
onChange: (value: BlogPostSourceValue | null) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import{jsx as e,Fragment as i,jsxs as B}from"react/jsx-runtime";import{useContext as P}from"react";import{SettingsField as
|
|
1
|
+
"use client";import{jsx as e,Fragment as i,jsxs as B}from"react/jsx-runtime";import{useContext as P}from"react";import{SettingsField as p}from"efficient-easel/panel";import{FieldSelect as f}from"efficient-easel/fields";import{BlogPostIcon as g}from"efficient-easel/icons";import{ScreenDocumentContext as L}from"efficient-easel/screen/components/ScreenDocumentContext";import{loadStorefrontBlogPosts as C}from"./useStorefrontBlogPosts.js";import{useSnapshotSource as j}from"./useSnapshotSource.js";import w from"./SourceStatus.js";import{storedPickRow as F}from"../../format/components/stored-pick-row.js";import{say as t}from"../../format/lib/editor-words.js";import{postSnapshotOf as h}from"../../format/lib/content/post-snapshot.js";function N({value:o,onChange:n}){const r=P(L);return r&&!r.capabilities.hasBlog?o?.slug?e(T,{value:o,onChange:n}):e(i,{}):e(O,{value:o,onChange:n})}function T({value:o,onChange:n}){return e("div",{children:e(p,{label:t("Blog post source"),icon:e(g,{}),hint:e(i,{children:t("Linked to a blog post. This editor has no blog to pick another from; choose “None (manual)” to author the section yourself.")}),children:e(f,{value:o.slug,ariaLabel:t("Blog post source"),onChange:r=>r?void 0:n(null),options:[{label:t("None (manual)"),value:""},{label:o.title||o.slug,value:o.slug}]})})})}function O({value:o,onChange:n}){const{rows:r,loading:m,refreshing:a,errored:d,refresh:b}=j({load:C,resolve:(s,l)=>s.find(c=>c.slug===l.slug),snapshot:h,value:o,onChange:n}),k=s=>{if(!s){n(null);return}const l=(r??[]).find(c=>c.slug===s);l&&n(h(l))},S=o?.slug&&!(r??[]).some(s=>s.slug===o.slug),x=d?"error":a?"loading":"idle",u=t("Storefront → Blog"),y=d?t("Couldn’t reach {place}.",{place:u}):a?t("Syncing from {place}…",{place:u}):t("Linked to “{name}”",{name:o?.title||o?.slug||""});return B("div",{children:[e(p,{label:t("Blog post source"),icon:e(g,{}),hint:o?.slug?void 0:e(i,{children:t("Pick a post from {place} to auto-fill this section, or keep “None (manual)” to author it yourself below.",{place:u})}),children:e(f,{value:o?.slug??"",ariaLabel:t("Blog post source"),onChange:k,readOnly:m,options:[{label:t("None (manual)"),value:""},...S?[F({name:o.title||o.slug,value:o.slug},!m)]:[],...(r??[]).map(s=>({label:s.title,value:s.slug}))]})}),o?.slug?e(w,{status:x,statusText:y,onRefresh:b,busy:a,hint:e(i,{children:t("Auto-fills the cover image, headline, dek, date and link from this post each time you open the editor. Those fields are hidden while a post is linked; the remaining fields stay yours to set.")})}):null]})}export{N as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{formatDate as t}from"efficient-shell/format";const r={
|
|
1
|
+
import{formatDate as t}from"efficient-shell/format";const r={year:"numeric",month:"short",day:"2-digit"},n="en-US";function o(e){return!!e&&!Number.isNaN(new Date(e).getTime())}function u(e){return o(e)?t(e,{locale:n,style:r}):""}function i(e){return o(e)?t(e,{locale:n,style:r,timeZone:"UTC"}):""}export{i as postDateLabel,u as postDay};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { BlogPostRow } from "../web-backend.js";
|
|
2
|
+
export interface BlogPostSnapshot {
|
|
3
|
+
slug: string;
|
|
4
|
+
image: string;
|
|
5
|
+
title: string;
|
|
6
|
+
dek: string;
|
|
7
|
+
publishedAt?: string;
|
|
8
|
+
date: string;
|
|
9
|
+
href: string;
|
|
10
|
+
}
|
|
11
|
+
export declare function postSnapshotOf(p: Pick<BlogPostRow, "slug" | "title" | "excerpt" | "coverImage" | "publishedAt" | "href">): BlogPostSnapshot;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function t(e){return{slug:e.slug,image:e.coverImage,title:e.title,dek:e.excerpt,publishedAt:e.publishedAt??"",date:"",href:e.href}}export{t as postSnapshotOf};
|
|
@@ -5,10 +5,11 @@ export interface FeaturedCoverProps {
|
|
|
5
5
|
category?: string;
|
|
6
6
|
readLabel?: string;
|
|
7
7
|
date?: string;
|
|
8
|
+
dateAt?: string;
|
|
8
9
|
title?: string;
|
|
9
10
|
dek?: string;
|
|
10
11
|
ctaText?: string;
|
|
11
12
|
ctaHref?: string;
|
|
12
13
|
omitHead?: boolean;
|
|
13
14
|
}
|
|
14
|
-
export default function FeaturedCover({ image, badge, imageDate, category, readLabel, date, title, dek, ctaText, ctaHref, omitHead, }: FeaturedCoverProps): import("react").JSX.Element;
|
|
15
|
+
export default function FeaturedCover({ image, badge, imageDate, category, readLabel, date, dateAt, title, dek, ctaText, ctaHref, omitHead, }: FeaturedCoverProps): import("react").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as e,jsxs as
|
|
1
|
+
import{jsx as e,jsxs as l}from"react/jsx-runtime";import{EDITORIAL_COLUMN as w}from"../../format/lib/content/page-width.js";import{HideTaker as y}from"./ViewHideRoot.js";import{Fragment as z}from"react";import{SiteLink as $}from"../lib/site-runtime.js";import b from"./PostDate.js";import{stripMarkup as S}from"../../format/lib/markup.js";import j from"./Placeholder.js";import{renderGold as r,renderHeadline as L,splitParagraphs as _}from"./goldPhrases.js";import{scrim as u}from"../../format/lib/content/scrim.js";const n={body:"text-[length:var(--size-body,20px)]",labelSmall:"text-[length:var(--size-label,12px)]",labelLarge:"text-[length:var(--size-label,13px)]"};function P({image:v,badge:o,imageDate:p,category:c,readLabel:m,date:d,dateAt:a,title:s,dek:f,ctaText:x,ctaHref:N,omitHead:k=!1}){const g=[c?e("span",{className:"text-accent",children:r(c)}):null,m?e("span",{children:r(m)}):null,a?e("span",{children:e(b,{at:a})}):d?e("span",{children:r(d)}):null].filter(Boolean),h=l("article",{className:"sf-card relative grid grid-cols-[1.3fr_1fr] border border-line bg-[var(--card-bg)] max-view-desktop:grid-cols-1",children:[l("div",{className:"relative aspect-[5/4] overflow-hidden border-r border-line bg-surface-2 max-view-desktop:border-r-0 max-view-desktop:border-b",children:[e(j,{label:"featured-cover",src:v||void 0,alt:S(s||"Cover"),sizes:"(max-width: 1100px) 100vw, 56vw"}),e("div",{className:"pointer-events-none absolute inset-0 z-[1]",style:{background:`linear-gradient(180deg, ${u(.45)} 0%, transparent 30%, transparent 70%, ${u(.55)} 100%)`}}),o&&e("span",{className:`absolute left-6 top-6 z-[2] bg-accent px-3 py-2 font-mono ${n.labelSmall} uppercase tracking-[0.3em] text-bg`,children:r(o)}),(a||p)&&e("span",{className:`absolute right-6 bottom-6 z-[2] font-mono ${n.labelSmall} uppercase tracking-[0.24em] text-overlay-fg`,children:a?e(b,{at:a}):r(p)})]}),l("div",{className:"flex flex-col justify-between gap-6 px-12 py-14 max-view-desktop:px-7 max-view-desktop:py-9",children:[g.length>0&&e("div",{className:`flex items-center gap-4 font-mono ${n.labelSmall} uppercase tracking-[0.28em] text-fg-dim`,children:g.map((i,t)=>l(z,{children:[t>0&&e("span",{className:"opacity-40",children:"·"}),i]},t))}),s&&e("h2",{className:"font-heading2 text-[length:min(var(--size-headingMedium,clamp(34px,3.5vw,58px)),var(--sf-heading-max,9999px))] font-medium uppercase leading-none tracking-[-0.03em]",children:L(s,!0)}),f&&_(f).map((i,t)=>e("p",{className:`max-w-[520px] font-serif ${n.body} italic leading-[1.5] text-fg-dim`,children:r(i,!0)},t)),x&&e("div",{children:l($,{newTab:"auto",href:N||"#",className:`group inline-flex items-center gap-3.5 py-3.5 font-mono ${n.labelLarge} uppercase tracking-[0.3em] text-accent`,children:[r(x)," ",e("span",{className:"transition-transform group-hover:translate-x-[6px]",children:"→"})]})})]})]});return k?h:e(y,{as:"section",className:"border-b border-line py-20 max-view-desktop:py-[60px]",children:e("div",{className:w,children:h})})}export{P as default};
|
|
@@ -15,6 +15,7 @@ export interface LongReadProps {
|
|
|
15
15
|
image?: string;
|
|
16
16
|
imageLabel?: string;
|
|
17
17
|
metaPublished?: string;
|
|
18
|
+
metaPublishedAt?: string;
|
|
18
19
|
metaReads?: string;
|
|
19
20
|
}
|
|
20
|
-
export default function LongRead({ headNum, headTitle, headDesc, category, metaMiddle, readLabel, title, dek, quote, quoteAttribution, ctaText, ctaHref, image, imageLabel, metaPublished, metaReads, omitHead, }: LongReadProps): import("react").JSX.Element;
|
|
21
|
+
export default function LongRead({ headNum, headTitle, headDesc, category, metaMiddle, readLabel, title, dek, quote, quoteAttribution, ctaText, ctaHref, image, imageLabel, metaPublished, metaPublishedAt, metaReads, omitHead, }: LongReadProps): import("react").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as e,jsxs as r,Fragment as m}from"react/jsx-runtime";import{EDITORIAL_COLUMN as
|
|
1
|
+
import{jsx as e,jsxs as r,Fragment as m}from"react/jsx-runtime";import{EDITORIAL_COLUMN as E}from"../../format/lib/content/page-width.js";import{HideTaker as B}from"./ViewHideRoot.js";import{Fragment as w}from"react";import{SiteLink as F}from"../lib/site-runtime.js";import I from"./PostDate.js";import{stripMarkup as O}from"../../format/lib/markup.js";import T from"./EditorialSectionHead.js";import C from"./Placeholder.js";import D from"./SectionEyebrow.js";import{renderGold as a,renderHeadline as z}from"./goldPhrases.js";import{scrim as S}from"../../format/lib/content/scrim.js";const n={bodySmall:"text-[length:var(--size-body,14px)]",body:"text-[length:var(--size-body,17px)]",bodyLarge:"text-[length:var(--size-body,22px)]",labelSmall:"text-[length:var(--size-label,12px)]",labelLarge:"text-[length:var(--size-label,13px)]"};function H({headNum:L,headTitle:x,headDesc:f,category:g,metaMiddle:b,readLabel:h,title:o,dek:v,quote:i,quoteAttribution:s,ctaText:u,ctaHref:$,image:_,imageLabel:k,metaPublished:d,metaPublishedAt:t,metaReads:c,omitHead:y=!1}){const N=[g?e("span",{className:"text-accent",children:a(g)}):null,b?e("span",{children:a(b)}):null,h?e("span",{children:a(h)}):null].filter(Boolean),j=!!t||!!d||!!c;return e(B,{as:"section",className:y?"border-b border-line pt-0 pb-[120px] max-view-desktop:pt-0 max-view-desktop:pb-20":"border-b border-line py-[120px] max-view-desktop:py-20",children:r("div",{className:E,children:[y?null:e(T,{num:L,title:x?z(x,!0):void 0,desc:f?a(f):void 0}),r("article",{className:"sf-card grid min-h-[640px] grid-cols-[1fr_1.2fr] border border-line max-view-desktop:grid-cols-1",children:[r("div",{className:"flex flex-col justify-center gap-7 border-r border-line bg-surface px-14 py-16 max-view-desktop:border-r-0 max-view-desktop:border-b max-view-desktop:px-7 max-view-desktop:py-12",children:[N.length>0&&e("div",{className:`flex items-center gap-3.5 font-mono ${n.labelSmall} uppercase tracking-[0.3em] text-fg-dim`,children:N.map((p,l)=>r(w,{children:[l>0&&e("span",{className:"opacity-40",children:"·"}),p]},l))}),o&&e("h2",{className:"font-heading2 text-[length:min(var(--size-headingMedium,clamp(36px,4.2vw,68px)),var(--sf-heading-max,9999px))] font-medium uppercase leading-[0.95] tracking-[-0.035em]",children:z(o,!0)}),v&&e("p",{className:`font-serif ${n.bodyLarge} italic leading-[1.45] text-fg`,children:a(v)}),(i||s)&&r("blockquote",{className:`max-w-[520px] border-l-2 border-accent py-1.5 pl-[22px] font-serif ${n.body} italic leading-[1.6] text-fg-dim`,children:[i&&r(m,{children:["“",a(i),"”"]}),s&&e("strong",{className:`mt-2.5 block font-display ${n.bodySmall} font-normal not-italic uppercase tracking-[0.22em] text-fg`,children:a(s)})]}),u&&r(F,{newTab:"auto",href:$||"#",className:`inline-flex items-center gap-3.5 self-start border border-btn px-7 py-4 font-mono ${n.labelLarge} uppercase tracking-[0.3em] text-btn transition-colors hover:bg-btn hover:text-btn-ink`,children:[a(u)," ",e("span",{children:"→"})]})]}),r("div",{className:"relative overflow-hidden bg-surface-2 max-view-desktop:aspect-[4/3]",children:[e(C,{label:"long-read",src:_||void 0,alt:O(o||"Long read"),sizes:"(max-width: 1100px) 100vw, 56vw"}),e("div",{className:"pointer-events-none absolute inset-0 z-[1]",style:{background:`linear-gradient(180deg, ${S(.55)} 0%, transparent 25%, transparent 60%, ${S(.7)} 100%)`}}),k&&e(D,{text:k,size:12,className:"absolute right-6 top-6 z-[2]"}),j&&e("div",{className:`absolute bottom-6 left-6 z-[2] font-mono ${n.labelSmall} uppercase leading-[1.8] tracking-[0.22em] text-overlay-fg`,children:[t||d?r(m,{children:[e("strong",{className:"font-normal text-accent",children:"Published"})," ",t?e(I,{at:t}):a(d)]}):null,c?r(m,{children:[e("strong",{className:"font-normal text-accent",children:"Reads in"})," ",a(c)]}):null].filter(Boolean).map((p,l)=>r(w,{children:[l>0&&e("br",{}),p]},l))})]})]})]})})}export{H as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as a,jsxs as
|
|
1
|
+
import{jsx as a,jsxs as r}from"react/jsx-runtime";import{NO_HIDE as y,useTakeViewHide as H,withViewHide as s}from"./ViewHideRoot.js";import{SiteLink as m}from"../lib/site-runtime.js";import _ from"./PostDate.js";import{boxDarkenStyle as T,boxPlacementClasses as z,CARD_SHADOW_CLASS as A}from"../../format/lib/content/box-background.js";import{POST_CARD_HEIGHT as C}from"../../format/lib/post-card-layout.js";import D from"./PictureWash.js";import o from"./Placeholder.js";import{renderGold as i,renderHeadline as h}from"./goldPhrases.js";const l={body:"text-[length:var(--size-body,14px)]",headingSmall1:"text-[length:var(--size-headingSmall,22px)]",headingSmall2:"text-[length:var(--size-headingSmall,30px)]",label:"text-[length:var(--size-label,13px)]"};function P({post:e,scaffold:n=!1,layout:g,showCover:f=!0,placement:x,darken:u,darkenStyle:b,href:v,minHeight:p,takesViewHide:N=!1}){const w=H(),t=N?w:y,c=v||(n?"#":`/journal/${e.slug}`),$=g==="cover",d=e.publishedAt?a(_,{at:e.publishedAt}):e.dateLabel?i(e.dateLabel):null,k=(e.meta||d||e.read)&&r("div",{className:`flex gap-3.5 font-mono ${l.label} uppercase tracking-[0.18em] text-fg-dim`,children:[e.meta&&a("span",{className:"text-accent",children:i(e.meta)}),d&&a("span",{children:d}),e.read&&a("span",{children:i(e.read)})]});if($){const S=T(u,b);return t.scope(r(m,{newTab:"auto",href:c,className:s(`${A} group relative isolate flex overflow-hidden`,t.className),...t.attrs,style:{minHeight:`${p??C.fallback}px`},"aria-disabled":n||void 0,tabIndex:n?-1:void 0,children:[a("div",{className:"absolute inset-0",children:a(o,{label:`post-${e.slug}`,src:e.cover||void 0,sizes:"(max-width: 800px) 100vw, 56vw"})}),a(D,{wash:S}),r("div",{className:`relative z-[1] flex w-full flex-col gap-2 p-8 text-overlay-fg max-view-wide:p-5 ${z(x??"bottom-left","column")}`,children:[e.meta&&a("div",{className:`font-mono ${l.label} uppercase tracking-[0.18em] text-accent`,children:i(e.meta)}),a("h3",{className:`font-heading3 ${l.headingSmall2} font-medium leading-[1.2] tracking-[-0.02em]`,children:h(e.title,!1)}),e.excerpt&&a("p",{className:`max-w-[46ch] ${l.body} leading-[1.55] opacity-80`,children:i(e.excerpt)}),(d||e.read)&&r("div",{className:`flex gap-3.5 font-mono ${l.label} uppercase tracking-[0.18em] opacity-75`,children:[d&&a("span",{children:d}),e.read&&a("span",{children:i(e.read)})]})]})]}))}return t.scope(r(m,{newTab:"auto",href:c,style:{"--card-bg":"var(--site-surface)","--card-bg-hover":"var(--site-surface-2)"},className:s("sf-card sf-card-fill group block bg-[var(--card-bg)] transition-colors duration-300 hover:bg-[var(--card-bg-hover)]",t.className),...t.attrs,"aria-disabled":n||void 0,tabIndex:n?-1:void 0,children:[f&&(e.cover||n)&&a("div",{className:"sf-card-image relative aspect-[16/10] overflow-hidden bg-bg",children:a(o,{label:`event-${e.slug}`,src:e.cover||void 0})}),r("div",{className:"flex flex-col gap-2.5 px-7 pb-8 pt-6",children:[k,a("h3",{className:`mt-1 font-heading3 ${l.headingSmall1} font-medium leading-[1.2] tracking-[-0.02em]`,children:h(e.title,!1)}),e.excerpt&&a("p",{className:`${l.body} leading-[1.55] text-fg-dim`,children:i(e.excerpt)}),r("span",{className:`mt-1.5 inline-flex items-center gap-2 font-mono ${l.label} uppercase tracking-[0.2em] transition-colors group-hover:text-accent`,children:["Read more",a("span",{"aria-hidden":!0,children:"→"})]})]})]}))}export{P as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{jsx as s,jsxs as i}from"react/jsx-runtime";import{useSyncExternalStore as n}from"react";import{postDay as r}from"../../format/lib/content/post-date.js";const o="MMM 00, 0000",a={display:"inline-grid"},c={gridArea:"1 / 1",visibility:"hidden"},l={gridArea:"1 / 1"},d=()=>()=>{},m=()=>"";function p({at:e}){const t=n(d,()=>r(e),m);return i("time",{dateTime:e,style:a,children:[s("span",{"aria-hidden":"true",style:c,children:o}),s("span",{style:l,children:t})]})}export{p as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as x}from"react/jsx-runtime";import H from"../../../../../components/FeaturedCover.js";import{hidableText as h}from"efficient-easel/draw";import{phHide as a}from"../../scaffold.js";import{parseSectionHeadPlacement as k}from"../../../../../../format/lib/sections/section-head-placement.js";import{FeaturedCoverMeta as C,FEATUREDCOVER_PH as r}from"../../../../../../format/lib/document/blocks/general/FeaturedCover/meta.js";const R={...C,render:({source:m,image:o,badge:i,imageDate:n,category:c,readLabel:f,date:l,title:p,dek:s,ctaText:g,ctaHref:u,headPlacement:b,editor:e})=>{const t=m,d=!!t?.slug;return x(H,{image:d?t.image:o,badge:a(i,r.badge,e),imageDate:d?t.date:a(n,r.imageDate,e),category:a(c,r.category,e),readLabel:a(f,r.readLabel,e),date:d?t.date:a(l,r.date,e),dateAt:d&&t.publishedAt||void 0,title:d?t.title:a(p,r.title,e),dek:d?t.dek:a(s,r.dek,e),ctaText:a(g,r.ctaText,e),ctaHref:d?t.href:h(u),omitHead:k(b)==="own-box"})}};export{R as FeaturedCoverRender};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as q}from"react/jsx-runtime";import D from"../../../../../components/LongRead.js";import{hidableText as M}from"efficient-easel/draw";import{parseSectionHeadPlacement as N}from"../../../../../../format/lib/sections/section-head-placement.js";import{phHide as a}from"../../scaffold.js";import{LongReadMeta as j,LONGREAD_PH as t}from"../../../../../../format/lib/document/blocks/general/LongRead/meta.js";const O={...j,render:({source:i,headNum:l,headTitle:s,headDesc:u,category:c,metaMiddle:h,readLabel:r,title:b,dek:f,quote:g,quoteAttribution:p,ctaText:x,ctaHref:L,image:R,imageLabel:A,metaPublished:H,metaReads:P,headPlacement:T,editor:e})=>{const o=N(T)==="own-box",n=k=>o?void 0:k,m=i,d=!!m?.slug;return q(D,{headNum:n(a(l,t.headNum,e)),headTitle:n(a(s,t.headTitle,e)),headDesc:n(a(u,t.headDesc,e)),omitHead:o,category:a(c,t.category,e),metaMiddle:a(h,t.metaMiddle,e),readLabel:a(r,t.readLabel,e),title:d?m.title:a(b,t.title,e),dek:d?m.dek:a(f,t.dek,e),quote:a(g,t.quote,e),quoteAttribution:a(p,t.quoteAttribution,e),ctaText:a(x,t.ctaText,e),ctaHref:d?m.href:M(L),image:d?m.image:R,imageLabel:a(A,t.imageLabel,e),metaPublished:d?m.date:a(H,t.metaPublished,e),metaPublishedAt:d&&m.publishedAt||void 0,metaReads:a(P,t.metaReads,e)})}};export{O as LongReadRender};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as n}from"react/jsx-runtime";import r from"../../../../../components/PostCard.js";import{hidableText as l}from"efficient-easel/draw";import{phHide as i}from"../../scaffold.js";import{PostCardMeta as o,POSTCARD_PH as a}from"../../../../../../format/lib/document/blocks/general/PostCard/meta.js";const g={...o,render:e=>{const t=e.source,d=!!t?.slug;return n(r,{takesViewHide:!0,post:{slug:d?t.slug:"post-card",title:(d?t.title:i(e.title,a.title,e.editor))||"",excerpt:(d?t.dek:i(e.excerpt,a.excerpt,e.editor))||"",cover:(d?t.image:e.image)||"",meta:i(e.category,a.category,e.editor)||void 0,dateLabel:(d?t.date:i(e.date,a.date,e.editor))||void 0,publishedAt:(d?t.publishedAt:void 0)||void 0,read:i(e.readLabel,a.readLabel,e.editor)||void 0},href:(d?t.href:l(e.href))||void 0,layout:e.layout,showCover:e.showCover,placement:e.placement,darken:e.darken,darkenStyle:e.darkenStyle,minHeight:e.minHeight,scaffold:!!e.editor?.isEditing&&!d})}};export{g as PostCardRender};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "efficient-web-builder",
|
|
3
|
-
"version": "69.
|
|
3
|
+
"version": "69.2.0",
|
|
4
4
|
"description": "The EFFICIENT website builder: the website editor, the general sections and the renderer that draws them, compiled. Hostable by any EFFICIENT product; nothing here imports a host.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"author": "Efficient Pty Ltd",
|