@frontlit/page-builder 0.1.0-alpha.3 → 0.1.0-alpha.5
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/dist/blocks/index.d.ts +17 -2
- package/dist/blocks/index.js +1 -1
- package/dist/builder/index.d.ts +4 -1
- package/dist/builder/index.js +3 -3
- package/dist/{chunk-K4WCLHMS.js → chunk-5J6TLS5U.js} +316 -65
- package/dist/chunk-5J6TLS5U.js.map +1 -0
- package/dist/{chunk-GIKTOAQS.js → chunk-LMCEOWQG.js} +7 -7
- package/dist/chunk-LMCEOWQG.js.map +1 -0
- package/dist/{chunk-IU4KATI2.js → chunk-USPQ3AOW.js} +3 -3
- package/dist/{chunk-IU4KATI2.js.map → chunk-USPQ3AOW.js.map} +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3 -3
- package/dist/renderer/index.js +2 -2
- package/dist/server/index.js +145 -50
- package/dist/server/index.js.map +1 -1
- package/dist/server/islands/header-github-stars.d.ts +12 -0
- package/dist/server/islands/header-github-stars.js +31 -0
- package/dist/server/islands/header-github-stars.js.map +1 -0
- package/dist/server/islands/pricing-period-switch.d.ts +20 -0
- package/dist/server/islands/pricing-period-switch.js +151 -0
- package/dist/server/islands/pricing-period-switch.js.map +1 -0
- package/dist/server/islands/theme-mode-switcher.d.ts +1 -1
- package/dist/server/schema.d.ts +38 -0
- package/dist/server/schema.js +17 -2
- package/dist/server/schema.js.map +1 -1
- package/dist/styles.css +12 -0
- package/package.json +3 -4
- package/schema/page.v1.json +29 -1
- package/schema/site.v1.json +8 -0
- package/dist/chunk-GIKTOAQS.js.map +0 -1
- package/dist/chunk-K4WCLHMS.js.map +0 -1
package/dist/blocks/index.d.ts
CHANGED
|
@@ -21,6 +21,9 @@ interface HeaderSettings extends WidgetDefaultSettings {
|
|
|
21
21
|
linkAlignment?: "left" | "center" | "right";
|
|
22
22
|
layout?: "fixed" | "floating" | "centered";
|
|
23
23
|
backdropBlur?: boolean;
|
|
24
|
+
/** `owner/repo` (or a github.com URL). Shows a GitHub icon link. */
|
|
25
|
+
githubRepo?: string;
|
|
26
|
+
showGithubStars?: boolean;
|
|
24
27
|
}
|
|
25
28
|
|
|
26
29
|
declare const Header: Widget<HeaderSettings>;
|
|
@@ -90,14 +93,20 @@ interface FaqSettings extends WidgetDefaultSettings, TitleSettings {
|
|
|
90
93
|
|
|
91
94
|
declare const Faq: Widget<FaqSettings>;
|
|
92
95
|
|
|
96
|
+
type PricingPeriod = "monthly" | "yearly";
|
|
93
97
|
interface PricingTier {
|
|
94
98
|
name: string;
|
|
95
|
-
/** Plain display string, e.g. "$29
|
|
99
|
+
/** Plain display string, e.g. "$29". No currency/period logic. With the
|
|
100
|
+
* period switch on, this is the monthly price. */
|
|
96
101
|
price: string;
|
|
102
|
+
/** Shown when the switch is on Yearly. Falls back to `price`. */
|
|
103
|
+
priceYearly?: string;
|
|
97
104
|
description?: string;
|
|
98
105
|
features: string[];
|
|
99
106
|
buttonCaption?: string;
|
|
100
107
|
buttonAction?: string;
|
|
108
|
+
/** Button link when the switch is on Yearly. Falls back to `buttonAction`. */
|
|
109
|
+
buttonActionYearly?: string;
|
|
101
110
|
highlighted?: boolean;
|
|
102
111
|
}
|
|
103
112
|
interface PricingSettings extends WidgetDefaultSettings, TitleSettings {
|
|
@@ -106,6 +115,12 @@ interface PricingSettings extends WidgetDefaultSettings, TitleSettings {
|
|
|
106
115
|
headerAlignment?: Alignment;
|
|
107
116
|
tiers?: PricingTier[];
|
|
108
117
|
layout?: "grid" | "stacked" | "highlight";
|
|
118
|
+
/** Show a Monthly/Yearly switch above the plans. */
|
|
119
|
+
pricingSwitcher?: boolean;
|
|
120
|
+
monthlyPriceCaption?: string;
|
|
121
|
+
yearlyPriceCaption?: string;
|
|
122
|
+
/** Period selected when the page loads. Defaults to yearly. */
|
|
123
|
+
defaultPeriod?: PricingPeriod;
|
|
109
124
|
}
|
|
110
125
|
|
|
111
126
|
declare const Pricing: Widget<PricingSettings>;
|
|
@@ -266,4 +281,4 @@ interface DataSlotSettings extends WidgetDefaultSettings {
|
|
|
266
281
|
|
|
267
282
|
declare const DataSlot: Widget<DataSlotSettings>;
|
|
268
283
|
|
|
269
|
-
export { Banner, type BannerSettings, CodeSnippetBlock, type CodeSnippetSettings, Content, type ContentSettings, DataSlot, type DataSlotSettings, EmailForm, type EmailFormSettings, Embed, type EmbedSettings, Faq, type FaqItem, type FaqSettings, type FeatureItem, Featured, type FeaturedSettings, Footer, type FooterColumn, type FooterLink, type FooterSettings, Grid, type GridItem, type GridSettings, Header, type HeaderNavLink, type HeaderSettings, Hero, type HeroSettings, Marquee, type MarqueeItem, type MarqueeSettings, MediaBlock, type MediaSettings, Pricing, type PricingSettings, type PricingTier, RichText, type RichTextSettings, SupportForm, type SupportFormSettings };
|
|
284
|
+
export { Banner, type BannerSettings, CodeSnippetBlock, type CodeSnippetSettings, Content, type ContentSettings, DataSlot, type DataSlotSettings, EmailForm, type EmailFormSettings, Embed, type EmbedSettings, Faq, type FaqItem, type FaqSettings, type FeatureItem, Featured, type FeaturedSettings, Footer, type FooterColumn, type FooterLink, type FooterSettings, Grid, type GridItem, type GridSettings, Header, type HeaderNavLink, type HeaderSettings, Hero, type HeroSettings, Marquee, type MarqueeItem, type MarqueeSettings, MediaBlock, type MediaSettings, Pricing, type PricingPeriod, type PricingSettings, type PricingTier, RichText, type RichTextSettings, SupportForm, type SupportFormSettings };
|
package/dist/blocks/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export { Banner, CodeSnippetBlock, Content, DataSlot, EmailForm, Embed, Faq, Featured, Footer, Grid, Header, Hero, Marquee, MediaBlock, Pricing, RichText, SupportForm } from '../chunk-
|
|
2
|
+
export { Banner, CodeSnippetBlock, Content, DataSlot, EmailForm, Embed, Faq, Featured, Footer, Grid, Header, Hero, Marquee, MediaBlock, Pricing, RichText, SupportForm } from '../chunk-5J6TLS5U.js';
|
|
3
3
|
import '../chunk-36QHCIPM.js';
|
|
4
4
|
import '../chunk-J7Z4UW45.js';
|
|
5
5
|
import '../chunk-XU7ALPGQ.js';
|
package/dist/builder/index.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import { T as Theme, S as SectionBackground } from '../section-background-6V_LCi
|
|
|
3
3
|
import { c as WidgetInstance, P as PageData, W as Widget } from '../widget-CpE2HdgU.js';
|
|
4
4
|
import { a as PageSeo } from '../page-B5Gmm-Ys.js';
|
|
5
5
|
import { P as PageBuilderLinkComponent } from '../nav-link-BfxvQ1s6.js';
|
|
6
|
+
import * as Icons from 'lucide-react';
|
|
6
7
|
import { LucideIcon } from 'lucide-react';
|
|
7
8
|
import { R as ResolvedColorMode } from '../color-mode-DIEEt9WP.js';
|
|
8
9
|
import { T as ThemeStyle } from '../theme-style-BVd5tOsc.js';
|
|
@@ -58,6 +59,8 @@ declare function SettingsPanel({ title, onClose, children, eyebrow, description,
|
|
|
58
59
|
icon?: LucideIcon;
|
|
59
60
|
}): React__default.JSX.Element;
|
|
60
61
|
|
|
62
|
+
/** The block's `metadata.icon` (a lucide-react name), or a generic layout icon. */
|
|
63
|
+
declare function resolveIcon(name?: string): Icons.LucideIcon;
|
|
61
64
|
declare function BlockPicker({ blocks, onPick, onClose, }: {
|
|
62
65
|
blocks: Widget<any>[];
|
|
63
66
|
onPick: (name: string) => void;
|
|
@@ -234,4 +237,4 @@ declare function SeoEditor({ seo, onChange, }: {
|
|
|
234
237
|
onChange: (seo: PageSeo) => void;
|
|
235
238
|
}): React__default.JSX.Element;
|
|
236
239
|
|
|
237
|
-
export { BlockPicker, BuilderTopBar, ColorSelector, ContentPaddingSelector, MaxWidthSelector, PATTERN_PRESETS, PageBuilder, PageBuilderPropertyHeader, type PageBuilderProps, PageBuilderSlider, type PageBuilderState, type PatternPreset, type PatternPresetCategory, type PreviewDevice, SectionBackgroundPanel, SeoEditor, SettingsPanel, ThemeEditor, type ThemeEditorProps, VerticalPaddingSelector, getMaxWidthTWClass, getVerticalPaddingTWClass };
|
|
240
|
+
export { BlockPicker, BuilderTopBar, ColorSelector, ContentPaddingSelector, MaxWidthSelector, PATTERN_PRESETS, PageBuilder, PageBuilderPropertyHeader, type PageBuilderProps, PageBuilderSlider, type PageBuilderState, type PatternPreset, type PatternPresetCategory, type PreviewDevice, SectionBackgroundPanel, SeoEditor, SettingsPanel, ThemeEditor, type ThemeEditorProps, VerticalPaddingSelector, getMaxWidthTWClass, getVerticalPaddingTWClass, resolveIcon };
|
package/dist/builder/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export { BlockPicker, BuilderTopBar, ColorSelector, ContentPaddingSelector, MaxWidthSelector, PATTERN_PRESETS, PageBuilder, PageBuilderPropertyHeader, PageBuilderSlider, SectionBackgroundPanel, SeoEditor, SettingsPanel, ThemeEditor, VerticalPaddingSelector, getMaxWidthTWClass, getVerticalPaddingTWClass } from '../chunk-
|
|
3
|
-
import '../chunk-
|
|
2
|
+
export { BlockPicker, BuilderTopBar, ColorSelector, ContentPaddingSelector, MaxWidthSelector, PATTERN_PRESETS, PageBuilder, PageBuilderPropertyHeader, PageBuilderSlider, SectionBackgroundPanel, SeoEditor, SettingsPanel, ThemeEditor, VerticalPaddingSelector, getMaxWidthTWClass, getVerticalPaddingTWClass, resolveIcon } from '../chunk-LMCEOWQG.js';
|
|
3
|
+
import '../chunk-USPQ3AOW.js';
|
|
4
4
|
import '../chunk-BBI7UHOA.js';
|
|
5
|
-
import '../chunk-
|
|
5
|
+
import '../chunk-5J6TLS5U.js';
|
|
6
6
|
import '../chunk-36QHCIPM.js';
|
|
7
7
|
import '../chunk-J7Z4UW45.js';
|
|
8
8
|
import '../chunk-XU7ALPGQ.js';
|