@frontlit/page-builder 0.1.0-alpha.5 → 0.1.0-alpha.7
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 +1 -1
- package/dist/blocks/index.js +3 -3
- package/dist/builder/index.js +6 -6
- package/dist/{chunk-LMCEOWQG.js → chunk-HEKBPKGS.js} +6 -6
- package/dist/{chunk-LMCEOWQG.js.map → chunk-HEKBPKGS.js.map} +1 -1
- package/dist/{chunk-USPQ3AOW.js → chunk-I2LRKHSL.js} +6 -6
- package/dist/{chunk-USPQ3AOW.js.map → chunk-I2LRKHSL.js.map} +1 -1
- package/dist/{chunk-J7Z4UW45.js → chunk-KRQWGGAJ.js} +353 -8
- package/dist/chunk-KRQWGGAJ.js.map +1 -0
- package/dist/{chunk-BBI7UHOA.js → chunk-LL6CG6KH.js} +3 -3
- package/dist/{chunk-BBI7UHOA.js.map → chunk-LL6CG6KH.js.map} +1 -1
- package/dist/{chunk-36QHCIPM.js → chunk-QMUIISN3.js} +5 -93
- package/dist/chunk-QMUIISN3.js.map +1 -0
- package/dist/{chunk-5J6TLS5U.js → chunk-XQE4RVNO.js} +5 -5
- package/dist/chunk-XQE4RVNO.js.map +1 -0
- package/dist/components/index.d.ts +1 -1
- package/dist/components/index.js +3 -3
- package/dist/{image-Bk8kPXwP.d.ts → image-Cv0aSUHD.d.ts} +3 -1
- package/dist/index.js +6 -6
- package/dist/primitives/index.d.ts +70 -1
- package/dist/primitives/index.js +1 -1
- package/dist/renderer/index.js +5 -5
- package/dist/server/index.js +10 -5
- package/dist/server/index.js.map +1 -1
- package/dist/server/islands/code-snippet.js +1 -1
- package/dist/server/islands/code-snippet.js.map +1 -1
- package/dist/server/islands/header-mobile-menu.js +1 -1
- package/dist/server/islands/header-mobile-menu.js.map +1 -1
- package/dist/server/islands/tabs.d.ts +23 -0
- package/dist/server/islands/tabs.js +86 -0
- package/dist/server/islands/tabs.js.map +1 -0
- package/dist/server/primitives.d.ts +83 -1
- package/dist/server/primitives.js +253 -35
- package/dist/server/primitives.js.map +1 -1
- package/dist/styles.css +78 -0
- package/package.json +1 -1
- package/dist/chunk-36QHCIPM.js.map +0 -1
- package/dist/chunk-5J6TLS5U.js.map +0 -1
- package/dist/chunk-J7Z4UW45.js.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React__default from 'react';
|
|
2
|
-
export { A as AspectRatio, I as Image, a as ImageAttributesInput, b as ImageAttributesResolver, c as ImageObjectFit, V as VideoThumbnailProps, d as VideoWithPreview, r as roundedMap, s as setImageAttributesResolver } from '../image-
|
|
2
|
+
export { A as AspectRatio, I as Image, a as ImageAttributesInput, b as ImageAttributesResolver, c as ImageObjectFit, V as VideoThumbnailProps, d as VideoWithPreview, r as resolveImageAttributes, e as roundedMap, s as setImageAttributesResolver } from '../image-Cv0aSUHD.js';
|
|
3
3
|
export { N as NavLink, P as PageBuilderLinkComponent, a as PageBuilderLinkProps, b as PageBuilderLinkProvider, u as usePageBuilderLinkComponent } from '../nav-link-BfxvQ1s6.js';
|
|
4
4
|
import { T as ThemeStyle } from '../theme-style-BVd5tOsc.js';
|
|
5
5
|
import { B as ButtonProps } from '../button-OLKN3wPf.js';
|
package/dist/components/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export { ThemeModeSwitcher } from '../chunk-
|
|
3
|
-
export {
|
|
4
|
-
|
|
2
|
+
export { ThemeModeSwitcher } from '../chunk-LL6CG6KH.js';
|
|
3
|
+
export { InlineEmbed, NavLink, PageBuilderLinkProvider, TextRenderer, VideoWithPreview, prepareEmbed, usePageBuilderLinkComponent } from '../chunk-QMUIISN3.js';
|
|
4
|
+
export { Image, resolveImageAttributes, roundedMap, setImageAttributesResolver } from '../chunk-KRQWGGAJ.js';
|
|
5
5
|
import '../chunk-XU7ALPGQ.js';
|
|
6
6
|
import { jsx } from 'react/jsx-runtime';
|
|
7
7
|
export { truncateTextEditorContent } from '@frontlit/text-editor';
|
|
@@ -29,6 +29,8 @@ type ImageAttributesResolver = (input: ImageAttributesInput) => React__default.I
|
|
|
29
29
|
* run without one emit the original URL.
|
|
30
30
|
*/
|
|
31
31
|
declare function setImageAttributesResolver(resolver: ImageAttributesResolver | null): void;
|
|
32
|
+
/** The registered resolver's attributes for an image, if any. */
|
|
33
|
+
declare function resolveImageAttributes(input: ImageAttributesInput): React__default.ImgHTMLAttributes<HTMLImageElement> | null;
|
|
32
34
|
type ImageObjectFit = "cover" | "contain" | "fill" | "none" | "scale-down";
|
|
33
35
|
declare const roundedMap: Record<number, string>;
|
|
34
36
|
interface ImgProps {
|
|
@@ -49,4 +51,4 @@ interface ImgProps {
|
|
|
49
51
|
}
|
|
50
52
|
declare const Image: (props: ImgProps) => React__default.JSX.Element;
|
|
51
53
|
|
|
52
|
-
export { type AspectRatio as A, Image as I, type VideoThumbnailProps as V, type ImageAttributesInput as a, type ImageAttributesResolver as b, type ImageObjectFit as c, VideoWithPreview as d, roundedMap as r, setImageAttributesResolver as s };
|
|
54
|
+
export { type AspectRatio as A, Image as I, type VideoThumbnailProps as V, type ImageAttributesInput as a, type ImageAttributesResolver as b, type ImageObjectFit as c, VideoWithPreview as d, roundedMap as e, resolveImageAttributes as r, setImageAttributesResolver as s };
|
package/dist/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import './chunk-HWOVSHIW.js';
|
|
3
|
-
export { BlockPicker, BuilderTopBar, ColorSelector, ContentPaddingSelector, MaxWidthSelector, PATTERN_PRESETS, PageBuilder, PageBuilderPropertyHeader, PageBuilderSlider, SectionBackgroundPanel, SeoEditor, SettingsPanel, ThemeEditor, VerticalPaddingSelector, createDefaultLayout, createWidgetInstance, ensureRequiredSharedWidgets, getDefaultTheme, getMaxWidthTWClass, getVerticalPaddingTWClass, resolveIcon, withDefaultSettings } from './chunk-
|
|
4
|
-
export { EditableBlock, LAYOUT_BLOCK_NAMES, NON_ADDABLE_BLOCK_NAMES, PageRenderer, blockRegistry, generateThemeStyles, getAddableBlocks, getWidget, registerBlock, resolveThemeColor } from './chunk-
|
|
5
|
-
import './chunk-
|
|
6
|
-
import './chunk-
|
|
7
|
-
export { PageBuilderLinkProvider } from './chunk-
|
|
8
|
-
import './chunk-
|
|
3
|
+
export { BlockPicker, BuilderTopBar, ColorSelector, ContentPaddingSelector, MaxWidthSelector, PATTERN_PRESETS, PageBuilder, PageBuilderPropertyHeader, PageBuilderSlider, SectionBackgroundPanel, SeoEditor, SettingsPanel, ThemeEditor, VerticalPaddingSelector, createDefaultLayout, createWidgetInstance, ensureRequiredSharedWidgets, getDefaultTheme, getMaxWidthTWClass, getVerticalPaddingTWClass, resolveIcon, withDefaultSettings } from './chunk-HEKBPKGS.js';
|
|
4
|
+
export { EditableBlock, LAYOUT_BLOCK_NAMES, NON_ADDABLE_BLOCK_NAMES, PageRenderer, blockRegistry, generateThemeStyles, getAddableBlocks, getWidget, registerBlock, resolveThemeColor } from './chunk-I2LRKHSL.js';
|
|
5
|
+
import './chunk-LL6CG6KH.js';
|
|
6
|
+
import './chunk-XQE4RVNO.js';
|
|
7
|
+
export { PageBuilderLinkProvider } from './chunk-QMUIISN3.js';
|
|
8
|
+
import './chunk-KRQWGGAJ.js';
|
|
9
9
|
export { getMediaAlt, getMediaUrl } from './chunk-XU7ALPGQ.js';
|
|
10
10
|
export { loadDataSlots } from './chunk-ATNM5JHI.js';
|
|
11
11
|
//# sourceMappingURL=index.js.map
|
|
@@ -104,6 +104,19 @@ interface CheckboxProps extends React$1.ComponentPropsWithoutRef<typeof Checkbox
|
|
|
104
104
|
}
|
|
105
105
|
declare const Checkbox: React$1.ForwardRefExoticComponent<CheckboxProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
106
106
|
|
|
107
|
+
interface CollapsibleProps {
|
|
108
|
+
summary: React__default.ReactNode;
|
|
109
|
+
children: React__default.ReactNode;
|
|
110
|
+
defaultOpen?: boolean;
|
|
111
|
+
/** `bordered` draws a card-like box; `plain` only the toggle row. */
|
|
112
|
+
variant?: "bordered" | "plain";
|
|
113
|
+
id?: string;
|
|
114
|
+
theme?: ThemeStyle;
|
|
115
|
+
className?: string;
|
|
116
|
+
}
|
|
117
|
+
/** A disclosure built on native `<details>`: works without JavaScript. */
|
|
118
|
+
declare function Collapsible({ summary, children, defaultOpen, variant, id, theme, className, }: CollapsibleProps): React__default.JSX.Element;
|
|
119
|
+
|
|
107
120
|
interface DialogProps extends React$1.ComponentPropsWithoutRef<typeof DialogPrimitive.Root> {
|
|
108
121
|
theme?: ThemeStyle;
|
|
109
122
|
}
|
|
@@ -234,9 +247,20 @@ interface ImageProps extends React__default.ImgHTMLAttributes<HTMLImageElement>
|
|
|
234
247
|
alt?: string;
|
|
235
248
|
className?: string;
|
|
236
249
|
theme?: ThemeStyle;
|
|
250
|
+
/** Above-the-fold image (e.g. LCP): fetched eagerly at high priority. */
|
|
251
|
+
priority?: boolean;
|
|
237
252
|
}
|
|
238
253
|
declare const Image: React__default.FC<ImageProps>;
|
|
239
254
|
|
|
255
|
+
interface InlineCodeProps extends React__default.HTMLAttributes<HTMLElement> {
|
|
256
|
+
children: React__default.ReactNode;
|
|
257
|
+
theme?: ThemeStyle;
|
|
258
|
+
/** `muted` drops the background, for secondary details like types. */
|
|
259
|
+
variant?: "default" | "muted";
|
|
260
|
+
}
|
|
261
|
+
/** Code inside running text: identifiers, paths, field names and values. */
|
|
262
|
+
declare function InlineCode({ children, theme, variant, className, ...props }: InlineCodeProps): React__default.JSX.Element;
|
|
263
|
+
|
|
240
264
|
interface InputProps extends React__default.InputHTMLAttributes<HTMLInputElement> {
|
|
241
265
|
theme?: ThemeStyle;
|
|
242
266
|
error?: boolean;
|
|
@@ -258,6 +282,15 @@ interface LinkProps extends React__default.AnchorHTMLAttributes<HTMLAnchorElemen
|
|
|
258
282
|
}
|
|
259
283
|
declare const Link: React__default.FC<LinkProps>;
|
|
260
284
|
|
|
285
|
+
interface NativeSelectProps extends React__default.SelectHTMLAttributes<HTMLSelectElement> {
|
|
286
|
+
theme?: ThemeStyle;
|
|
287
|
+
}
|
|
288
|
+
/**
|
|
289
|
+
* A themed native `<select>`. Use it where a page must stay light (it ships
|
|
290
|
+
* no JavaScript); `Select` is the richer Radix-based control.
|
|
291
|
+
*/
|
|
292
|
+
declare const NativeSelect: React__default.ForwardRefExoticComponent<NativeSelectProps & React__default.RefAttributes<HTMLSelectElement>>;
|
|
293
|
+
|
|
261
294
|
interface PopoverProps extends React$1.ComponentPropsWithoutRef<typeof PopoverPrimitive.Root> {
|
|
262
295
|
theme?: ThemeStyle;
|
|
263
296
|
}
|
|
@@ -332,6 +365,42 @@ interface SwitchProps extends React__default.ComponentPropsWithoutRef<typeof Swi
|
|
|
332
365
|
}
|
|
333
366
|
declare const Switch: React__default.ForwardRefExoticComponent<SwitchProps & React__default.RefAttributes<HTMLButtonElement>>;
|
|
334
367
|
|
|
368
|
+
interface TableColumn {
|
|
369
|
+
key: string;
|
|
370
|
+
label: string;
|
|
371
|
+
className?: string;
|
|
372
|
+
}
|
|
373
|
+
interface TableProps {
|
|
374
|
+
columns: TableColumn[];
|
|
375
|
+
rows: Record<string, React__default.ReactNode>[];
|
|
376
|
+
theme?: ThemeStyle;
|
|
377
|
+
className?: string;
|
|
378
|
+
}
|
|
379
|
+
/**
|
|
380
|
+
* A themed data table. On narrow screens each row stacks into a block, with
|
|
381
|
+
* the column name shown before every value.
|
|
382
|
+
*/
|
|
383
|
+
declare function Table({ columns, rows, theme, className }: TableProps): React__default.JSX.Element;
|
|
384
|
+
|
|
385
|
+
interface TabsItem {
|
|
386
|
+
label: React__default.ReactNode;
|
|
387
|
+
content: React__default.ReactNode;
|
|
388
|
+
}
|
|
389
|
+
interface TabsProps {
|
|
390
|
+
items: TabsItem[];
|
|
391
|
+
/** Accessible name of the tab list. */
|
|
392
|
+
label: string;
|
|
393
|
+
defaultIndex?: number;
|
|
394
|
+
theme?: ThemeStyle;
|
|
395
|
+
className?: string;
|
|
396
|
+
}
|
|
397
|
+
/**
|
|
398
|
+
* Accessible tabs (WAI-ARIA tab pattern with arrow-key navigation). Every
|
|
399
|
+
* panel is rendered, inactive ones `hidden`, so server-rendered content is
|
|
400
|
+
* in the HTML before hydration.
|
|
401
|
+
*/
|
|
402
|
+
declare function Tabs({ items, label, defaultIndex, theme, className }: TabsProps): React__default.JSX.Element;
|
|
403
|
+
|
|
335
404
|
declare const Text1: React__default.FC<TypographyProps & {
|
|
336
405
|
component?: "p" | "span";
|
|
337
406
|
}>;
|
|
@@ -363,4 +432,4 @@ interface TooltipContentProps extends React$1.ComponentPropsWithoutRef<typeof To
|
|
|
363
432
|
}
|
|
364
433
|
declare const TooltipContent: React$1.ForwardRefExoticComponent<TooltipContentProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
365
434
|
|
|
366
|
-
export { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, type AlertDialogContentProps, AlertDialogDescription, type AlertDialogDescriptionProps, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, type AlertDialogProps, AlertDialogTitle, type AlertDialogTitleProps, AlertDialogTrigger, Avatar, AvatarFallback, AvatarImage, type AvatarProps, Badge, type BadgeProps, Caption, Checkbox, type CheckboxProps, CodeSnippet, type CodeSnippetProps, Dialog, DialogClose, DialogContent, type DialogContentProps, DialogDescription, type DialogDescriptionProps, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, type DialogProps, DialogTitle, type DialogTitleProps, DialogTrigger, Display, Drawer, DropdownMenu, DropdownMenuArrow, DropdownMenuCheckboxItem, type DropdownMenuCheckboxItemProps, DropdownMenuContent, type DropdownMenuContentProps, DropdownMenuGroup, DropdownMenuItem, type DropdownMenuItemProps, DropdownMenuLabel, type DropdownMenuLabelProps, DropdownMenuPortal, type DropdownMenuProps, DropdownMenuRadioGroup, DropdownMenuRadioItem, type DropdownMenuRadioItemProps, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, type DropdownMenuSubContentProps, DropdownMenuSubTrigger, DropdownMenuTrigger, Header1, Header2, Header3, Header4, type HeadingProps, type HeadingTag, Image, type ImageProps, Input, type InputProps, Label, type LabelProps, Link, type LinkProps, PageCard, PageCardContent, type PageCardContentProps, PageCardHeader, type PageCardHeaderProps, PageCardImage, type PageCardImageProps, type PageCardProps, Popover, PopoverAnchor, PopoverClose, PopoverContent, type PopoverContentProps, PopoverPortal, type PopoverProps, PopoverTrigger, Preheader, RadioGroup, RadioGroupItem, type RadioGroupItemProps, type RadioGroupProps, Section, Select, SelectContent, type SelectContentProps, SelectGroup, SelectItem, type SelectItemProps, SelectLabel, type SelectProps, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, type SelectTriggerProps, SelectValue, Separator, type SeparatorProps, Subheader1, Subheader2, Switch, type SwitchProps, TAILWIND_TEXT_PX, Text1, Text2, Textarea, type TextareaProps, Tooltip, TooltipContent, type TooltipContentProps, TooltipPortal, type TooltipProps, TooltipProvider, type TooltipProviderProps, TooltipTrigger, createHeading, fluidFontSize, themes };
|
|
435
|
+
export { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, type AlertDialogContentProps, AlertDialogDescription, type AlertDialogDescriptionProps, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, type AlertDialogProps, AlertDialogTitle, type AlertDialogTitleProps, AlertDialogTrigger, Avatar, AvatarFallback, AvatarImage, type AvatarProps, Badge, type BadgeProps, Caption, Checkbox, type CheckboxProps, CodeSnippet, type CodeSnippetProps, Collapsible, type CollapsibleProps, Dialog, DialogClose, DialogContent, type DialogContentProps, DialogDescription, type DialogDescriptionProps, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, type DialogProps, DialogTitle, type DialogTitleProps, DialogTrigger, Display, Drawer, DropdownMenu, DropdownMenuArrow, DropdownMenuCheckboxItem, type DropdownMenuCheckboxItemProps, DropdownMenuContent, type DropdownMenuContentProps, DropdownMenuGroup, DropdownMenuItem, type DropdownMenuItemProps, DropdownMenuLabel, type DropdownMenuLabelProps, DropdownMenuPortal, type DropdownMenuProps, DropdownMenuRadioGroup, DropdownMenuRadioItem, type DropdownMenuRadioItemProps, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, type DropdownMenuSubContentProps, DropdownMenuSubTrigger, DropdownMenuTrigger, Header1, Header2, Header3, Header4, type HeadingProps, type HeadingTag, Image, type ImageProps, InlineCode, type InlineCodeProps, Input, type InputProps, Label, type LabelProps, Link, type LinkProps, NativeSelect, type NativeSelectProps, PageCard, PageCardContent, type PageCardContentProps, PageCardHeader, type PageCardHeaderProps, PageCardImage, type PageCardImageProps, type PageCardProps, Popover, PopoverAnchor, PopoverClose, PopoverContent, type PopoverContentProps, PopoverPortal, type PopoverProps, PopoverTrigger, Preheader, RadioGroup, RadioGroupItem, type RadioGroupItemProps, type RadioGroupProps, Section, Select, SelectContent, type SelectContentProps, SelectGroup, SelectItem, type SelectItemProps, SelectLabel, type SelectProps, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, type SelectTriggerProps, SelectValue, Separator, type SeparatorProps, Subheader1, Subheader2, Switch, type SwitchProps, TAILWIND_TEXT_PX, Table, type TableColumn, type TableProps, Tabs, type TabsItem, type TabsProps, Text1, Text2, Textarea, type TextareaProps, Tooltip, TooltipContent, type TooltipContentProps, TooltipPortal, type TooltipProps, TooltipProvider, type TooltipProviderProps, TooltipTrigger, createHeading, fluidFontSize, themes };
|
package/dist/primitives/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, Avatar, AvatarFallback, AvatarImage, Badge, Button2 as Button, Caption, Checkbox, CodeSnippet, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Display, Drawer, DropdownMenu, DropdownMenuArrow, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Header1, Header2, Header3, Header4, Image, Input, Label, Link, PageCard, PageCardContent, PageCardHeader, PageCardImage, Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverPortal, PopoverTrigger, Preheader, RadioGroup, RadioGroupItem, Section, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Subheader1, Subheader2, Switch2 as Switch, TAILWIND_TEXT_PX, Text1, Text2, Textarea, Tooltip, TooltipContent, TooltipPortal, TooltipProvider, TooltipTrigger, createHeading, fluidFontSize, themes } from '../chunk-
|
|
2
|
+
export { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, Avatar, AvatarFallback, AvatarImage, Badge, Button2 as Button, Caption, Checkbox, CodeSnippet, Collapsible, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Display, Drawer, DropdownMenu, DropdownMenuArrow, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Header1, Header2, Header3, Header4, Image2 as Image, InlineCode, Input, Label, Link, NativeSelect, PageCard, PageCardContent, PageCardHeader, PageCardImage, Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverPortal, PopoverTrigger, Preheader, RadioGroup, RadioGroupItem, Section, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Subheader1, Subheader2, Switch2 as Switch, TAILWIND_TEXT_PX, Table, Tabs, Text1, Text2, Textarea, Tooltip, TooltipContent, TooltipPortal, TooltipProvider, TooltipTrigger, createHeading, fluidFontSize, themes } from '../chunk-KRQWGGAJ.js';
|
|
3
3
|
import '../chunk-XU7ALPGQ.js';
|
|
4
4
|
//# sourceMappingURL=index.js.map
|
|
5
5
|
//# sourceMappingURL=index.js.map
|
package/dist/renderer/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export { EditableBlock, PageRenderer, generateThemeStyles, resolveThemeColor } from '../chunk-
|
|
3
|
-
import '../chunk-
|
|
4
|
-
import '../chunk-
|
|
5
|
-
export { PageBuilderLinkProvider } from '../chunk-
|
|
6
|
-
import '../chunk-
|
|
2
|
+
export { EditableBlock, PageRenderer, generateThemeStyles, resolveThemeColor } from '../chunk-I2LRKHSL.js';
|
|
3
|
+
import '../chunk-LL6CG6KH.js';
|
|
4
|
+
import '../chunk-XQE4RVNO.js';
|
|
5
|
+
export { PageBuilderLinkProvider } from '../chunk-QMUIISN3.js';
|
|
6
|
+
import '../chunk-KRQWGGAJ.js';
|
|
7
7
|
import '../chunk-XU7ALPGQ.js';
|
|
8
8
|
//# sourceMappingURL=index.js.map
|
|
9
9
|
//# sourceMappingURL=index.js.map
|
package/dist/server/index.js
CHANGED
|
@@ -93,9 +93,12 @@ import { Github } from "lucide-react";
|
|
|
93
93
|
|
|
94
94
|
// src/components/image.tsx
|
|
95
95
|
import { jsx } from "react/jsx-runtime";
|
|
96
|
-
var
|
|
96
|
+
var registry = globalThis;
|
|
97
97
|
function setImageAttributesResolver(resolver) {
|
|
98
|
-
|
|
98
|
+
registry.__frontlitImageResolver = resolver;
|
|
99
|
+
}
|
|
100
|
+
function resolveImageAttributes(input) {
|
|
101
|
+
return registry.__frontlitImageResolver?.(input) ?? null;
|
|
99
102
|
}
|
|
100
103
|
var roundedMap = {
|
|
101
104
|
0: "rounded-none",
|
|
@@ -149,7 +152,7 @@ var Image = (props) => {
|
|
|
149
152
|
}
|
|
150
153
|
);
|
|
151
154
|
}
|
|
152
|
-
const optimized =
|
|
155
|
+
const optimized = resolveImageAttributes({ src: source, alt, sizes, priority });
|
|
153
156
|
return /* @__PURE__ */ jsx(
|
|
154
157
|
"div",
|
|
155
158
|
{
|
|
@@ -752,7 +755,9 @@ var Section = ({
|
|
|
752
755
|
"div",
|
|
753
756
|
{
|
|
754
757
|
className: cn(
|
|
755
|
-
|
|
758
|
+
// Clips like overflow-hidden without becoming a scroll
|
|
759
|
+
// container, so sticky children (docs sidebars) still stick.
|
|
760
|
+
"mx-auto z-[3] relative overflow-clip",
|
|
756
761
|
`lg:${theme?.structure?.page?.width || "max-w-6xl"}`,
|
|
757
762
|
theme?.structure?.section?.padding?.x || "px-4",
|
|
758
763
|
theme?.structure?.section?.padding?.y || "py-4"
|
|
@@ -2078,7 +2083,7 @@ function FooterWidget({
|
|
|
2078
2083
|
tagline && /* @__PURE__ */ jsx25(Text2, { theme: overriddenTheme, children: tagline })
|
|
2079
2084
|
] }),
|
|
2080
2085
|
/* @__PURE__ */ jsx25("div", { className: "flex flex-col flex-wrap gap-8 lg:!flex-row", children: columns.map((column) => /* @__PURE__ */ jsxs11("div", { className: "flex flex-col gap-3 lg:min-w-[140px]", children: [
|
|
2081
|
-
/* @__PURE__ */ jsx25(Header4, { theme: overriddenTheme, className: "text-sm", children: column.title }),
|
|
2086
|
+
/* @__PURE__ */ jsx25(Header4, { theme: overriddenTheme, as: "h2", className: "text-sm", children: column.title }),
|
|
2082
2087
|
/* @__PURE__ */ jsx25("div", { className: "flex flex-col gap-2", children: column.links.map((link) => /* @__PURE__ */ jsx25(NavLink6, { href: link.href, className: "no-underline", children: /* @__PURE__ */ jsx25(Link, { theme: overriddenTheme, className: "text-xs", children: link.label }) }, link.id)) })
|
|
2083
2088
|
] }, column.id)) })
|
|
2084
2089
|
] }),
|