efficient-web-builder 0.10.0 → 1.0.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 -367
- package/README.md +107 -261
- package/dist/components/AddBlockRow.d.ts +7 -0
- package/dist/components/AddBlockRow.js +1 -0
- package/dist/components/AddChildRow.d.ts +6 -0
- package/dist/components/AddChildRow.js +1 -0
- package/dist/components/AddSidePanel.d.ts +39 -0
- package/dist/components/AddSidePanel.js +1 -0
- package/dist/components/AnimatedStat.d.ts +6 -0
- package/dist/components/AnimatedStat.js +1 -0
- package/dist/components/ApplyCornersToSiblings.d.ts +9 -0
- package/dist/components/ApplyCornersToSiblings.js +1 -0
- package/dist/components/Banner.d.ts +12 -0
- package/dist/components/Banner.js +1 -0
- package/dist/components/BlockFrame.d.ts +15 -0
- package/dist/components/BlockFrame.js +1 -0
- package/dist/components/BlockGapField.d.ts +5 -0
- package/dist/components/BlockGapField.js +1 -0
- package/dist/components/BlogPostSource.d.ts +14 -0
- package/dist/components/BlogPostSource.js +1 -0
- package/dist/components/BoxSurfaceContext.d.ts +7 -0
- package/dist/components/BoxSurfaceContext.js +1 -0
- package/dist/components/BoxTabs.d.ts +6 -0
- package/dist/components/BoxTabs.js +1 -0
- package/dist/components/Breadcrumb.d.ts +10 -0
- package/dist/components/Breadcrumb.js +1 -0
- package/dist/components/Btn.d.ts +22 -0
- package/dist/components/Btn.js +1 -0
- package/dist/components/ButtonBlock.d.ts +13 -0
- package/dist/components/ButtonBlock.js +1 -0
- package/dist/components/CardShadowField.d.ts +6 -0
- package/dist/components/CardShadowField.js +1 -0
- package/dist/components/Cards.d.ts +15 -0
- package/dist/components/Cards.js +1 -0
- package/dist/components/CategoryBar.d.ts +16 -0
- package/dist/components/CategoryBar.js +1 -0
- package/dist/components/ChartSection.d.ts +16 -0
- package/dist/components/ChartSection.js +1 -0
- package/dist/components/ChatSettingsPanel.d.ts +1 -0
- package/dist/components/ChatSettingsPanel.js +1 -0
- package/dist/components/ClearColoursDialog.d.ts +5 -0
- package/dist/components/ClearColoursDialog.js +1 -0
- package/dist/components/ContactLocations.d.ts +17 -0
- package/dist/components/ContactLocations.js +73 -0
- package/dist/components/CornersField.d.ts +7 -0
- package/dist/components/CornersField.js +1 -0
- package/dist/components/CountUpText.d.ts +3 -0
- package/dist/components/CountUpText.js +1 -0
- package/dist/components/Divider.d.ts +9 -0
- package/dist/components/Divider.js +1 -0
- package/dist/components/DocBody.d.ts +13 -0
- package/dist/components/DocBody.js +7 -0
- package/dist/components/DocMasthead.d.ts +13 -0
- package/dist/components/DocMasthead.js +1 -0
- package/dist/components/DocMetaCards.d.ts +10 -0
- package/dist/components/DocMetaCards.js +1 -0
- package/dist/components/DocTabs.d.ts +12 -0
- package/dist/components/DocTabs.js +1 -0
- package/dist/components/DuplicateToPageMenu.d.ts +12 -0
- package/dist/components/DuplicateToPageMenu.js +1 -0
- package/dist/components/EditorialSectionHead.d.ts +11 -0
- package/dist/components/EditorialSectionHead.js +1 -0
- package/dist/components/Eyebrow.d.ts +9 -0
- package/dist/components/Eyebrow.js +1 -0
- package/dist/components/FAQ.d.ts +20 -0
- package/dist/components/FAQ.js +1 -0
- package/dist/components/FeaturedCover.d.ts +13 -0
- package/dist/components/FeaturedCover.js +1 -0
- package/dist/components/FieldGlyph.d.ts +12 -0
- package/dist/components/FieldGlyph.js +1 -0
- package/dist/components/Flex.d.ts +32 -0
- package/dist/components/Flex.js +1 -0
- package/dist/components/Footprint.d.ts +16 -0
- package/dist/components/Footprint.js +27 -0
- package/dist/components/Grid.d.ts +11 -0
- package/dist/components/Grid.js +1 -0
- package/dist/components/Heading.d.ts +11 -0
- package/dist/components/Heading.js +1 -0
- package/dist/components/HeadingAudit.d.ts +1 -0
- package/dist/components/HeadingAudit.js +1 -0
- package/dist/components/HeroArrows.d.ts +8 -0
- package/dist/components/HeroArrows.js +1 -0
- package/dist/components/HeroGroup.d.ts +20 -0
- package/dist/components/HeroGroup.js +1 -0
- package/dist/components/HeroHeldFrame.d.ts +8 -0
- package/dist/components/HeroHeldFrame.js +1 -0
- package/dist/components/HeroImageField.d.ts +6 -0
- package/dist/components/HeroImageField.js +1 -0
- package/dist/components/HeroPoster.d.ts +10 -0
- package/dist/components/HeroPoster.js +1 -0
- package/dist/components/HeroSection.d.ts +39 -0
- package/dist/components/HeroSection.js +11 -0
- package/dist/components/HeroSingle.d.ts +17 -0
- package/dist/components/HeroSingle.js +1 -0
- package/dist/components/HeroSlide.d.ts +30 -0
- package/dist/components/HeroSlide.js +1 -0
- package/dist/components/HoverEffectField.d.ts +6 -0
- package/dist/components/HoverEffectField.js +1 -0
- package/dist/components/ImageBlock.d.ts +18 -0
- package/dist/components/ImageBlock.js +1 -0
- package/dist/components/ImageFocusRow.d.ts +7 -0
- package/dist/components/ImageFocusRow.js +1 -0
- package/dist/components/IntegrationsSection.d.ts +14 -0
- package/dist/components/IntegrationsSection.js +1 -0
- package/dist/components/IntroBleed.d.ts +32 -0
- package/dist/components/IntroBleed.js +1 -0
- package/dist/components/KeyFeatures.d.ts +14 -0
- package/dist/components/KeyFeatures.js +1 -0
- package/dist/components/LocationGroupHeader.d.ts +5 -0
- package/dist/components/LocationGroupHeader.js +1 -0
- package/dist/components/LocationsGroupedField.d.ts +5 -0
- package/dist/components/LocationsGroupedField.js +1 -0
- package/dist/components/LocationsTreeContext.d.ts +2 -0
- package/dist/components/LocationsTreeContext.js +1 -0
- package/dist/components/Logo.d.ts +27 -0
- package/dist/components/Logo.js +1 -0
- package/dist/components/LogoBlock.d.ts +8 -0
- package/dist/components/LogoBlock.js +1 -0
- package/dist/components/Logos.d.ts +15 -0
- package/dist/components/Logos.js +1 -0
- package/dist/components/LongRead.d.ts +20 -0
- package/dist/components/LongRead.js +1 -0
- package/dist/components/Manifesto.d.ts +14 -0
- package/dist/components/Manifesto.js +1 -0
- package/dist/components/Masthead.d.ts +16 -0
- package/dist/components/Masthead.js +1 -0
- package/dist/components/MediaSidePanel.d.ts +6 -0
- package/dist/components/MediaSidePanel.js +1 -0
- package/dist/components/MediaUploadField.d.ts +9 -0
- package/dist/components/MediaUploadField.js +1 -0
- package/dist/components/MockupSection.d.ts +59 -0
- package/dist/components/MockupSection.js +1 -0
- package/dist/components/MultiSelectField.d.ts +16 -0
- package/dist/components/MultiSelectField.js +1 -0
- package/dist/components/NodeContextMenu.d.ts +96 -0
- package/dist/components/NodeContextMenu.js +1 -0
- package/dist/components/OrderSummary.d.ts +17 -0
- package/dist/components/OrderSummary.js +1 -0
- package/dist/components/PageEditGuardNotices.d.ts +1 -0
- package/dist/components/PageEditGuardNotices.js +1 -0
- package/dist/components/PagesPanel.d.ts +8 -0
- package/dist/components/PagesPanel.js +1 -0
- package/dist/components/PanelToggleIcon.d.ts +3 -0
- package/dist/components/PanelToggleIcon.js +1 -0
- package/dist/components/ParagraphsA.d.ts +15 -0
- package/dist/components/ParagraphsA.js +1 -0
- package/dist/components/PartGlyphs.d.ts +7 -0
- package/dist/components/PartGlyphs.js +1 -0
- package/dist/components/PartInkControl.d.ts +7 -0
- package/dist/components/PartInkControl.js +1 -0
- package/dist/components/PartResetDot.d.ts +5 -0
- package/dist/components/PartResetDot.js +1 -0
- package/dist/components/PartSettingsPanel.d.ts +63 -0
- package/dist/components/PartSettingsPanel.js +1 -0
- package/dist/components/PartStyledText.d.ts +5 -0
- package/dist/components/PartStyledText.js +1 -0
- package/dist/components/PartTextBox.d.ts +20 -0
- package/dist/components/PartTextBox.js +1 -0
- package/dist/components/PaymentBadges.d.ts +14 -0
- package/dist/components/PaymentBadges.js +1 -0
- package/dist/components/PhoneMenuTools.d.ts +12 -0
- package/dist/components/PhoneMenuTools.js +1 -0
- package/dist/components/PhotographyField.d.ts +6 -0
- package/dist/components/PhotographyField.js +1 -0
- package/dist/components/Placeholder.d.ts +18 -0
- package/dist/components/Placeholder.js +1 -0
- package/dist/components/PostCard.d.ts +37 -0
- package/dist/components/PostCard.js +1 -0
- package/dist/components/PreviewChatContext.d.ts +23 -0
- package/dist/components/PreviewChatContext.js +1 -0
- package/dist/components/PreviewDeviceContext.d.ts +4 -0
- package/dist/components/PreviewDeviceContext.js +1 -0
- package/dist/components/PreviewFocusContext.d.ts +15 -0
- package/dist/components/PreviewFocusContext.js +1 -0
- package/dist/components/PreviewFooterContext.d.ts +17 -0
- package/dist/components/PreviewFooterContext.js +1 -0
- package/dist/components/PreviewHeaderContext.d.ts +97 -0
- package/dist/components/PreviewHeaderContext.js +1 -0
- package/dist/components/PreviewLocationPartContext.d.ts +10 -0
- package/dist/components/PreviewLocationPartContext.js +1 -0
- package/dist/components/PreviewPartAnchors.d.ts +16 -0
- package/dist/components/PreviewPartAnchors.js +1 -0
- package/dist/components/PreviewPartStyleContext.d.ts +21 -0
- package/dist/components/PreviewPartStyleContext.js +1 -0
- package/dist/components/PreviewPartsContext.d.ts +3 -0
- package/dist/components/PreviewPartsContext.js +1 -0
- package/dist/components/PreviewSocialContext.d.ts +30 -0
- package/dist/components/PreviewSocialContext.js +1 -0
- package/dist/components/PreviewSurfaceContext.d.ts +10 -0
- package/dist/components/PreviewSurfaceContext.js +1 -0
- package/dist/components/PreviewThemeFrame.d.ts +6 -0
- package/dist/components/PreviewThemeFrame.js +11 -0
- package/dist/components/PreviewTickerContext.d.ts +4 -0
- package/dist/components/PreviewTickerContext.js +1 -0
- package/dist/components/ProcessSteps.d.ts +32 -0
- package/dist/components/ProcessSteps.js +1 -0
- package/dist/components/Prose.d.ts +9 -0
- package/dist/components/Prose.js +1 -0
- package/dist/components/PublishedFooterContext.d.ts +11 -0
- package/dist/components/PublishedFooterContext.js +1 -0
- package/dist/components/PublishedPartStylesContext.d.ts +15 -0
- package/dist/components/PublishedPartStylesContext.js +1 -0
- package/dist/components/RMark.d.ts +6 -0
- package/dist/components/RMark.js +1 -0
- package/dist/components/Reel.d.ts +15 -0
- package/dist/components/Reel.js +1 -0
- package/dist/components/RuleLine.d.ts +1 -0
- package/dist/components/RuleLine.js +1 -0
- package/dist/components/SearchSelectField.d.ts +20 -0
- package/dist/components/SearchSelectField.js +1 -0
- package/dist/components/SectionAnimation.d.ts +7 -0
- package/dist/components/SectionAnimation.js +1 -0
- package/dist/components/SectionEditor.d.ts +66 -0
- package/dist/components/SectionEditor.js +1 -0
- package/dist/components/SectionEditorShell.d.ts +1 -0
- package/dist/components/SectionEditorShell.js +1 -0
- package/dist/components/SectionEyebrow.d.ts +10 -0
- package/dist/components/SectionEyebrow.js +1 -0
- package/dist/components/SectionHeader.d.ts +29 -0
- package/dist/components/SectionHeader.js +1 -0
- package/dist/components/SectionIcon.d.ts +5 -0
- package/dist/components/SectionIcon.js +1 -0
- package/dist/components/SectionTextEntries.d.ts +5 -0
- package/dist/components/SectionTextEntries.js +1 -0
- package/dist/components/SectionTextPartBridge.d.ts +6 -0
- package/dist/components/SectionTextPartBridge.js +1 -0
- package/dist/components/SectionThemePicker.d.ts +23 -0
- package/dist/components/SectionThemePicker.js +1 -0
- package/dist/components/SectionThumbnail.d.ts +3 -0
- package/dist/components/SectionThumbnail.js +1 -0
- package/dist/components/Series.d.ts +19 -0
- package/dist/components/Series.js +1 -0
- package/dist/components/ShadowColourField.d.ts +5 -0
- package/dist/components/ShadowColourField.js +1 -0
- package/dist/components/SidePanelHead.d.ts +23 -0
- package/dist/components/SidePanelHead.js +1 -0
- package/dist/components/SideSpaceField.d.ts +8 -0
- package/dist/components/SideSpaceField.js +1 -0
- package/dist/components/SiteEditorProvider.d.ts +10 -0
- package/dist/components/SiteEditorProvider.js +1 -0
- package/dist/components/SiteFields.d.ts +6 -0
- package/dist/components/SiteFields.js +1 -0
- package/dist/components/SiteGutterFrame.d.ts +9 -0
- package/dist/components/SiteGutterFrame.js +1 -0
- package/dist/components/SiteLogoContext.d.ts +25 -0
- package/dist/components/SiteLogoContext.js +1 -0
- package/dist/components/SitePhotographyContext.d.ts +8 -0
- package/dist/components/SitePhotographyContext.js +1 -0
- package/dist/components/SiteStyleUnset.d.ts +1 -0
- package/dist/components/SiteStyleUnset.js +1 -0
- package/dist/components/SiteWidthField.d.ts +8 -0
- package/dist/components/SiteWidthField.js +1 -0
- package/dist/components/SlotChildActionsContext.d.ts +13 -0
- package/dist/components/SlotChildActionsContext.js +1 -0
- package/dist/components/SlotChildRows.d.ts +16 -0
- package/dist/components/SlotChildRows.js +1 -0
- package/dist/components/SocialLinksPanel.d.ts +3 -0
- package/dist/components/SocialLinksPanel.js +1 -0
- package/dist/components/SourceStatus.d.ts +14 -0
- package/dist/components/SourceStatus.js +1 -0
- package/dist/components/Spacer.d.ts +6 -0
- package/dist/components/Spacer.js +1 -0
- package/dist/components/SpecStrip.d.ts +10 -0
- package/dist/components/SpecStrip.js +1 -0
- package/dist/components/Split.d.ts +33 -0
- package/dist/components/Split.js +1 -0
- package/dist/components/StandaloneSectionEditor.d.ts +18 -0
- package/dist/components/StandaloneSectionEditor.js +1 -0
- package/dist/components/Stats.d.ts +14 -0
- package/dist/components/Stats.js +1 -0
- package/dist/components/StatsParagraph.d.ts +21 -0
- package/dist/components/StatsParagraph.js +1 -0
- package/dist/components/StorefrontDocumentContext.d.ts +67 -0
- package/dist/components/StorefrontDocumentContext.js +1 -0
- package/dist/components/StorefrontEditor.d.ts +18 -0
- package/dist/components/StorefrontEditor.js +1 -0
- package/dist/components/StorefrontEditorChrome.d.ts +1 -0
- package/dist/components/StorefrontEditorChrome.js +1 -0
- package/dist/components/StorefrontLinkField.d.ts +10 -0
- package/dist/components/StorefrontLinkField.js +1 -0
- package/dist/components/StylesPanel.d.ts +11 -0
- package/dist/components/StylesPanel.js +1 -0
- package/dist/components/SwitchToBoxFooter.d.ts +1 -0
- package/dist/components/SwitchToBoxFooter.js +1 -0
- package/dist/components/TemplateGlyph.d.ts +6 -0
- package/dist/components/TemplateGlyph.js +1 -0
- package/dist/components/Testimonials.d.ts +16 -0
- package/dist/components/Testimonials.js +1 -0
- package/dist/components/Text.d.ts +11 -0
- package/dist/components/Text.js +1 -0
- package/dist/components/TextStyleRow.d.ts +13 -0
- package/dist/components/TextStyleRow.js +1 -0
- package/dist/components/TextStylesField.d.ts +17 -0
- package/dist/components/TextStylesField.js +1 -0
- package/dist/components/ThemeCard.d.ts +40 -0
- package/dist/components/ThemeCard.js +1 -0
- package/dist/components/ThemeColourField.d.ts +5 -0
- package/dist/components/ThemeColourField.js +1 -0
- package/dist/components/ThemeField.d.ts +8 -0
- package/dist/components/ThemeField.js +1 -0
- package/dist/components/Ticker.d.ts +18 -0
- package/dist/components/Ticker.js +1 -0
- package/dist/components/TickerSection.d.ts +18 -0
- package/dist/components/TickerSection.js +1 -0
- package/dist/components/TickerSettingsPanel.d.ts +3 -0
- package/dist/components/TickerSettingsPanel.js +1 -0
- package/dist/components/Timeline.d.ts +24 -0
- package/dist/components/Timeline.js +1 -0
- package/dist/components/TimelineTrack.d.ts +22 -0
- package/dist/components/TimelineTrack.js +1 -0
- package/dist/components/TitleWithButtons.d.ts +14 -0
- package/dist/components/TitleWithButtons.js +1 -0
- package/dist/components/UiIcon.d.ts +10 -0
- package/dist/components/UiIcon.js +1 -0
- package/dist/components/WebsiteSettingsPanel.d.ts +46 -0
- package/dist/components/WebsiteSettingsPanel.js +1 -0
- package/dist/components/WidthFollowField.d.ts +10 -0
- package/dist/components/WidthFollowField.js +1 -0
- package/dist/components/cartGlyph.d.ts +1 -0
- package/dist/components/cartGlyph.js +1 -0
- package/dist/components/floating-editor/tokens.d.ts +27 -0
- package/dist/components/floating-editor/tokens.js +1 -0
- package/dist/components/goldPhrases.d.ts +7 -0
- package/dist/components/goldPhrases.js +2 -0
- package/dist/components/integrationIcons.d.ts +2 -0
- package/dist/components/integrationIcons.js +1 -0
- package/dist/components/panel-widths.d.ts +12 -0
- package/dist/components/panel-widths.js +1 -0
- package/dist/components/preview-devices.d.ts +3 -0
- package/dist/components/preview-devices.js +1 -0
- package/dist/components/socialIcons.d.ts +8 -0
- package/dist/components/socialIcons.js +1 -0
- package/dist/components/storefront-editor.css +5731 -0
- package/dist/components/useCountUp.d.ts +10 -0
- package/dist/components/useCountUp.js +1 -0
- package/dist/components/usePartBridge.d.ts +9 -0
- package/dist/components/usePartBridge.js +1 -0
- package/dist/components/usePreviewHref.d.ts +5 -0
- package/dist/components/usePreviewHref.js +1 -0
- package/dist/components/useReducedMotion.d.ts +4 -0
- package/dist/components/useReducedMotion.js +1 -0
- package/dist/components/useSnapshotSource.d.ts +17 -0
- package/dist/components/useSnapshotSource.js +1 -0
- package/dist/components/useSocialSettings.d.ts +14 -0
- package/dist/components/useSocialSettings.js +1 -0
- package/dist/components/useStorefrontBlogPosts.d.ts +2 -0
- package/dist/components/useStorefrontBlogPosts.js +1 -0
- package/dist/lib/content/authored-props.d.ts +4 -0
- package/dist/lib/content/authored-props.js +1 -0
- package/dist/lib/content/box-background.d.ts +31 -0
- package/dist/lib/content/box-background.js +1 -0
- package/dist/lib/content/box-layout.d.ts +78 -0
- package/dist/lib/content/box-layout.js +1 -0
- package/dist/lib/content/button-arrow.d.ts +2 -0
- package/dist/lib/content/button-arrow.js +1 -0
- package/dist/lib/content/card-corners.d.ts +12 -0
- package/dist/lib/content/card-corners.js +1 -0
- package/dist/lib/content/card-image-background.d.ts +11 -0
- package/dist/lib/content/card-image-background.js +1 -0
- package/dist/lib/content/card-image-shape.d.ts +5 -0
- package/dist/lib/content/card-image-shape.js +1 -0
- package/dist/lib/content/cart-drawer.d.ts +20 -0
- package/dist/lib/content/cart-drawer.js +1 -0
- package/dist/lib/content/contact.d.ts +79 -0
- package/dist/lib/content/contact.js +3 -0
- package/dist/lib/content/container-direction.d.ts +14 -0
- package/dist/lib/content/container-direction.js +1 -0
- package/dist/lib/content/container-gap.d.ts +31 -0
- package/dist/lib/content/container-gap.js +1 -0
- package/dist/lib/content/footer.d.ts +30 -0
- package/dist/lib/content/footer.js +1 -0
- package/dist/lib/content/footprint.d.ts +22 -0
- package/dist/lib/content/footprint.js +1 -0
- package/dist/lib/content/gallery-card-layout.d.ts +7 -0
- package/dist/lib/content/gallery-card-layout.js +1 -0
- package/dist/lib/content/gallery-layout.d.ts +154 -0
- package/dist/lib/content/gallery-layout.js +1 -0
- package/dist/lib/content/grid-span.d.ts +15 -0
- package/dist/lib/content/grid-span.js +1 -0
- package/dist/lib/content/image-corners.d.ts +7 -0
- package/dist/lib/content/image-corners.js +1 -0
- package/dist/lib/content/image-fit.d.ts +11 -0
- package/dist/lib/content/image-fit.js +1 -0
- package/dist/lib/content/image-treatment.d.ts +20 -0
- package/dist/lib/content/image-treatment.js +1 -0
- package/dist/lib/content/image-width.d.ts +9 -0
- package/dist/lib/content/image-width.js +1 -0
- package/dist/lib/content/page-background.d.ts +4 -0
- package/dist/lib/content/page-background.js +1 -0
- package/dist/lib/content/page-width.d.ts +63 -0
- package/dist/lib/content/page-width.js +1 -0
- package/dist/lib/content/product-page.d.ts +11 -0
- package/dist/lib/content/product-page.js +1 -0
- package/dist/lib/content/section-animation.d.ts +13 -0
- package/dist/lib/content/section-animation.js +1 -0
- package/dist/lib/content/section-background.d.ts +7 -0
- package/dist/lib/content/section-background.js +1 -0
- package/dist/lib/content/section-corners.d.ts +16 -0
- package/dist/lib/content/section-corners.js +1 -0
- package/dist/lib/content/section-height.d.ts +9 -0
- package/dist/lib/content/section-height.js +1 -0
- package/dist/lib/content/section-min-height.d.ts +60 -0
- package/dist/lib/content/section-min-height.js +1 -0
- package/dist/lib/content/section-padding.d.ts +33 -0
- package/dist/lib/content/section-padding.js +1 -0
- package/dist/lib/content/section-surface.d.ts +13 -0
- package/dist/lib/content/section-surface.js +1 -0
- package/dist/lib/content/section-type-size.d.ts +7 -0
- package/dist/lib/content/section-type-size.js +1 -0
- package/dist/lib/content/section-width.d.ts +19 -0
- package/dist/lib/content/section-width.js +1 -0
- package/dist/lib/content/site-gutter.d.ts +2 -0
- package/dist/lib/content/site-gutter.js +1 -0
- package/dist/lib/content/site-name.d.ts +2 -0
- package/dist/lib/content/site-name.js +1 -0
- package/dist/lib/content/social-links.d.ts +12 -0
- package/dist/lib/content/social-links.js +1 -0
- package/dist/lib/content/subscribe.d.ts +76 -0
- package/dist/lib/content/subscribe.js +2 -0
- package/dist/lib/content/view-tiers.d.ts +6 -0
- package/dist/lib/content/view-tiers.js +1 -0
- package/dist/lib/editor/preview-href.d.ts +6 -0
- package/dist/lib/editor/preview-href.js +1 -0
- package/dist/lib/editor-admin-bridge.d.ts +29 -0
- package/dist/lib/editor-admin-bridge.js +1 -0
- package/dist/lib/editor-auth.d.ts +3 -0
- package/dist/lib/editor-auth.js +1 -0
- package/dist/lib/editor-block-metadata.d.ts +6 -0
- package/dist/lib/editor-block-metadata.js +1 -0
- package/dist/lib/editor-blocks.d.ts +20 -0
- package/dist/lib/editor-blocks.js +1 -0
- package/dist/lib/editor-canvas-styles.d.ts +12 -0
- package/dist/lib/editor-canvas-styles.js +1 -0
- package/dist/lib/editor-chrome.d.ts +52 -0
- package/dist/lib/editor-chrome.js +1 -0
- package/dist/lib/editor-document-adapter.d.ts +55 -0
- package/dist/lib/editor-document-adapter.js +1 -0
- package/dist/lib/editor-document-hooks.d.ts +15 -0
- package/dist/lib/editor-document-hooks.js +0 -0
- package/dist/lib/editor-events.d.ts +8 -0
- package/dist/lib/editor-events.js +1 -0
- package/dist/lib/editor-failure.d.ts +4 -0
- package/dist/lib/editor-failure.js +1 -0
- package/dist/lib/editor-form-window.d.ts +21 -0
- package/dist/lib/editor-form-window.js +1 -0
- package/dist/lib/editor-host-inbound.d.ts +1 -0
- package/dist/lib/editor-host-inbound.js +1 -0
- package/dist/lib/editor-host.d.ts +135 -0
- package/dist/lib/editor-host.js +1 -0
- package/dist/lib/editor-key-scope.d.ts +3 -0
- package/dist/lib/editor-key-scope.js +1 -0
- package/dist/lib/editor-load-error.d.ts +4 -0
- package/dist/lib/editor-load-error.js +1 -0
- package/dist/lib/editor-media-panel.d.ts +23 -0
- package/dist/lib/editor-media-panel.js +1 -0
- package/dist/lib/editor-media-picker.d.ts +12 -0
- package/dist/lib/editor-media-picker.js +1 -0
- package/dist/lib/editor-page-lock.d.ts +1 -0
- package/dist/lib/editor-page-lock.js +1 -0
- package/dist/lib/editor-page-rows.d.ts +16 -0
- package/dist/lib/editor-page-rows.js +1 -0
- package/dist/lib/editor-section-templates.d.ts +2 -0
- package/dist/lib/editor-section-templates.js +1 -0
- package/dist/lib/editor-session-context.d.ts +7 -0
- package/dist/lib/editor-session-context.js +1 -0
- package/dist/lib/editor-session-loader.d.ts +4 -0
- package/dist/lib/editor-session-loader.js +1 -0
- package/dist/lib/editor-session.d.ts +45 -0
- package/dist/lib/editor-session.js +1 -0
- package/dist/lib/editor-site-slug.d.ts +2 -0
- package/dist/lib/editor-site-slug.js +1 -0
- package/dist/lib/editor-site.d.ts +3 -0
- package/dist/lib/editor-site.js +1 -0
- package/dist/lib/editor-theme.d.ts +1 -0
- package/dist/lib/editor-theme.js +1 -0
- package/dist/lib/fit-words.d.ts +3 -0
- package/dist/lib/fit-words.js +220 -0
- package/dist/lib/fonts.d.ts +32 -0
- package/dist/lib/fonts.js +1 -0
- package/dist/lib/geocode.d.ts +6 -0
- package/dist/lib/geocode.js +1 -0
- package/dist/lib/hero-arrows.d.ts +23 -0
- package/dist/lib/hero-arrows.js +1 -0
- package/dist/lib/hero-group-placement.d.ts +46 -0
- package/dist/lib/hero-group-placement.js +1 -0
- package/dist/lib/hero-overlay-anchor.d.ts +6 -0
- package/dist/lib/hero-overlay-anchor.js +1 -0
- package/dist/lib/hero-phone-stack.d.ts +27 -0
- package/dist/lib/hero-phone-stack.js +1 -0
- package/dist/lib/hero-swipe.d.ts +16 -0
- package/dist/lib/hero-swipe.js +1 -0
- package/dist/lib/hero-texture.d.ts +4 -0
- package/dist/lib/hero-texture.js +1 -0
- package/dist/lib/hero-video-control.d.ts +13 -0
- package/dist/lib/hero-video-control.js +1 -0
- package/dist/lib/image-focus.d.ts +16 -0
- package/dist/lib/image-focus.js +1 -0
- package/dist/lib/links/page-link-rules.d.ts +22 -0
- package/dist/lib/links/page-link-rules.js +1 -0
- package/dist/lib/locations-grid.d.ts +10 -0
- package/dist/lib/locations-grid.js +1 -0
- package/dist/lib/logo/analyze-logo-client.d.ts +3 -0
- package/dist/lib/logo/analyze-logo-client.js +1 -0
- package/dist/lib/logo/reverse-svg.d.ts +9 -0
- package/dist/lib/logo/reverse-svg.js +1 -0
- package/dist/lib/map-styles.d.ts +30 -0
- package/dist/lib/map-styles.js +1 -0
- package/dist/lib/maps-config.d.ts +16 -0
- package/dist/lib/maps-config.js +1 -0
- package/dist/lib/maps-loader.d.ts +3 -0
- package/dist/lib/maps-loader.js +1 -0
- package/dist/lib/markup.d.ts +38 -0
- package/dist/lib/markup.js +2 -0
- package/dist/lib/media.d.ts +10 -0
- package/dist/lib/media.js +1 -0
- package/dist/lib/parse-option.d.ts +3 -0
- package/dist/lib/parse-option.js +1 -0
- package/dist/lib/popup/text-kinds.d.ts +11 -0
- package/dist/lib/popup/text-kinds.js +1 -0
- package/dist/lib/preview-header-settings.d.ts +39 -0
- package/dist/lib/preview-header-settings.js +0 -0
- package/dist/lib/puck/ColourControl.d.ts +8 -0
- package/dist/lib/puck/ColourControl.js +1 -0
- package/dist/lib/puck/MarkupToolbar.d.ts +13 -0
- package/dist/lib/puck/MarkupToolbar.js +1 -0
- package/dist/lib/puck/add-palette.d.ts +20 -0
- package/dist/lib/puck/add-palette.js +1 -0
- package/dist/lib/puck/add-target.d.ts +10 -0
- package/dist/lib/puck/add-target.js +1 -0
- package/dist/lib/puck/apply-card-corners.d.ts +21 -0
- package/dist/lib/puck/apply-card-corners.js +1 -0
- package/dist/lib/puck/block-offer.d.ts +10 -0
- package/dist/lib/puck/block-offer.js +1 -0
- package/dist/lib/puck/block-types-in.d.ts +1 -0
- package/dist/lib/puck/block-types-in.js +1 -0
- package/dist/lib/puck/blocks/block-types.d.ts +12 -0
- package/dist/lib/puck/blocks/block-types.js +1 -0
- package/dist/lib/puck/blocks/general/Banner/fields.d.ts +2 -0
- package/dist/lib/puck/blocks/general/Banner/fields.js +1 -0
- package/dist/lib/puck/blocks/general/Banner/render.d.ts +2 -0
- package/dist/lib/puck/blocks/general/Banner/render.js +1 -0
- package/dist/lib/puck/blocks/general/Breadcrumb/fields.d.ts +2 -0
- package/dist/lib/puck/blocks/general/Breadcrumb/fields.js +1 -0
- package/dist/lib/puck/blocks/general/Breadcrumb/render.d.ts +5 -0
- package/dist/lib/puck/blocks/general/Breadcrumb/render.js +1 -0
- package/dist/lib/puck/blocks/general/ButtonBlock/fields.d.ts +2 -0
- package/dist/lib/puck/blocks/general/ButtonBlock/fields.js +1 -0
- package/dist/lib/puck/blocks/general/ButtonBlock/render.d.ts +2 -0
- package/dist/lib/puck/blocks/general/ButtonBlock/render.js +1 -0
- package/dist/lib/puck/blocks/general/Cards/fields.d.ts +2 -0
- package/dist/lib/puck/blocks/general/Cards/fields.js +1 -0
- package/dist/lib/puck/blocks/general/Cards/render.d.ts +6 -0
- package/dist/lib/puck/blocks/general/Cards/render.js +1 -0
- package/dist/lib/puck/blocks/general/CategoryBar/fields.d.ts +2 -0
- package/dist/lib/puck/blocks/general/CategoryBar/fields.js +1 -0
- package/dist/lib/puck/blocks/general/CategoryBar/render.d.ts +2 -0
- package/dist/lib/puck/blocks/general/CategoryBar/render.js +1 -0
- package/dist/lib/puck/blocks/general/Chart/fields.d.ts +2 -0
- package/dist/lib/puck/blocks/general/Chart/fields.js +1 -0
- package/dist/lib/puck/blocks/general/Chart/render.d.ts +6 -0
- package/dist/lib/puck/blocks/general/Chart/render.js +2 -0
- package/dist/lib/puck/blocks/general/ContactLocations/fields.d.ts +2 -0
- package/dist/lib/puck/blocks/general/ContactLocations/fields.js +1 -0
- package/dist/lib/puck/blocks/general/ContactLocations/render.d.ts +2 -0
- package/dist/lib/puck/blocks/general/ContactLocations/render.js +1 -0
- package/dist/lib/puck/blocks/general/CustomHTML/fields.d.ts +2 -0
- package/dist/lib/puck/blocks/general/CustomHTML/fields.js +1 -0
- package/dist/lib/puck/blocks/general/CustomHTML/render.d.ts +2 -0
- package/dist/lib/puck/blocks/general/CustomHTML/render.js +3 -0
- package/dist/lib/puck/blocks/general/Divider/fields.d.ts +2 -0
- package/dist/lib/puck/blocks/general/Divider/fields.js +1 -0
- package/dist/lib/puck/blocks/general/Divider/render.d.ts +2 -0
- package/dist/lib/puck/blocks/general/Divider/render.js +1 -0
- package/dist/lib/puck/blocks/general/DocBody/fields.d.ts +2 -0
- package/dist/lib/puck/blocks/general/DocBody/fields.js +1 -0
- package/dist/lib/puck/blocks/general/DocBody/render.d.ts +5 -0
- package/dist/lib/puck/blocks/general/DocBody/render.js +1 -0
- package/dist/lib/puck/blocks/general/DocMasthead/fields.d.ts +2 -0
- package/dist/lib/puck/blocks/general/DocMasthead/fields.js +1 -0
- package/dist/lib/puck/blocks/general/DocMasthead/render.d.ts +7 -0
- package/dist/lib/puck/blocks/general/DocMasthead/render.js +1 -0
- package/dist/lib/puck/blocks/general/DocMetaCards/fields.d.ts +2 -0
- package/dist/lib/puck/blocks/general/DocMetaCards/fields.js +1 -0
- package/dist/lib/puck/blocks/general/DocMetaCards/render.d.ts +4 -0
- package/dist/lib/puck/blocks/general/DocMetaCards/render.js +1 -0
- package/dist/lib/puck/blocks/general/DocTabs/fields.d.ts +2 -0
- package/dist/lib/puck/blocks/general/DocTabs/fields.js +1 -0
- package/dist/lib/puck/blocks/general/DocTabs/render.d.ts +6 -0
- package/dist/lib/puck/blocks/general/DocTabs/render.js +1 -0
- package/dist/lib/puck/blocks/general/Eyebrow/fields.d.ts +2 -0
- package/dist/lib/puck/blocks/general/Eyebrow/fields.js +1 -0
- package/dist/lib/puck/blocks/general/Eyebrow/render.d.ts +2 -0
- package/dist/lib/puck/blocks/general/Eyebrow/render.js +1 -0
- package/dist/lib/puck/blocks/general/FAQ/fields.d.ts +2 -0
- package/dist/lib/puck/blocks/general/FAQ/fields.js +1 -0
- package/dist/lib/puck/blocks/general/FAQ/render.d.ts +7 -0
- package/dist/lib/puck/blocks/general/FAQ/render.js +1 -0
- package/dist/lib/puck/blocks/general/FeaturedCover/fields.d.ts +2 -0
- package/dist/lib/puck/blocks/general/FeaturedCover/fields.js +1 -0
- package/dist/lib/puck/blocks/general/FeaturedCover/render.d.ts +13 -0
- package/dist/lib/puck/blocks/general/FeaturedCover/render.js +1 -0
- package/dist/lib/puck/blocks/general/Flex/fields.d.ts +2 -0
- package/dist/lib/puck/blocks/general/Flex/fields.js +1 -0
- package/dist/lib/puck/blocks/general/Flex/render.d.ts +7 -0
- package/dist/lib/puck/blocks/general/Flex/render.js +1 -0
- package/dist/lib/puck/blocks/general/Footprint/fields.d.ts +2 -0
- package/dist/lib/puck/blocks/general/Footprint/fields.js +1 -0
- package/dist/lib/puck/blocks/general/Footprint/render.d.ts +7 -0
- package/dist/lib/puck/blocks/general/Footprint/render.js +2 -0
- package/dist/lib/puck/blocks/general/Grid/fields.d.ts +2 -0
- package/dist/lib/puck/blocks/general/Grid/fields.js +1 -0
- package/dist/lib/puck/blocks/general/Grid/render.d.ts +7 -0
- package/dist/lib/puck/blocks/general/Grid/render.js +1 -0
- package/dist/lib/puck/blocks/general/Heading/fields.d.ts +2 -0
- package/dist/lib/puck/blocks/general/Heading/fields.js +1 -0
- package/dist/lib/puck/blocks/general/Heading/render.d.ts +2 -0
- package/dist/lib/puck/blocks/general/Heading/render.js +1 -0
- package/dist/lib/puck/blocks/general/Hero/fields.d.ts +2 -0
- package/dist/lib/puck/blocks/general/Hero/fields.js +1 -0
- package/dist/lib/puck/blocks/general/Hero/render.d.ts +7 -0
- package/dist/lib/puck/blocks/general/Hero/render.js +1 -0
- package/dist/lib/puck/blocks/general/HeroGroup/fields.d.ts +2 -0
- package/dist/lib/puck/blocks/general/HeroGroup/fields.js +1 -0
- package/dist/lib/puck/blocks/general/HeroGroup/render.d.ts +8 -0
- package/dist/lib/puck/blocks/general/HeroGroup/render.js +1 -0
- package/dist/lib/puck/blocks/general/HeroSingle/fields.d.ts +2 -0
- package/dist/lib/puck/blocks/general/HeroSingle/fields.js +1 -0
- package/dist/lib/puck/blocks/general/HeroSingle/render.d.ts +8 -0
- package/dist/lib/puck/blocks/general/HeroSingle/render.js +1 -0
- package/dist/lib/puck/blocks/general/HeroSlide/fields.d.ts +2 -0
- package/dist/lib/puck/blocks/general/HeroSlide/fields.js +1 -0
- package/dist/lib/puck/blocks/general/HeroSlide/render.d.ts +8 -0
- package/dist/lib/puck/blocks/general/HeroSlide/render.js +1 -0
- package/dist/lib/puck/blocks/general/ImageBlock/fields.d.ts +2 -0
- package/dist/lib/puck/blocks/general/ImageBlock/fields.js +1 -0
- package/dist/lib/puck/blocks/general/ImageBlock/render.d.ts +2 -0
- package/dist/lib/puck/blocks/general/ImageBlock/render.js +1 -0
- package/dist/lib/puck/blocks/general/Integrations/fields.d.ts +2 -0
- package/dist/lib/puck/blocks/general/Integrations/fields.js +2 -0
- package/dist/lib/puck/blocks/general/Integrations/render.d.ts +2 -0
- package/dist/lib/puck/blocks/general/Integrations/render.js +2 -0
- package/dist/lib/puck/blocks/general/IntroBleed/fields.d.ts +2 -0
- package/dist/lib/puck/blocks/general/IntroBleed/fields.js +1 -0
- package/dist/lib/puck/blocks/general/IntroBleed/render.d.ts +7 -0
- package/dist/lib/puck/blocks/general/IntroBleed/render.js +2 -0
- package/dist/lib/puck/blocks/general/KeyFeatures/fields.d.ts +2 -0
- package/dist/lib/puck/blocks/general/KeyFeatures/fields.js +1 -0
- package/dist/lib/puck/blocks/general/KeyFeatures/render.d.ts +6 -0
- package/dist/lib/puck/blocks/general/KeyFeatures/render.js +1 -0
- package/dist/lib/puck/blocks/general/LogoBlock/fields.d.ts +2 -0
- package/dist/lib/puck/blocks/general/LogoBlock/fields.js +1 -0
- package/dist/lib/puck/blocks/general/LogoBlock/render.d.ts +2 -0
- package/dist/lib/puck/blocks/general/LogoBlock/render.js +1 -0
- package/dist/lib/puck/blocks/general/Logos/fields.d.ts +2 -0
- package/dist/lib/puck/blocks/general/Logos/fields.js +1 -0
- package/dist/lib/puck/blocks/general/Logos/render.d.ts +2 -0
- package/dist/lib/puck/blocks/general/Logos/render.js +1 -0
- package/dist/lib/puck/blocks/general/LongRead/fields.d.ts +2 -0
- package/dist/lib/puck/blocks/general/LongRead/fields.js +1 -0
- package/dist/lib/puck/blocks/general/LongRead/render.d.ts +19 -0
- package/dist/lib/puck/blocks/general/LongRead/render.js +1 -0
- package/dist/lib/puck/blocks/general/Manifesto/fields.d.ts +2 -0
- package/dist/lib/puck/blocks/general/Manifesto/fields.js +2 -0
- package/dist/lib/puck/blocks/general/Manifesto/render.d.ts +2 -0
- package/dist/lib/puck/blocks/general/Manifesto/render.js +1 -0
- package/dist/lib/puck/blocks/general/Masthead/fields.d.ts +2 -0
- package/dist/lib/puck/blocks/general/Masthead/fields.js +1 -0
- package/dist/lib/puck/blocks/general/Masthead/render.d.ts +8 -0
- package/dist/lib/puck/blocks/general/Masthead/render.js +1 -0
- package/dist/lib/puck/blocks/general/Mockup/fields.d.ts +2 -0
- package/dist/lib/puck/blocks/general/Mockup/fields.js +2 -0
- package/dist/lib/puck/blocks/general/Mockup/render.d.ts +2 -0
- package/dist/lib/puck/blocks/general/Mockup/render.js +2 -0
- package/dist/lib/puck/blocks/general/OrderSummary/fields.d.ts +2 -0
- package/dist/lib/puck/blocks/general/OrderSummary/fields.js +1 -0
- package/dist/lib/puck/blocks/general/OrderSummary/render.d.ts +6 -0
- package/dist/lib/puck/blocks/general/OrderSummary/render.js +1 -0
- package/dist/lib/puck/blocks/general/ParagraphsA/fields.d.ts +2 -0
- package/dist/lib/puck/blocks/general/ParagraphsA/fields.js +1 -0
- package/dist/lib/puck/blocks/general/ParagraphsA/render.d.ts +9 -0
- package/dist/lib/puck/blocks/general/ParagraphsA/render.js +1 -0
- package/dist/lib/puck/blocks/general/PaymentBadges/fields.d.ts +2 -0
- package/dist/lib/puck/blocks/general/PaymentBadges/fields.js +1 -0
- package/dist/lib/puck/blocks/general/PaymentBadges/render.d.ts +5 -0
- package/dist/lib/puck/blocks/general/PaymentBadges/render.js +1 -0
- package/dist/lib/puck/blocks/general/PostCard/fields.d.ts +2 -0
- package/dist/lib/puck/blocks/general/PostCard/fields.js +1 -0
- package/dist/lib/puck/blocks/general/PostCard/render.d.ts +9 -0
- package/dist/lib/puck/blocks/general/PostCard/render.js +1 -0
- package/dist/lib/puck/blocks/general/ProcessSteps/fields.d.ts +2 -0
- package/dist/lib/puck/blocks/general/ProcessSteps/fields.js +1 -0
- package/dist/lib/puck/blocks/general/ProcessSteps/render.d.ts +13 -0
- package/dist/lib/puck/blocks/general/ProcessSteps/render.js +1 -0
- package/dist/lib/puck/blocks/general/Prose/fields.d.ts +2 -0
- package/dist/lib/puck/blocks/general/Prose/fields.js +1 -0
- package/dist/lib/puck/blocks/general/Prose/render.d.ts +7 -0
- package/dist/lib/puck/blocks/general/Prose/render.js +1 -0
- package/dist/lib/puck/blocks/general/SectionHeader/fields.d.ts +2 -0
- package/dist/lib/puck/blocks/general/SectionHeader/fields.js +1 -0
- package/dist/lib/puck/blocks/general/SectionHeader/render.d.ts +2 -0
- package/dist/lib/puck/blocks/general/SectionHeader/render.js +1 -0
- package/dist/lib/puck/blocks/general/Series/fields.d.ts +2 -0
- package/dist/lib/puck/blocks/general/Series/fields.js +1 -0
- package/dist/lib/puck/blocks/general/Series/render.d.ts +8 -0
- package/dist/lib/puck/blocks/general/Series/render.js +1 -0
- package/dist/lib/puck/blocks/general/Spacer/fields.d.ts +2 -0
- package/dist/lib/puck/blocks/general/Spacer/fields.js +1 -0
- package/dist/lib/puck/blocks/general/Spacer/render.d.ts +2 -0
- package/dist/lib/puck/blocks/general/Spacer/render.js +1 -0
- package/dist/lib/puck/blocks/general/SpecStrip/fields.d.ts +2 -0
- package/dist/lib/puck/blocks/general/SpecStrip/fields.js +1 -0
- package/dist/lib/puck/blocks/general/SpecStrip/render.d.ts +2 -0
- package/dist/lib/puck/blocks/general/SpecStrip/render.js +1 -0
- package/dist/lib/puck/blocks/general/Split/fields.d.ts +2 -0
- package/dist/lib/puck/blocks/general/Split/fields.js +1 -0
- package/dist/lib/puck/blocks/general/Split/render.d.ts +10 -0
- package/dist/lib/puck/blocks/general/Split/render.js +2 -0
- package/dist/lib/puck/blocks/general/Stats/fields.d.ts +2 -0
- package/dist/lib/puck/blocks/general/Stats/fields.js +1 -0
- package/dist/lib/puck/blocks/general/Stats/render.d.ts +2 -0
- package/dist/lib/puck/blocks/general/Stats/render.js +1 -0
- package/dist/lib/puck/blocks/general/StatsParagraph/fields.d.ts +2 -0
- package/dist/lib/puck/blocks/general/StatsParagraph/fields.js +1 -0
- package/dist/lib/puck/blocks/general/StatsParagraph/render.d.ts +7 -0
- package/dist/lib/puck/blocks/general/StatsParagraph/render.js +1 -0
- package/dist/lib/puck/blocks/general/Testimonials/fields.d.ts +2 -0
- package/dist/lib/puck/blocks/general/Testimonials/fields.js +1 -0
- package/dist/lib/puck/blocks/general/Testimonials/render.d.ts +6 -0
- package/dist/lib/puck/blocks/general/Testimonials/render.js +1 -0
- package/dist/lib/puck/blocks/general/Text/fields.d.ts +2 -0
- package/dist/lib/puck/blocks/general/Text/fields.js +1 -0
- package/dist/lib/puck/blocks/general/Text/render.d.ts +2 -0
- package/dist/lib/puck/blocks/general/Text/render.js +1 -0
- package/dist/lib/puck/blocks/general/Ticker/fields.d.ts +2 -0
- package/dist/lib/puck/blocks/general/Ticker/fields.js +1 -0
- package/dist/lib/puck/blocks/general/Ticker/render.d.ts +5 -0
- package/dist/lib/puck/blocks/general/Ticker/render.js +1 -0
- package/dist/lib/puck/blocks/general/Timeline/fields.d.ts +2 -0
- package/dist/lib/puck/blocks/general/Timeline/fields.js +1 -0
- package/dist/lib/puck/blocks/general/Timeline/render.d.ts +10 -0
- package/dist/lib/puck/blocks/general/Timeline/render.js +2 -0
- package/dist/lib/puck/blocks/general/TimelineTrack/fields.d.ts +2 -0
- package/dist/lib/puck/blocks/general/TimelineTrack/fields.js +1 -0
- package/dist/lib/puck/blocks/general/TimelineTrack/render.d.ts +8 -0
- package/dist/lib/puck/blocks/general/TimelineTrack/render.js +1 -0
- package/dist/lib/puck/blocks/general/TitleWithButtons/fields.d.ts +2 -0
- package/dist/lib/puck/blocks/general/TitleWithButtons/fields.js +1 -0
- package/dist/lib/puck/blocks/general/TitleWithButtons/render.d.ts +5 -0
- package/dist/lib/puck/blocks/general/TitleWithButtons/render.js +2 -0
- package/dist/lib/puck/blocks/general/index.d.ts +2 -0
- package/dist/lib/puck/blocks/general/index.js +1 -0
- package/dist/lib/puck/blocks/general/renders.d.ts +57 -0
- package/dist/lib/puck/blocks/general/renders.js +1 -0
- package/dist/lib/puck/blocks/general/section-bg-built-in.d.ts +6 -0
- package/dist/lib/puck/blocks/general/section-bg-built-in.js +1 -0
- package/dist/lib/puck/blocks/placeholders.d.ts +25 -0
- package/dist/lib/puck/blocks/placeholders.js +1 -0
- package/dist/lib/puck/blocks/scaffold.d.ts +22 -0
- package/dist/lib/puck/blocks/scaffold.js +1 -0
- package/dist/lib/puck/blocks/shared-fields.d.ts +14 -0
- package/dist/lib/puck/blocks/shared-fields.js +1 -0
- package/dist/lib/puck/booking-preview.d.ts +3 -0
- package/dist/lib/puck/booking-preview.js +1 -0
- package/dist/lib/puck/box-footer.d.ts +9 -0
- package/dist/lib/puck/box-footer.js +1 -0
- package/dist/lib/puck/build-config.d.ts +3 -0
- package/dist/lib/puck/build-config.js +1 -0
- package/dist/lib/puck/cap-hero-groups.d.ts +1 -0
- package/dist/lib/puck/cap-hero-groups.js +1 -0
- package/dist/lib/puck/container-blocks.d.ts +10 -0
- package/dist/lib/puck/container-blocks.js +1 -0
- package/dist/lib/puck/content-tree.d.ts +43 -0
- package/dist/lib/puck/content-tree.js +1 -0
- package/dist/lib/puck/controls.d.ts +346 -0
- package/dist/lib/puck/controls.js +1 -0
- package/dist/lib/puck/device-fields.d.ts +24 -0
- package/dist/lib/puck/device-fields.js +1 -0
- package/dist/lib/puck/editor-page-context.d.ts +6 -0
- package/dist/lib/puck/editor-page-context.js +1 -0
- package/dist/lib/puck/enclosing-section.d.ts +1 -0
- package/dist/lib/puck/enclosing-section.js +1 -0
- package/dist/lib/puck/field-groups.d.ts +23 -0
- package/dist/lib/puck/field-groups.js +1 -0
- package/dist/lib/puck/field-markers.d.ts +16 -0
- package/dist/lib/puck/field-markers.js +1 -0
- package/dist/lib/puck/field-noun.d.ts +3 -0
- package/dist/lib/puck/field-noun.js +1 -0
- package/dist/lib/puck/footer-blocks.d.ts +19 -0
- package/dist/lib/puck/footer-blocks.js +1 -0
- package/dist/lib/puck/footer-return.d.ts +3 -0
- package/dist/lib/puck/footer-return.js +1 -0
- package/dist/lib/puck/general-registry.d.ts +4 -0
- package/dist/lib/puck/general-registry.js +1 -0
- package/dist/lib/puck/geocode-resolve.d.ts +14 -0
- package/dist/lib/puck/geocode-resolve.js +1 -0
- package/dist/lib/puck/header-clearance.d.ts +49 -0
- package/dist/lib/puck/header-clearance.js +1 -0
- package/dist/lib/puck/header-ink.d.ts +16 -0
- package/dist/lib/puck/header-ink.js +1 -0
- package/dist/lib/puck/heading-outline.d.ts +7 -0
- package/dist/lib/puck/heading-outline.js +1 -0
- package/dist/lib/puck/hidable.d.ts +9 -0
- package/dist/lib/puck/hidable.js +1 -0
- package/dist/lib/puck/home-page.d.ts +1 -0
- package/dist/lib/puck/home-page.js +1 -0
- package/dist/lib/puck/left-view.d.ts +5 -0
- package/dist/lib/puck/left-view.js +1 -0
- package/dist/lib/puck/locations-focus.d.ts +22 -0
- package/dist/lib/puck/locations-focus.js +1 -0
- package/dist/lib/puck/locations-tree.d.ts +23 -0
- package/dist/lib/puck/locations-tree.js +2 -0
- package/dist/lib/puck/locked-blocks.d.ts +2 -0
- package/dist/lib/puck/locked-blocks.js +1 -0
- package/dist/lib/puck/media-manifest.json +138 -0
- package/dist/lib/puck/migrate-legacy.d.ts +2 -0
- package/dist/lib/puck/migrate-legacy.js +1 -0
- package/dist/lib/puck/mockup-variant-fields.d.ts +10 -0
- package/dist/lib/puck/mockup-variant-fields.js +1 -0
- package/dist/lib/puck/neutralization-contracts.d.ts +43 -0
- package/dist/lib/puck/neutralization-contracts.js +1 -0
- package/dist/lib/puck/one-h1.d.ts +3 -0
- package/dist/lib/puck/one-h1.js +1 -0
- package/dist/lib/puck/overlay-portal.d.ts +2 -0
- package/dist/lib/puck/overlay-portal.js +1 -0
- package/dist/lib/puck/overrides.d.ts +2 -0
- package/dist/lib/puck/overrides.js +1 -0
- package/dist/lib/puck/page-render.d.ts +5 -0
- package/dist/lib/puck/page-render.js +1 -0
- package/dist/lib/puck/page-root-fields.d.ts +29 -0
- package/dist/lib/puck/page-root-fields.js +1 -0
- package/dist/lib/puck/page-root.d.ts +55 -0
- package/dist/lib/puck/page-root.js +1 -0
- package/dist/lib/puck/panel-drop-empty-headings.d.ts +3 -0
- package/dist/lib/puck/panel-drop-empty-headings.js +1 -0
- package/dist/lib/puck/panel-fields.d.ts +12 -0
- package/dist/lib/puck/panel-fields.js +1 -0
- package/dist/lib/puck/panel-heading-scope.d.ts +8 -0
- package/dist/lib/puck/panel-heading-scope.js +1 -0
- package/dist/lib/puck/panel-no-control-mark.d.ts +7 -0
- package/dist/lib/puck/panel-no-control-mark.js +1 -0
- package/dist/lib/puck/part-anchors.d.ts +23 -0
- package/dist/lib/puck/part-anchors.js +1 -0
- package/dist/lib/puck/part-inks.d.ts +9 -0
- package/dist/lib/puck/part-inks.js +1 -0
- package/dist/lib/puck/part-key.d.ts +9 -0
- package/dist/lib/puck/part-key.js +1 -0
- package/dist/lib/puck/part-row-field.d.ts +2 -0
- package/dist/lib/puck/part-row-field.js +1 -0
- package/dist/lib/puck/part-rows.d.ts +15 -0
- package/dist/lib/puck/part-rows.js +1 -0
- package/dist/lib/puck/part-styles.d.ts +133 -0
- package/dist/lib/puck/part-styles.js +2 -0
- package/dist/lib/puck/part-text.d.ts +12 -0
- package/dist/lib/puck/part-text.js +1 -0
- package/dist/lib/puck/part-typing.d.ts +11 -0
- package/dist/lib/puck/part-typing.js +1 -0
- package/dist/lib/puck/passes/catalogue-labels.d.ts +2 -0
- package/dist/lib/puck/passes/catalogue-labels.js +1 -0
- package/dist/lib/puck/passes/cell-width.d.ts +2 -0
- package/dist/lib/puck/passes/cell-width.js +1 -0
- package/dist/lib/puck/passes/clickable-parts.d.ts +2 -0
- package/dist/lib/puck/passes/clickable-parts.js +1 -0
- package/dist/lib/puck/passes/corners.d.ts +3 -0
- package/dist/lib/puck/passes/corners.js +1 -0
- package/dist/lib/puck/passes/document-position.d.ts +16 -0
- package/dist/lib/puck/passes/document-position.js +1 -0
- package/dist/lib/puck/passes/empty-headings.d.ts +2 -0
- package/dist/lib/puck/passes/empty-headings.js +1 -0
- package/dist/lib/puck/passes/hidden-nodes.d.ts +2 -0
- package/dist/lib/puck/passes/hidden-nodes.js +1 -0
- package/dist/lib/puck/passes/index.d.ts +5 -0
- package/dist/lib/puck/passes/index.js +1 -0
- package/dist/lib/puck/passes/inspector.d.ts +2 -0
- package/dist/lib/puck/passes/inspector.js +1 -0
- package/dist/lib/puck/passes/registry-context.d.ts +2 -0
- package/dist/lib/puck/passes/registry-context.js +1 -0
- package/dist/lib/puck/passes/section-anchor.d.ts +2 -0
- package/dist/lib/puck/passes/section-anchor.js +1 -0
- package/dist/lib/puck/passes/section-animation.d.ts +2 -0
- package/dist/lib/puck/passes/section-animation.js +1 -0
- package/dist/lib/puck/passes/section-height.d.ts +2 -0
- package/dist/lib/puck/passes/section-height.js +1 -0
- package/dist/lib/puck/passes/section-padding.d.ts +8 -0
- package/dist/lib/puck/passes/section-padding.js +1 -0
- package/dist/lib/puck/passes/section-theme.d.ts +3 -0
- package/dist/lib/puck/passes/section-theme.js +1 -0
- package/dist/lib/puck/passes/section-width.d.ts +10 -0
- package/dist/lib/puck/passes/section-width.js +1 -0
- package/dist/lib/puck/passes/settings-groups.d.ts +3 -0
- package/dist/lib/puck/passes/settings-groups.js +1 -0
- package/dist/lib/puck/passes/slot-rules.d.ts +4 -0
- package/dist/lib/puck/passes/slot-rules.js +1 -0
- package/dist/lib/puck/passes/types.d.ts +51 -0
- package/dist/lib/puck/passes/types.js +0 -0
- package/dist/lib/puck/phone-override.d.ts +4 -0
- package/dist/lib/puck/phone-override.js +1 -0
- package/dist/lib/puck/pinned-seed-gate.d.ts +17 -0
- package/dist/lib/puck/pinned-seed-gate.js +1 -0
- package/dist/lib/puck/preview-click.d.ts +2 -0
- package/dist/lib/puck/preview-click.js +1 -0
- package/dist/lib/puck/preview-dom.d.ts +6 -0
- package/dist/lib/puck/preview-dom.js +1 -0
- package/dist/lib/puck/preview-selection-context.d.ts +19 -0
- package/dist/lib/puck/preview-selection-context.js +1 -0
- package/dist/lib/puck/registry.d.ts +3 -0
- package/dist/lib/puck/registry.js +1 -0
- package/dist/lib/puck/renamed-props.d.ts +2 -0
- package/dist/lib/puck/renamed-props.js +1 -0
- package/dist/lib/puck/sanitize.d.ts +1 -0
- package/dist/lib/puck/sanitize.js +1 -0
- package/dist/lib/puck/section-catalog.d.ts +36 -0
- package/dist/lib/puck/section-catalog.js +1 -0
- package/dist/lib/puck/section-descriptions.d.ts +1 -0
- package/dist/lib/puck/section-descriptions.js +1 -0
- package/dist/lib/puck/section-doc.d.ts +5 -0
- package/dist/lib/puck/section-doc.js +1 -0
- package/dist/lib/puck/section-groups.d.ts +21 -0
- package/dist/lib/puck/section-groups.js +1 -0
- package/dist/lib/puck/section-text-suppress.d.ts +9 -0
- package/dist/lib/puck/section-text-suppress.js +1 -0
- package/dist/lib/puck/site-gap-fields.d.ts +2 -0
- package/dist/lib/puck/site-gap-fields.js +1 -0
- package/dist/lib/puck/slider-typing.d.ts +9 -0
- package/dist/lib/puck/slider-typing.js +1 -0
- package/dist/lib/puck/slot-child-name.d.ts +8 -0
- package/dist/lib/puck/slot-child-name.js +1 -0
- package/dist/lib/puck/slot-heal.d.ts +2 -0
- package/dist/lib/puck/slot-heal.js +1 -0
- package/dist/lib/puck/slot-specs.d.ts +20 -0
- package/dist/lib/puck/slot-specs.js +1 -0
- package/dist/lib/puck/snapshot-contracts.d.ts +4 -0
- package/dist/lib/puck/snapshot-contracts.js +1 -0
- package/dist/lib/puck/source-bound-parts.d.ts +12 -0
- package/dist/lib/puck/source-bound-parts.js +1 -0
- package/dist/lib/puck/style-clipboard.d.ts +19 -0
- package/dist/lib/puck/style-clipboard.js +1 -0
- package/dist/lib/puck/templateFields.d.ts +2 -0
- package/dist/lib/puck/templateFields.js +1 -0
- package/dist/lib/puck/text-control-kinds.d.ts +13 -0
- package/dist/lib/puck/text-control-kinds.js +1 -0
- package/dist/lib/puck/text-parts.d.ts +33 -0
- package/dist/lib/puck/text-parts.js +1 -0
- package/dist/lib/puck/theme-swatches.d.ts +3 -0
- package/dist/lib/puck/theme-swatches.js +1 -0
- package/dist/lib/puck/tree-reveal.d.ts +11 -0
- package/dist/lib/puck/tree-reveal.js +1 -0
- package/dist/lib/puck/use-section-ops.d.ts +25 -0
- package/dist/lib/puck/use-section-ops.js +1 -0
- package/dist/lib/reel.d.ts +33 -0
- package/dist/lib/reel.js +1 -0
- package/dist/lib/safe-storage.d.ts +10 -0
- package/dist/lib/safe-storage.js +1 -0
- package/dist/lib/save-as-template-action.d.ts +29 -0
- package/dist/lib/save-as-template-action.js +1 -0
- package/dist/lib/section-template-types.d.ts +21 -0
- package/dist/lib/section-template-types.js +0 -0
- package/dist/lib/sections/card-cover-index.d.ts +7 -0
- package/dist/lib/sections/card-cover-index.js +1 -0
- package/dist/lib/sections/collection-card-text-regions.d.ts +4 -0
- package/dist/lib/sections/collection-card-text-regions.js +1 -0
- package/dist/lib/sections/divider-style.d.ts +12 -0
- package/dist/lib/sections/divider-style.js +1 -0
- package/dist/lib/sections/faq-text-regions.d.ts +4 -0
- package/dist/lib/sections/faq-text-regions.js +1 -0
- package/dist/lib/sections/hero-overlay.d.ts +10 -0
- package/dist/lib/sections/hero-overlay.js +1 -0
- package/dist/lib/sections/intro-bleed-layout.d.ts +15 -0
- package/dist/lib/sections/intro-bleed-layout.js +1 -0
- package/dist/lib/sections/product-card-style.d.ts +18 -0
- package/dist/lib/sections/product-card-style.js +1 -0
- package/dist/lib/sections/section-eyebrow-look.d.ts +11 -0
- package/dist/lib/sections/section-eyebrow-look.js +1 -0
- package/dist/lib/sections/section-head-placement.d.ts +31 -0
- package/dist/lib/sections/section-head-placement.js +1 -0
- package/dist/lib/sections/section-head-style.d.ts +16 -0
- package/dist/lib/sections/section-head-style.js +1 -0
- package/dist/lib/sections/section-number-style.d.ts +10 -0
- package/dist/lib/sections/section-number-style.js +1 -0
- package/dist/lib/sections/section-presets.d.ts +9 -0
- package/dist/lib/sections/section-presets.js +1 -0
- package/dist/lib/sections/section-text-kinds.d.ts +8 -0
- package/dist/lib/sections/section-text-kinds.js +1 -0
- package/dist/lib/sections/section-text-regions.d.ts +3 -0
- package/dist/lib/sections/section-text-regions.js +1 -0
- package/dist/lib/sections/spec-table-regions.d.ts +11 -0
- package/dist/lib/sections/spec-table-regions.js +1 -0
- package/dist/lib/sections/text-regions.d.ts +21 -0
- package/dist/lib/sections/text-regions.js +1 -0
- package/dist/lib/sections/ticker-join.d.ts +9 -0
- package/dist/lib/sections/ticker-join.js +1 -0
- package/dist/lib/sections/ticker-scroll.d.ts +11 -0
- package/dist/lib/sections/ticker-scroll.js +1 -0
- package/dist/lib/sections/ticker-style.d.ts +17 -0
- package/dist/lib/sections/ticker-style.js +1 -0
- package/dist/lib/site-runtime.d.ts +28 -0
- package/dist/lib/site-runtime.js +1 -0
- package/dist/lib/site-theme-row.d.ts +52 -0
- package/dist/lib/site-theme-row.js +0 -0
- package/dist/lib/slugify.d.ts +1 -0
- package/dist/lib/slugify.js +1 -0
- package/dist/lib/theme-dom.d.ts +14 -0
- package/dist/lib/theme-dom.js +1 -0
- package/dist/lib/theme-row-persist.d.ts +34 -0
- package/dist/lib/theme-row-persist.js +1 -0
- package/dist/lib/theme-save-message.d.ts +6 -0
- package/dist/lib/theme-save-message.js +1 -0
- package/dist/lib/theme.d.ts +177 -0
- package/dist/lib/theme.js +18 -0
- package/dist/lib/use-host-products.d.ts +2 -0
- package/dist/lib/use-host-products.js +1 -0
- package/dist/lib/web-backend.d.ts +193 -0
- package/dist/lib/web-backend.js +1 -0
- package/dist/lib/web-runtime.d.ts +7 -0
- package/dist/lib/web-runtime.js +1 -0
- package/dist/lib/word-styles.d.ts +54 -0
- package/dist/lib/word-styles.js +1 -0
- package/package.json +40 -36
- package/dist/chunks/EditorPreviewCheckout-5KOAA2SK.js +0 -4
- package/dist/chunks/PreviewFooter-H6XJUR5S.js +0 -1
- package/dist/chunks/SectionEditorShell-EEZR7KFE.js +0 -1
- package/dist/chunks/SiteEditorProvider-ECGZVKLG.js +0 -1
- package/dist/chunks/StorefrontEditorChrome-4TFS62GY.js +0 -1
- package/dist/chunks/chunk-6CP4D6VJ.js +0 -1
- package/dist/chunks/chunk-7QXLVNFD.js +0 -1
- package/dist/chunks/chunk-BJOS4Y35.js +0 -15
- package/dist/chunks/chunk-BJOS4Y35.js.LEGAL.txt +0 -27
- package/dist/chunks/chunk-EIXUXJQ5.js +0 -153
- package/dist/chunks/chunk-EIXUXJQ5.js.LEGAL.txt +0 -4
- package/dist/chunks/chunk-H7O6ZYX6.js +0 -1
- package/dist/chunks/chunk-HVOO2GNE.js +0 -1
- package/dist/chunks/chunk-IFRGL3GL.js +0 -1
- package/dist/chunks/chunk-ML2AR222.js +0 -1
- package/dist/chunks/chunk-RRHBLOH4.js +0 -1
- package/dist/chunks/chunk-S6SXIMIG.js +0 -2
- package/dist/chunks/chunk-SNH7IFTZ.js +0 -1
- package/dist/chunks/chunk-Y4CZD2YY.js +0 -230
- package/dist/chunks/chunk-Y6SLVHK3.js +0 -1
- package/dist/chunks/chunk-YVQUISDX.js +0 -1
- package/dist/chunks/fitment-data-6NXSKODX.js +0 -1
- package/dist/chunks/gallery-builds-data-SWA6XKFF.js +0 -1
- package/dist/chunks/headers-3CAQXQEY.js +0 -1
- package/dist/chunks/render-client-YGYDU3K2.js +0 -1
- package/dist/contract.d.ts +0 -48
- package/dist/contract.js +0 -1
- package/dist/editor.css +0 -1
- package/dist/index.d.ts +0 -721
- package/dist/index.js +0 -11058
- package/dist/links.d.ts +0 -86
- package/dist/links.js +0 -1
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
import { type FontRole } from "../fonts.js";
|
|
2
|
+
import type { PartEl } from "./part-anchors.js";
|
|
3
|
+
import { type PartNeedle } from "./text-parts.js";
|
|
4
|
+
export declare const PART_STYLES_PROP = "_partStyles";
|
|
5
|
+
export declare const PART_STYLED_ATTR = "data-sf-part-styled";
|
|
6
|
+
export declare const PART_CASES: readonly ["none", "upper", "lower"];
|
|
7
|
+
export type PartCase = (typeof PART_CASES)[number];
|
|
8
|
+
export declare const PART_WEIGHTS: readonly [400, 500, 600, 700];
|
|
9
|
+
export type PartWeight = (typeof PART_WEIGHTS)[number];
|
|
10
|
+
export declare const PART_ALIGNS: readonly ["left", "center", "right", "justify"];
|
|
11
|
+
export type PartAlign = (typeof PART_ALIGNS)[number];
|
|
12
|
+
export declare const PART_SIZE_MIN = 5;
|
|
13
|
+
export declare const PART_SIZE_MAX = 1000;
|
|
14
|
+
export declare const PART_NUDGE_MIN = -5;
|
|
15
|
+
export declare const PART_NUDGE_MAX = 10;
|
|
16
|
+
export declare const PART_PADDING_MIN = 0;
|
|
17
|
+
export declare const PART_PADDING_MAX = 64;
|
|
18
|
+
export declare const PART_PADDING_STEP = 2;
|
|
19
|
+
export declare const PART_WIDTH_MIN = 120;
|
|
20
|
+
export declare const PART_WIDTH_MAX = 1280;
|
|
21
|
+
export declare const PART_WIDTH_STEP = 10;
|
|
22
|
+
export declare const PART_MEASURED_TRACKS: {
|
|
23
|
+
readonly size: {
|
|
24
|
+
readonly min: 5;
|
|
25
|
+
readonly max: 1000;
|
|
26
|
+
readonly step: 1;
|
|
27
|
+
};
|
|
28
|
+
readonly padding: {
|
|
29
|
+
readonly min: 0;
|
|
30
|
+
readonly max: 64;
|
|
31
|
+
readonly step: 2;
|
|
32
|
+
};
|
|
33
|
+
readonly width: {
|
|
34
|
+
readonly min: 120;
|
|
35
|
+
readonly max: 1280;
|
|
36
|
+
readonly step: 10;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
export type PartMeasuredProp = keyof typeof PART_MEASURED_TRACKS;
|
|
40
|
+
export declare const PART_LINE_STEP = 0.05;
|
|
41
|
+
export declare const PART_LETTER_STEP = 0.01;
|
|
42
|
+
export declare const PART_RELATIVE_PROPS: readonly ["line", "letter"];
|
|
43
|
+
export type PartRelativeProp = (typeof PART_RELATIVE_PROPS)[number];
|
|
44
|
+
export declare const PART_LINE_HEIGHT_MIN = 0.5;
|
|
45
|
+
export declare const PART_LINE_HEIGHT_MAX = 2.5;
|
|
46
|
+
export declare const PART_LETTER_EM_MIN = -1;
|
|
47
|
+
export declare const PART_LETTER_EM_MAX = 1;
|
|
48
|
+
export declare const PART_PARAGRAPH_MIN = 0;
|
|
49
|
+
export declare const PART_PARAGRAPH_MAX = 400;
|
|
50
|
+
export type PartStyle = {
|
|
51
|
+
font?: string;
|
|
52
|
+
role?: FontRole;
|
|
53
|
+
weight?: PartWeight;
|
|
54
|
+
size?: number;
|
|
55
|
+
line?: number;
|
|
56
|
+
letter?: number;
|
|
57
|
+
lineHeight?: number;
|
|
58
|
+
letterSpacing?: number;
|
|
59
|
+
paragraphSpacing?: number;
|
|
60
|
+
case?: PartCase;
|
|
61
|
+
align?: PartAlign;
|
|
62
|
+
padding?: number;
|
|
63
|
+
width?: number;
|
|
64
|
+
color?: string;
|
|
65
|
+
};
|
|
66
|
+
export type PartStyleBase = {
|
|
67
|
+
fontKey: string;
|
|
68
|
+
sizePx: number;
|
|
69
|
+
weight: PartWeight;
|
|
70
|
+
lineRatio: number;
|
|
71
|
+
letterEm: number;
|
|
72
|
+
align: PartAlign;
|
|
73
|
+
case: PartCase;
|
|
74
|
+
paddingPx: number;
|
|
75
|
+
widthPx: number;
|
|
76
|
+
};
|
|
77
|
+
export type PartStyles = Record<string, PartStyle>;
|
|
78
|
+
export type StyledPartEl = PartEl & {
|
|
79
|
+
style: Record<string, string>;
|
|
80
|
+
readonly parentElement: StyledPartEl | null;
|
|
81
|
+
};
|
|
82
|
+
export type StyledPartStamp = {
|
|
83
|
+
element: StyledPartEl;
|
|
84
|
+
partId: string;
|
|
85
|
+
};
|
|
86
|
+
export declare function readPartStyles(props: Record<string, unknown> | undefined): PartStyles;
|
|
87
|
+
export declare function readPartStyle(props: Record<string, unknown> | undefined, partKey: string): PartStyle;
|
|
88
|
+
export declare function partStyleCount(props: Record<string, unknown> | undefined, partKey: string): number;
|
|
89
|
+
export declare function propsWithPartStyleValue<K extends keyof PartStyle>(props: Record<string, unknown>, partKey: string, prop: K, value: PartStyle[K] | null): Record<string, unknown>;
|
|
90
|
+
export declare function propsWithoutPartStyle(props: Record<string, unknown>, partKey: string): Record<string, unknown>;
|
|
91
|
+
export declare function partCaseOfTransform(transform: string | null | undefined): PartCase;
|
|
92
|
+
export declare function partCaseTransform(value: PartCase | undefined): string;
|
|
93
|
+
export declare function partSpacingOf(style: PartStyle): {
|
|
94
|
+
lineHeight?: number;
|
|
95
|
+
letterSpacingEm?: number;
|
|
96
|
+
};
|
|
97
|
+
export declare const PART_PARAGRAPH_VAR = "--sf-part-para";
|
|
98
|
+
export declare function partStyleDeclarations(style: PartStyle, base: PartStyleBase, statedSteps?: ReadonlySet<string>): Record<string, string>;
|
|
99
|
+
export declare function isHexColour(value: string): boolean;
|
|
100
|
+
export type MeasuredPartStyle = {
|
|
101
|
+
fontSize: string;
|
|
102
|
+
fontWeight: string;
|
|
103
|
+
lineHeight: string;
|
|
104
|
+
letterSpacing: string;
|
|
105
|
+
textAlign: string;
|
|
106
|
+
textTransform: string;
|
|
107
|
+
paddingTop: string;
|
|
108
|
+
maxWidth: string;
|
|
109
|
+
};
|
|
110
|
+
export declare function partStyleBase(measured: MeasuredPartStyle, fontKey: string): PartStyleBase;
|
|
111
|
+
export declare function partFontKeyOf(family: string, resolve: (cssVar: string) => string): string;
|
|
112
|
+
export declare function partStyleSource<E extends {
|
|
113
|
+
getAttribute(name: string): string | null;
|
|
114
|
+
}>(nodeId: string, selectedPartId: string | null, selectedElements: readonly E[], declaresStyle: (className: string | null) => boolean): E | null;
|
|
115
|
+
export declare function applyPartStyles(stamps: readonly StyledPartStamp[], styles: PartStyles, baseOf?: (element: StyledPartEl) => PartStyleBase, styleKeyOf?: (partKey: string) => string, isInline?: (element: StyledPartEl) => boolean): number;
|
|
116
|
+
export declare const PART_PARAGRAPH_ATTR = "data-sf-part-para";
|
|
117
|
+
export declare const PART_STYLE_PROPERTIES: readonly string[];
|
|
118
|
+
export declare const SHARED_PART_PROPERTIES: readonly string[];
|
|
119
|
+
export type PublishedPartRule = {
|
|
120
|
+
stamp: string;
|
|
121
|
+
declarations: Record<string, string>;
|
|
122
|
+
};
|
|
123
|
+
export type PublishedPartSheet = {
|
|
124
|
+
rules: ReadonlyMap<string, PublishedPartRule>;
|
|
125
|
+
kindRules: ReadonlyMap<string, PublishedPartRule>;
|
|
126
|
+
drawn: ReadonlySet<string>;
|
|
127
|
+
};
|
|
128
|
+
export declare function publishedPartStyles(needles: readonly PartNeedle[], styles: PartStyles, scope: string, styleKeyOf?: (partKey: string) => string): PublishedPartSheet | null;
|
|
129
|
+
export declare function isPartKindKey(key: string): boolean;
|
|
130
|
+
export declare function partRuleForKind(sheet: PublishedPartSheet | null, kind: string): PublishedPartRule | null;
|
|
131
|
+
export declare function partStyleCss(sheet: PublishedPartSheet): string;
|
|
132
|
+
export declare function paragraphRules(scope: string): string[];
|
|
133
|
+
export declare function partRuleForText(sheet: PublishedPartSheet | null, value: string): PublishedPartRule | null;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{FONT_OPTIONS as K,FONT_ROLES as M,fontOption as G,SIZE_STEP_OF_ROLE as R}from"../fonts.js";import{encodePartKey as X}from"./part-key.js";import{decodePartId as F,normalizePartText as b}from"./text-parts.js";import{COLOUR_TOKEN as H}from"../word-styles.js";const E="_partStyles",V="data-sf-part-styled",U=["none","upper","lower"],B=[400,500,600,700],Z=["left","center","right","justify"],Y=5,q=1e3,v=-5,J=10,Q=0,tt=64,et=2,nt=120,T=1280,rt=10,$={size:{min:Y,max:q,step:1},padding:{min:Q,max:tt,step:et},width:{min:nt,max:T,step:rt}},ot=.05,it=.01,st=["line","letter"],at=.5,ct=2.5,lt=-1,ft=1,ut=0,pt=400,w={none:"none",upper:"uppercase",lower:"lowercase"};function P(t){return!t||typeof t!="object"||Array.isArray(t)?null:t}function L(t){return P(t?.[E])??{}}function j(t,e){const n=L(t);return Object.hasOwn(n,e)?P(n[e])??{}:{}}function Xt(t,e){return Object.values(j(t,e)).filter(n=>n!==void 0).length}function k(t,e,n){const r={...L(t)};if(dt(n).length?r[e]=n:delete r[e],!Object.keys(r).length){const{[E]:o,...i}=t;return i}return{...t,[E]:r}}function dt(t){return Object.entries(t).filter(([,e])=>e!==void 0)}function xt(t){return st.includes(t)}const h=(t,e,n)=>Math.min(n,Math.max(e,t));function mt(t,e){if(xt(t)){const n=Math.round(Number(e));return!Number.isFinite(n)||n===0?null:h(n,v,J)}if(t==="lineHeight"){const n=Number(e);return Number.isFinite(n)?m(h(n,at,ct),3):null}if(t==="letterSpacing"){const n=Number(e);return Number.isFinite(n)?m(h(n,lt,ft),4):null}if(t==="paragraphSpacing"){const n=Math.round(Number(e));return!Number.isFinite(n)||n<=0?null:h(n,ut,pt)}if(Object.hasOwn($,t)){const{min:n,max:r}=$[t],o=Math.round(Number(e));return Number.isFinite(o)?h(o,n,r):null}return t==="role"?M.includes(String(e))?e:null:e}const gt=[["font","role"],["line","lineHeight"],["letter","letterSpacing"]];function Pt(t){const e=[];for(const[n,r]of gt)n===t?e.push(r):r===t&&e.push(n);return e}function Vt(t,e,n,r){const o={...j(t,e)},i=r==null?null:mt(n,r);if(i===null)delete o[n];else{o[n]=i;for(const s of Pt(n))delete o[s]}return k(t,e,o)}function Ut(t,e){return k(t,e,{})}function ht(t){for(const e of U)if(w[e]===t)return e;return"none"}function _t(t){return!t||!Object.hasOwn(w,t)?"":w[t]}const At={heading:"--font-role-heading",heading2:"--font-role-heading2",heading3:"--font-role-heading3",body:"--font-role-body",accent:"--font-role-accent",label:"--font-role-label"};function Tt(t){const e=t.role;return e&&M.includes(e)?e:null}const St={headingLarge:"min(clamp(64px,9vw,144px), var(--sf-heading-max,9999px))",headingMedium:"min(32px, var(--sf-heading-max,9999px))",headingSmall:"min(24px, var(--sf-heading-max,9999px))",accent:"32px",body:"14px",label:"12px"};function Rt(t){const e={};return typeof t.lineHeight=="number"?e.lineHeight=t.lineHeight:t.line&&(e.lineHeight=m(bt+t.line*ot,3)),typeof t.letterSpacing=="number"?e.letterSpacingEm=t.letterSpacing:t.letter&&(e.letterSpacingEm=m(t.letter*it,4)),e}const bt=1,_="--sf-part-para";function S(t,e,n){const r=Tt(t),o=Rt(t),i=t.size?`${t.size}px`:r?n?.has(R[r])?`var(--size-${R[r]})`:St[R[r]]??"":"";return{fontFamily:t.font?Ot(t.font):r?`var(${At[r]})`:"",fontWeight:t.weight?String(t.weight):"",fontSize:i,minWidth:i?"0":"",overflowWrap:i?"break-word":"",lineHeight:o.lineHeight!==void 0?String(o.lineHeight):"",letterSpacing:o.letterSpacingEm!==void 0?`${o.letterSpacingEm}em`:"",[_]:t.paragraphSpacing?`${t.paragraphSpacing}px`:"",textTransform:_t(t.case),textAlign:t.align??"",paddingTop:N(t.padding),paddingBottom:N(t.padding),maxWidth:N(t.width),color:Et(t.color)}}const Et=t=>t===void 0||t===""?"":Object.hasOwn(H,t)?H[t]:W.test(t)?t:"",W=/^#[0-9a-fA-F]{6}$/;function Bt(t){return W.test(t)}const N=t=>t===void 0?"":`${t}px`,m=(t,e)=>Number(t.toFixed(e));function Zt(t,e){const n=Number.parseFloat(t.fontSize)||16,r=Number.parseFloat(t.lineHeight),o=Number.parseFloat(t.letterSpacing),i=Number.parseFloat(t.paddingTop),s=Number.parseFloat(t.maxWidth);return{fontKey:e,sizePx:n,weight:wt(Number.parseInt(t.fontWeight,10)),lineRatio:Number.isFinite(r)?m(r/n,3):1.2,letterEm:Number.isFinite(o)?m(o/n,4):0,align:Nt(t.textAlign),case:ht(t.textTransform),paddingPx:Number.isFinite(i)?Math.round(i):0,widthPx:Number.isFinite(s)&&s<T?Math.round(s):T}}function wt(t){return Number.isFinite(t)?B.reduce((e,n)=>Math.abs(n-t)<Math.abs(e-t)?n:e):400}function Nt(t){for(const e of Z)if(e===t)return e;return t==="end"?"right":"left"}function Yt(t,e){const n=D(t);if(!n)return"";for(const r of K)if(D(e(r.cssVar))===n)return r.key;return""}const D=t=>(t.split(",")[0]??"").replace(/["']/g,"").replace(/\s+/g," ").trim().toLowerCase();function Ot(t){const e=G(t);return e?`var(${e.cssVar})`:""}function qt(t,e,n,r){return!e||F(e)?.nodeId!==t?null:n.find(i=>r(i.getAttribute("class")))??n[0]??null}function yt(t){const e=new Set,n=t;if(typeof window>"u"||!n?.ownerDocument)return e;const r=window.getComputedStyle(n);for(const o of It)r.getPropertyValue(`--size-${o}`).trim()&&e.add(o);return e}const It=["headingLarge","headingMedium","headingSmall","accent","body","label"];function vt(t,e,n=()=>A,r=i=>i,o=Ht){let i=0;for(const{element:s,partId:a}of t){const l=F(a)?.propKey;if(!l)continue;const c=r(l),f=Object.hasOwn(e,c)?P(e[c])??{}:{},p=S(f,A,yt(s)),u=y.some(x=>s.style[x]);let d=!1;for(const[x,g]of Object.entries(p))$t(s,x,g),g&&(d=!0);if(u||y.some(x=>p[x]))for(const x of Mt(s,o))for(const g of y)x.style[g]=p[g]??"";d&&(i+=1)}return i}function Mt(t,e){const n=b(t.textContent??""),r=[];let o=t;for(let i=0;i<Ft&&e(o);i+=1){const s=o.parentElement;if(!s||b(s.textContent??"")!==n)break;r.push(s),o=s}return r}const Ft=8;function Ht(t){const e=t;return typeof window>"u"||!e?.ownerDocument?!1:window.getComputedStyle(e).display==="inline"}const A={fontKey:"",sizePx:16,weight:400,lineRatio:1,letterEm:0,align:"left",case:"none",paddingPx:0,widthPx:T};function $t(t,e,n){if(!e.startsWith("--")){t.style[e]=n;return}const r=t.style;typeof r.setProperty=="function"?n?r.setProperty(e,n):r.removeProperty?.(e):r[e]=n;const o=t;e===_&&(n?o.setAttribute?.(C,""):o.removeAttribute?.(C))}const C="data-sf-part-para",Lt=Object.keys(S({},A)),O=new Set(["color","overflowWrap",_]),y=Lt.filter(t=>!O.has(t));function Jt(t,e,n,r=o=>o){const o=new Map;for(const a of t){const l=X(a.key,a.row);for(const c of a.texts){const f=o.get(c);f?(f.keys.add(a.key),f.partKeys.add(l)):o.set(c,{keys:new Set([a.key]),partKeys:new Set([l])})}}const i=new Map;for(const a of Object.keys(e)){if(!jt(a))continue;const l=P(e[a])??{},c=S(l,A);Object.values(c).some(Boolean)&&i.set(a,{stamp:z(n,a),declarations:c})}const s=new Map;for(const[a,{keys:l,partKeys:c}]of o){const f=c.size===1?[...c][0]:l.size===1?[...l][0]:null;if(!f)continue;const p=r(f);if(!Object.hasOwn(e,p))continue;const u=P(e[p])??{},d=S(u,A);Object.values(d).some(Boolean)&&s.set(a,{stamp:z(n,f),declarations:d})}return s.size||i.size?{rules:s,kindRules:i,drawn:new Set(o.keys())}:null}function jt(t){return t.startsWith("@")}function Qt(t,e){return t?.kindRules.get(e)??null}function z(t,e){const n=r=>r.replace(/[^A-Za-z0-9_-]+/g,"-");return`${n(t)}~${n(e)}`}function te(t){const e=[],n=new Set,r=o=>{const{stamp:i,declarations:s}=o;if(n.has(i))return;n.add(i);const a=Object.entries(s).filter(([,u])=>u!==""),l=u=>u.map(([d,I])=>`${Wt(d)}: ${I}`).join("; "),c=`[${V}="${i}"]`,f=a.filter(([u])=>!O.has(u)),p=a.filter(([u])=>O.has(u));f.length&&e.push(`${c}, *:has(> ${c}) { ${l(f)} }`),p.length&&e.push(`${c} { ${l(p)} }`),s[_]&&e.push(...kt(c))};for(const o of t.rules.values())r(o);for(const o of t.kindRules.values())r(o);return e.join(`
|
|
2
|
+
`)}function kt(t){const e=`var(${_})`,n=":is([data-sf-bullet], [data-sf-number])";return[`${t} br:not(br + br) { display: block; content: ""; margin-top: ${e} }`,`${t} ${n}:not(:first-child) { margin-top: ${e} }`,`${t} ${n}:not(:last-child) { margin-bottom: ${e} }`]}const Wt=t=>t.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`);function ee(t,e){if(!t)return null;const n=b(e),r=t.rules.get(n);if(r)return r;if(n.length<Dt||t.drawn.has(n))return null;let o=null;for(const[i,s]of t.rules)if(i.includes(n)){if(o&&o.stamp!==s.stamp)return null;o=s}return o}const Dt=8;export{Z as PART_ALIGNS,U as PART_CASES,ft as PART_LETTER_EM_MAX,lt as PART_LETTER_EM_MIN,it as PART_LETTER_STEP,ct as PART_LINE_HEIGHT_MAX,at as PART_LINE_HEIGHT_MIN,ot as PART_LINE_STEP,$ as PART_MEASURED_TRACKS,J as PART_NUDGE_MAX,v as PART_NUDGE_MIN,tt as PART_PADDING_MAX,Q as PART_PADDING_MIN,et as PART_PADDING_STEP,C as PART_PARAGRAPH_ATTR,pt as PART_PARAGRAPH_MAX,ut as PART_PARAGRAPH_MIN,_ as PART_PARAGRAPH_VAR,st as PART_RELATIVE_PROPS,q as PART_SIZE_MAX,Y as PART_SIZE_MIN,V as PART_STYLED_ATTR,E as PART_STYLES_PROP,Lt as PART_STYLE_PROPERTIES,B as PART_WEIGHTS,T as PART_WIDTH_MAX,nt as PART_WIDTH_MIN,rt as PART_WIDTH_STEP,y as SHARED_PART_PROPERTIES,vt as applyPartStyles,Bt as isHexColour,jt as isPartKindKey,kt as paragraphRules,ht as partCaseOfTransform,_t as partCaseTransform,Yt as partFontKeyOf,Qt as partRuleForKind,ee as partRuleForText,Rt as partSpacingOf,Zt as partStyleBase,Xt as partStyleCount,te as partStyleCss,S as partStyleDeclarations,qt as partStyleSource,Vt as propsWithPartStyleValue,Ut as propsWithoutPartStyle,Jt as publishedPartStyles,j as readPartStyle,L as readPartStyles};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type HidableValue } from "./hidable.js";
|
|
2
|
+
import { type ScalarTextControlKind, type TextControlKind } from "./text-control-kinds.js";
|
|
3
|
+
export declare const TYPE_IN_PLACE_KINDS: readonly ScalarTextControlKind[];
|
|
4
|
+
export type TypeInPlaceKind = ScalarTextControlKind;
|
|
5
|
+
export declare function textControlKind(field: unknown): TextControlKind | null;
|
|
6
|
+
export declare function typeInPlaceKind(field: unknown): TypeInPlaceKind | null;
|
|
7
|
+
export declare function isMultilineKind(kind: TypeInPlaceKind): boolean;
|
|
8
|
+
export declare function partPlaceholder(field: unknown): string | undefined;
|
|
9
|
+
export declare function partText(value: unknown): string;
|
|
10
|
+
export declare function partValueWithText(kind: TypeInPlaceKind, previous: unknown, next: string): HidableValue;
|
|
11
|
+
export declare function panelPartValue(stored: unknown, kind: TypeInPlaceKind | null, draft: string | null): unknown;
|
|
12
|
+
export declare function partPropsWithText(props: Record<string, unknown>, propKey: string, kind: TypeInPlaceKind, next: string): Record<string, unknown> | null;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{TEXT_FIELD_MARKER as o}from"./field-markers.js";import{readHidable as u}from"./hidable.js";import{SCALAR_TEXT_CONTROLS as c}from"./text-control-kinds.js";const l=c,a=["text","textarea"],x=["textarea","plainTextarea"];function p(t){return!t||typeof t!="object"?null:t[o]?.control??null}function E(t){const n=p(t);return n&&l.includes(n)?n:null}function I(t){return x.includes(t)}function _(t){return!t||typeof t!="object"?void 0:t[o]?.placeholder}function f(t){return u(t).text}function i(t,n,e){return a.includes(t)?{text:e,hidden:u(n).hidden}:e}function s(t,n,e){return e===null||!n?t:i(n,t,e)}function L(t,n,e,r){return f(t[n])===r?null:{...t,[n]:i(e,t[n],r)}}export{l as TYPE_IN_PLACE_KINDS,I as isMultilineKind,s as panelPartValue,_ as partPlaceholder,L as partPropsWithText,f as partText,i as partValueWithText,p as textControlKind,E as typeInPlaceKind};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { TreeItem } from "./content-tree.js";
|
|
2
|
+
import { type TypeInPlaceKind } from "./part-text.js";
|
|
3
|
+
export type PartAddress = {
|
|
4
|
+
node: TreeItem;
|
|
5
|
+
propKey: string;
|
|
6
|
+
kind: TypeInPlaceKind;
|
|
7
|
+
zone: string;
|
|
8
|
+
index: number;
|
|
9
|
+
};
|
|
10
|
+
export type ReplacePart = (zone: string, index: number, data: TreeItem) => void;
|
|
11
|
+
export declare function commitPartText(at: PartAddress, next: string, replace: ReplacePart): boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{decodePartKey as s,partPropsWithRowText as d}from"./part-rows.js";import{partPropsWithText as c}from"./part-text.js";function x(o,r,i){const e=o.node.props,{key:p,row:t}=s(o.propKey),n=t?d(e,p,t,o.kind,r):c(e,p,o.kind,r);return n?(i(o.zone,o.index,{...o.node,props:n}),!0):!1}export{x as commitPartText};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{SECTION_LABELS as e}from"../section-catalog.js";const t={name:"catalogueLabel",applies:a=>Object.prototype.hasOwnProperty.call(e,a),draw(a,l){a.label=e[l]}};export{t as catalogueLabel};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as a}from"react/jsx-runtime";import{GRID_SPAN_ATTR as _,containerOffersPositions as p,resolveGridSpan as S}from"../../content/grid-span.js";import{CONTAINER_BLOCK_CHOICES as m}from"../container-blocks.js";import{RETIRED_NESTABLE_SECTIONS as E}from"../section-catalog.js";import{findParentNode as O}from"./document-position.js";import{BOX_MAY_HOLD as u}from"./slot-rules.js";const y=Array.from(new Set([...m.map(e=>e.type),...u,...E,"GalleryItem"])),R={name:"cellWidth",applies:(e,i,r)=>y.includes(e)&&!!r&&typeof r.render=="function",panel(e,i,r){const n=r.cellWidthFields;e.fields={...e.fields,...n()};const t=e.resolveFields;e.resolveFields=(s,o)=>{const l=t?t(s,o):o.fields,d=O(o.appState,s.props?.id);if(d===void 0||p(d))return l;const f={...l};for(const c of Object.keys(n()))delete f[c];return f}},draw(e){const i=e.render;e.render=r=>{const n=S(r.gridSpan),t=i(r);return n==null?t:a("div",{className:"sf-grid-cell",[_]:String(n),children:t})}}};export{R as cellWidth};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as l}from"react/jsx-runtime";import d from"../../../components/PreviewPartAnchors.js";import{PublishedPartStyles as a}from"../../../components/PublishedPartStylesContext.js";import{readPartStyles as o}from"../part-styles.js";import{partNeedles as c}from"../text-parts.js";const h={name:"clickableParts",applies:(s,r,t)=>typeof t?.render=="function",draw(s,r){const t=s,n=t.render;t.render=e=>{const i=o(e);return e.puck?.isEditing?l(d,{needles:c(t.fields,e),styles:i,type:r,children:n(e)}):Object.keys(i).length?l(a,{needles:c(t.fields,e),styles:i,type:r,children:n(e)}):n(e)}}};export{h as clickableParts};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as o}from"react/jsx-runtime";import{CARD_FOLLOWS_SITE_CLASS as c,cardCornerStyle as d}from"../../content/card-corners.js";import{sectionCornerStyle as l}from"../../content/section-corners.js";import{sectionRunsFullWidth as a}from"../../content/section-width.js";const u={name:"sectionCorners",applies:(n,r,e)=>r.isSection(n)&&!!e&&typeof e.render=="function",panel(n,r,e){n.fields={...n.fields,...e.sectionShapeFields()}},draw(n){const r=n.render;n.render=e=>{const s=l(e.sectionCorners,e.sectionCornerSides),t=r(e),i=a(e)?`sf-section-corners ${c}`:"sf-section-corners";return s?o("div",{className:i,style:{display:"contents",...s},children:t}):t}}},C=["CollectionCard"],m={name:"cardCorners",applies:(n,r,e)=>C.includes(n)&&!!e&&typeof e.render=="function",panel(n,r,e){n.fields={...n.fields,...e.cardShapeFields()}},draw(n){const r=n.render;n.render=e=>{const s=d(e.cardCorners,e.cardCornerSides),t=r(e);return s?o("div",{className:"sf-card-corners",style:{display:"contents",...s},children:t}):t}}};export{m as cardCorners,u as sectionCorners};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export type ResolveFields = (data: {
|
|
2
|
+
props: Record<string, unknown>;
|
|
3
|
+
}, params: {
|
|
4
|
+
fields: Record<string, unknown>;
|
|
5
|
+
appState?: unknown;
|
|
6
|
+
}) => Record<string, unknown>;
|
|
7
|
+
export declare function isNestedNode(data: {
|
|
8
|
+
props: Record<string, unknown>;
|
|
9
|
+
}, params: {
|
|
10
|
+
appState?: unknown;
|
|
11
|
+
}): boolean;
|
|
12
|
+
export type DocNode = {
|
|
13
|
+
type?: unknown;
|
|
14
|
+
props?: Record<string, unknown>;
|
|
15
|
+
};
|
|
16
|
+
export declare function findParentNode(appState: unknown, id: unknown): DocNode | null | undefined;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function d(o,e){const t=o.props?.id,n=e.appState?.data?.content;return!Array.isArray(n)||typeof t!="string"?!0:!n.some(i=>i?.props?.id===t)}function a(o,e){const t=o?.data?.content;if(!Array.isArray(t)||typeof e!="string")return;const n=(i,u)=>{for(const s of i){if(s?.props?.id===e)return u;for(const r of Object.values(s?.props??{}))if(Array.isArray(r)&&r.length>0&&typeof r[0]=="object"&&r[0]!==null&&"type"in r[0]){const f=n(r,s);if(f!==void 0)return f}}};return n(t,null)}export{a as findParentNode,d as isNestedNode};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const p={name:"emptyHeadings",applies:()=>!0,panel(t,r,o){const s=o.dropEmptyHeadings,d=t.resolveFields;t.resolveFields=d?(i,e)=>{const n=d(i,e);return n instanceof Promise?n.then(l=>s(l??e.fields)):s(n??e.fields)}:(i,e)=>s(e.fields)}};export{p as emptyHeadings};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const r={name:"hiddenNodes",applies:(n,d,e)=>typeof e?.render=="function",draw(n){const d=n.render;n.render=e=>e._hidden?null:d(e)}};export{r as hiddenNodes};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { BlockPass, BlockPassContext } from "./types.js";
|
|
2
|
+
export type { BlockPass, BlockPassContext, PassBlock, PassInspector } from "./types.js";
|
|
3
|
+
export { registryPassContext } from "./registry-context.js";
|
|
4
|
+
export declare const BLOCK_PASSES: readonly BlockPass[];
|
|
5
|
+
export declare function applyBlockPasses<T extends object>(key: string, block: T, ctx: BlockPassContext): T;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{catalogueLabel as n}from"./catalogue-labels.js";import{cellWidth as m}from"./cell-width.js";import{clickableParts as s}from"./clickable-parts.js";import{cardCorners as p,sectionCorners as c}from"./corners.js";import{emptyHeadings as a}from"./empty-headings.js";import{hiddenNodes as f}from"./hidden-nodes.js";import{sectionAnchor as l}from"./section-anchor.js";import{sectionAnimation as d}from"./section-animation.js";import{sectionHeight as h}from"./section-height.js";import{blockPadding as g,sectionPadding as u}from"./section-padding.js";import{sectionTheme as P,slideTheme as A}from"./section-theme.js";import{buttonAlignInRow as b,containedWidth as w,imageWidth as C,sectionWidth as S}from"./section-width.js";import{blockGroups as W,sectionGroups as G}from"./settings-groups.js";import{openSlotDisallow as B,sectionGroupAllow as H}from"./slot-rules.js";import{registryPassContext as J}from"./registry-context.js";const L=[H,B,u,c,p,g,m,S,w,b,C,h,l,P,d,A,G,W,a,s,f,n];function x(r,e,o){const i=e;for(const t of L)t.applies(r,o,i)&&(o.inspector&&t.panel?.(i,r,o.inspector,o),t.draw?.(i,r,o));return e}export{L as BLOCK_PASSES,x as applyBlockPasses,J as registryPassContext};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{BLOCK_THEME_FOLLOW_LABEL as i,SECTION_THEME_FOLLOW_LABEL as e}from"../../../components/SectionThemePicker.js";import{anchorFields as o,cardShapeFields as s,cellWidthFields as d,heightFields as t,sectionAnimationFields as r,sectionShapeFields as l,sectionThemeFields as m,slider as n,spacingFields as p,widthField as F}from"../controls.js";import{assignSectionGroups as c}from"../field-groups.js";import{dropEmptyHeadings as E}from"../panel-drop-empty-headings.js";const S={spacingFields:p,sectionShapeFields:l,cardShapeFields:s,cellWidthFields:d,widthField:F,heightFields:t,anchorFields:o,sectionThemeFields:m,sectionAnimationFields:r,slider:n,assignSectionGroups:c,dropEmptyHeadings:E,SECTION_THEME_FOLLOW_LABEL:e,BLOCK_THEME_FOLLOW_LABEL:i};export{S as PASS_INSPECTOR};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{SECTION_GROUP_TYPES as _}from"../section-groups.js";import{ALL_SECTION_TYPES as c,RETIRED_NESTABLE_SECTIONS as r}from"../section-catalog.js";const O=["Form","Stats"];function I(E,s){const e=new Set(E),o=c.filter(t=>e.has(t)),n=o.filter(t=>t!=="Header"&&t!=="Footer"&&!_.includes(t)),S=new Set([...s,...r,...O]),T=o.filter(t=>!S.has(t)),N=new Set(o);return{isSection:t=>N.has(t),isHostBlock:()=>!1,sectionGroupAllow:n,contentSectionKeys:T}}export{I as registryPassContext};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as s,Fragment as i,jsxs as t}from"react/jsx-runtime";import{slugifyAnchor as a}from"../../links/page-link-rules.js";function c({anchor:n}){const e=a(typeof n=="string"?n:"");return e?s("span",{id:e,className:"sf-section-anchor","aria-hidden":"true"}):null}const f={name:"sectionAnchor",applies:(n,e,r)=>e.isSection(n)&&!!r&&typeof r.render=="function",panel(n,e,r){const o=r.anchorFields;n.fields={...n.fields,...o()}},draw(n){n.defaultProps={...n.defaultProps,anchor:""};const e=n.render;n.render=r=>t(i,{children:[s(c,{anchor:r.anchor}),e(r)]})}};export{f as sectionAnchor};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as r}from"react/jsx-runtime";import{SectionAnimation as s}from"../../../components/SectionAnimation.js";import{SECTION_ANIM_EXCLUDED as a,normalizeSectionMotion as c}from"../../content/section-animation.js";const f={name:"sectionAnimation",applies:(n,t,i)=>t.isSection(n)&&!a.has(n)&&!!i&&typeof i.render=="function",panel(n,t,i){const o=i.sectionAnimationFields;n.fields={...n.fields,...o()}},draw(n){const t=n,i=t.render;t.render=o=>{const e=c(o.sectionAnimation);return e?r(s,{motion:e,editing:!!o.puck?.isEditing,children:i(o)}):i(o)}}};export{f as sectionAnimation};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as a}from"react/jsx-runtime";import{SECTION_MIN_HEIGHT_EXCLUDED as f,hasPhoneHeight as P,resolvePhoneHeight as v,resolveSectionMinHeight as F,sectionMinHeightAttrs as V}from"../../content/section-min-height.js";const M={name:"sectionHeight",applies:(t,n,e)=>n.isSection(t)&&!f.has(t)&&!!e&&typeof e.render=="function",panel(t,n,e){const i=e.heightFields;t.fields={...t.fields,...i()};const r=t.resolveFields;t.resolveFields=(c,h)=>{const o=r?r(c,h):h.fields,s=c?.props??{},l=F(s),u=P(s)?v(s):null;return o&&typeof o.then=="function"?o.then(d=>H(g(d,l),u)):H(g(o,l),u)}},draw(t){const n=t.render;t.render=e=>{const i=V(e);return i?a("div",{className:i.className,style:i.style,children:n(e)}):n(e)}}};function g(t,n){if(!t||!("sectionHeightMode"in t))return t;const e={...t};if(n.mode==="auto")return delete e.sectionHeightValue,delete e.sectionHeightUnit,e;n.mode==="screen"&&delete e.sectionHeightUnit;const i=e.sectionHeightValue;return i&&(e.sectionHeightValue={...i,unit:n.unit}),e}function H(t,n){if(!t||!("sectionHeightModePhone"in t))return t;const e={...t};if(!n||n.mode==="auto")return delete e.sectionHeightValuePhone,delete e.sectionHeightUnitPhone,e;n.mode==="screen"&&delete e.sectionHeightUnitPhone;const i=e.sectionHeightValuePhone;return i&&(e.sectionHeightValuePhone={...i,unit:n.unit}),e}export{M as sectionHeight};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { BlockPass } from "./types.js";
|
|
2
|
+
export declare const SECTION_PAD_INNER_DEFAULTS: Record<string, {
|
|
3
|
+
top: number;
|
|
4
|
+
bottom: number;
|
|
5
|
+
}>;
|
|
6
|
+
export declare const SECTION_PAD_INNER: Set<string>;
|
|
7
|
+
export declare const sectionPadding: BlockPass;
|
|
8
|
+
export declare const blockPadding: BlockPass;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as l}from"react/jsx-runtime";import{isBackgroundBox as P}from"../../content/box-background.js";import{resolveSectionPadding as g,sectionPadAttrs as f}from"../../content/section-padding.js";const d={ParagraphsA:{top:60,bottom:80},StatsParagraph:{top:120,bottom:120},Timeline:{top:120,bottom:120},Footprint:{top:120,bottom:120},TimelineTrack:{top:120,bottom:120},TitleWithButtons:{top:140,bottom:140},ProcessSteps:{top:120,bottom:120},DetailRows:{top:100,bottom:100}},s=new Set(Object.keys(d)),m=new Set(["Hero","HeroSingle","IntroBleed","CategoryBar","DocTabs"]),c=new Set(["ProductGrid"]);function a(t,n){const e=t.render;t.render=o=>{if(n?.(o))return e(o);const i=f(o.sectionPaddingTop,o.sectionPaddingBottom,o.sectionPaddingTopPhone,o.sectionPaddingBottomPhone),r=e(o);return i?l("div",{className:i.className,style:i.style,children:r}):r}}const _={name:"sectionPadding",applies:(t,n,e)=>n.isSection(t)&&!m.has(t)&&!!e&&typeof e.render=="function",panel(t,n,e){s.has(n)||c.has(n)||(t.fields={...t.fields,...e.spacingFields({phone:!0})})},draw(t,n){if(s.has(n)){const e=t.render,o=d[n];t.render=i=>{const r=g(i,o);return e({...i,padTop:r.top,padBottom:r.bottom})};return}if(c.has(n)){a(t);return}a(t,n==="Flex"?e=>P(e.bgImage):void 0)}},p=["Heading","Text"],b={name:"blockPadding",applies:(t,n,e)=>p.includes(t)&&!!e&&typeof e.render=="function",panel(t,n,e){t.fields={...t.fields,...e.spacingFields({phone:!0})}},draw(t){a(t)}};export{s as SECTION_PAD_INNER,d as SECTION_PAD_INNER_DEFAULTS,b as blockPadding,_ as sectionPadding};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as o}from"react/jsx-runtime";import{SECTION_THEME_EXCLUDED as a,SECTION_THEME_NESTED_READING as r,nestedAccentValue as d,sectionThemeWrap as E}from"../../content/section-surface.js";const f={name:"sectionTheme",applies:(e,t,s)=>t.isSection(e)&&!a.has(e)&&!!s&&typeof s.render=="function",panel(e,t,s){const{sectionThemeFields:i,SECTION_THEME_FOLLOW_LABEL:n}=s,c=r.has(t);e.fields={...e.fields,...c?i(d,n):i()}},draw(e,t){const s=r.has(t),i=e.render;e.render=n=>{const c=E(s?{...n,sectionAccent:d(n.sectionAccent)}:n),l=i(n);return c?o("div",{className:c.className,style:c.style,children:l}):l}}},h={name:"slideTheme",applies:e=>e==="HeroSlide",panel(e,t,s){const{sectionThemeFields:i,BLOCK_THEME_FOLLOW_LABEL:n}=s;e?.fields&&(e.fields={...e.fields,...i(d,n)})}};export{f as sectionTheme,h as slideTheme};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type WidthMode } from "../../content/section-width.js";
|
|
2
|
+
import type { BlockPass } from "./types.js";
|
|
3
|
+
export declare const sectionWidth: BlockPass;
|
|
4
|
+
export declare function widthModeFields<T extends Record<string, unknown>>(fields: T, w: {
|
|
5
|
+
mode: WidthMode;
|
|
6
|
+
inherited: boolean;
|
|
7
|
+
}): T;
|
|
8
|
+
export declare const containedWidth: BlockPass;
|
|
9
|
+
export declare const buttonAlignInRow: BlockPass;
|
|
10
|
+
export declare const imageWidth: BlockPass;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as p}from"react/jsx-runtime";import{WidthIcon as w}from"efficient-easel/icons";import{resolveContainerDirection as C}from"../../content/container-direction.js";import{IMAGE_WIDTH as u}from"../../content/image-width.js";import{HERO_BACKGROUND_VAR as I,HERO_CHROME_CAP_VAR as T,HERO_CHROME_INSET_VAR as m,SITE_WIDTH_CAP as h,centredCap as O}from"../../content/page-width.js";import{resolveWidth as a}from"../../content/section-width.js";import{isInsideSiteGutter as S}from"../../content/site-gutter.js";import{parentCapsWidth as E}from"../../sections/section-head-placement.js";import{findParentNode as H,isNestedNode as g}from"./document-position.js";const v=new Set(["SectionHeader","ProductGrid","IntroBleed","RelatedProducts","Banner","Stats","Logos","Divider","OrderSummary","DeliveryOptions","PaymentBadges","CheckoutCTA","Ticker","CategoryBar","DocTabs","CustomHTML","Spacer","Flex","Grid"]),y=new Set(["Hero","HeroSingle","Manifesto","ProductHero"]),B=new Set(["ProductHero"]),j={name:"sectionWidth",applies:(e,n,t)=>n.isSection(e)&&!v.has(e)&&!!t&&typeof t.render=="function",panel(e,n,t){const r=t.widthField;e.fields={...e.fields,...r("full")};const s=e.resolveFields;e.resolveFields=(i,d)=>{const o=s?s(i,d):d.fields,l=a(i?.props??{},"full");return o&&typeof o.then=="function"?o.then(c=>f(c,l)):f(o,l)}},draw(e,n){const t=y.has(n),r=e.render;e.render=s=>{const{mode:i,inherited:d}=a(s,"full"),o=r(s);if(i==="full")return t&&!d&&!B.has(n)?p("div",{style:{[I]:"none",[m]:"initial",[T]:"initial"},children:o}):o;const l=O(h);return t?p("div",{style:{"--sf-page-cap":h},children:o}):p("div",{style:l,children:o})}}};function f(e,n){if(!e||!("widthMode"in e))return e;const t={...e},r=t.widthMode;return r&&(t.widthMode={...r,currentValue:n.mode,inherited:n.inherited}),t}const W=new Set(["Heading","Text","ImageBlock","ButtonBlock","Banner","Stats","Logos","Divider","Flex","Grid","OrderSummary","DeliveryOptions","PaymentBadges","CheckoutCTA"]),L={name:"containedWidth",applies:(e,n,t)=>W.has(e)&&!!t&&typeof t.render=="function",panel(e,n,t){const r=t.widthField;e.fields={...e.fields,...r("page")};const s=e.resolveFields;e.resolveFields=(i,d)=>{const o=s?s(i,d):d.fields,l=a(i?.props??{},"page"),c=_=>A(f(_,l),i,d);return o&&typeof o.then=="function"?o.then(c):c(o)}},draw(e){const n=e.render;e.render=t=>{const{mode:r}=a(t,"page");return n({...t,contained:r!=="full"})}}},V={name:"buttonAlignInRow",applies:e=>e==="ButtonBlock",panel(e){const n=e,t=n?.resolveFields;n.resolveFields=(r,s)=>{const i=t?t(r,s):s.fields,d=o=>{const l=H(s.appState,r.props?.id);if(!l||l.type!=="HeroGroup"||C("HeroGroup",l.props?.direction)!=="row")return o;const c={...o};return delete c.align,c};return i&&typeof i.then=="function"?i.then(d):d(i)}}};function F(e){return Object.values(e).some(n=>!!n&&typeof n=="object"&&n.type==="slot")}function A(e,n,t){if(F(e)){const s=t.appState?.data?.content;if(S(s,n.props?.id)!==!0)return e;const i={...e};return delete i.widthMode,delete i.pageWidth,i}if("parent"in t){if(!E(t.parent))return e}else if(!g({props:n.props??{}},t))return e;const r={...e};return delete r.widthMode,delete r.pageWidth,r}const U={name:"imageWidth",applies:e=>e==="ImageBlock",panel(e,n,t){const r=t.slider;if(e?.fields){const s=r("Image width",p(w,{}),u.min,u.max,u.step,u.fallback,u.unit),i="focal",d=Object.entries(e.fields),o=d.findIndex(([l])=>l===i);e.fields=Object.fromEntries(o===-1?[...d,["width",s]]:[...d.slice(0,o+1),["width",s],...d.slice(o+1)])}}};export{V as buttonAlignInRow,L as containedWidth,U as imageWidth,j as sectionWidth,f as widthModeFields};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const i=new Set(["Reviews","Cards","FAQ","Prose","ProductHero","SpecTable","ProductGrid","ParagraphsA","KeyFeatures","Stats","StatsParagraph","Chart","Mockup","Testimonials","Logos","ContactRouting","ContactLocations","SubmitBuild","ReviewForm","Form","AppointmentBooking","OrderSummary","DeliveryOptions","PaymentBadges","CheckoutCTA","Collections","AlloyWheelsListing","CatalogFilterBar","FitmentFinder","GalleryB","BrandStrip","DocMasthead","DocBody","DocMetaCards","Masthead","FeaturedCover","LongRead","Series","Events","SectionHeader","Grid","Flex","Spacer","Divider","CustomHTML","Breadcrumb","CategoryBar","DocTabs","Hero","HeroSingle","IntroBleed","Manifesto","Timeline","TimelineTrack","Footprint","Banner","TitleWithButtons","Ticker","SubscribeBlogs","TyreSizes","TyreFitment","EuTyreLabel","SpecStrip","ProcessSteps","DetailRows","FitmentTable","CompatibleTyres","RelatedProducts","BundleOffer","Split","Gallery","Subscribe"]),a={name:"sectionGroups",applies:(e,o)=>o.isSection(e)&&(i.has(e)||o.isHostBlock(e)),panel(e,o,t){const r=t.assignSectionGroups;e?.fields&&(e.fields=r(e.fields,o))}},s=new Set(["HeroSlide","Heading","Text","ImageBlock","ButtonBlock","HeroGroup","GalleryItem","Footer","FooterLogo","FooterMenu","FooterGroup","FooterText","PostCard","LogoBlock","CollectionCard","Eyebrow","BookingBox","SubmitBox","FooterSocial","MenuBlock","SocialLogosBlock","EmailFormBlock","SearchBlock","CartBlock"]),n={name:"blockGroups",applies:e=>s.has(e),panel(e,o,t){const r=t.assignSectionGroups;e?.fields&&(e.fields=r(e.fields,o))}};export{n as blockGroups,a as sectionGroups};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{SECTION_GROUP_TYPES as p}from"../section-groups.js";import{SPLITTABLE_SECTIONS as a}from"../../sections/section-head-placement.js";const _={name:"sectionGroupAllow",applies:o=>p.includes(o),panel(o,s,n,t){const e=o.fields?.sections;e&&(e.allow=[...t.sectionGroupAllow])}},f=new Set(Object.keys(a)),O={name:"openSlotDisallow",applies:()=>!0,panel(o,s,n,t){const e=t.contentSectionKeys;if(o?.fields)for(const i of Object.values(o.fields)){const l=i;if(l.type!=="slot"||l.allow)continue;const c=s==="Flex"?e.filter(r=>!f.has(r)):e;l.disallow=Array.from(new Set([...l.disallow??[],...c]))}}};export{f as BOX_MAY_HOLD,O as openSlotDisallow,_ as sectionGroupAllow};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import type { ReactElement, ReactNode } from "react";
|
|
2
|
+
export type PassRenderProps = Record<string, unknown>;
|
|
3
|
+
export type PassResolveFields = (data: {
|
|
4
|
+
props?: Record<string, unknown>;
|
|
5
|
+
}, params: {
|
|
6
|
+
fields: Record<string, unknown>;
|
|
7
|
+
appState?: unknown;
|
|
8
|
+
parent?: {
|
|
9
|
+
type?: string;
|
|
10
|
+
} | null;
|
|
11
|
+
}) => unknown;
|
|
12
|
+
export type PassBlock = {
|
|
13
|
+
label?: string;
|
|
14
|
+
fields?: Record<string, unknown>;
|
|
15
|
+
defaultProps?: Record<string, unknown>;
|
|
16
|
+
resolveFields?: PassResolveFields;
|
|
17
|
+
render: (props: PassRenderProps) => ReactNode;
|
|
18
|
+
};
|
|
19
|
+
type FieldMap = Record<string, unknown>;
|
|
20
|
+
export type PassInspector = {
|
|
21
|
+
spacingFields: (opts: {
|
|
22
|
+
phone: true;
|
|
23
|
+
}) => FieldMap;
|
|
24
|
+
sectionShapeFields: () => FieldMap;
|
|
25
|
+
cardShapeFields: () => FieldMap;
|
|
26
|
+
cellWidthFields: () => FieldMap;
|
|
27
|
+
widthField: (defaultMode: "full" | "page") => FieldMap;
|
|
28
|
+
heightFields: () => FieldMap;
|
|
29
|
+
anchorFields: () => FieldMap;
|
|
30
|
+
sectionThemeFields: (readValue?: (v: unknown) => unknown, followLabel?: string) => FieldMap;
|
|
31
|
+
sectionAnimationFields: () => FieldMap;
|
|
32
|
+
slider: (label: string, icon: ReactElement, min: number, max: number, step: number, fallback: number, suffix?: string) => unknown;
|
|
33
|
+
assignSectionGroups: <T extends FieldMap>(fields: T, where: string) => T;
|
|
34
|
+
dropEmptyHeadings: <T extends FieldMap>(fields: T) => T;
|
|
35
|
+
SECTION_THEME_FOLLOW_LABEL: string;
|
|
36
|
+
BLOCK_THEME_FOLLOW_LABEL: string;
|
|
37
|
+
};
|
|
38
|
+
export type BlockPassContext = {
|
|
39
|
+
isSection(key: string): boolean;
|
|
40
|
+
isHostBlock(key: string): boolean;
|
|
41
|
+
sectionGroupAllow: readonly string[];
|
|
42
|
+
contentSectionKeys: readonly string[];
|
|
43
|
+
inspector?: PassInspector;
|
|
44
|
+
};
|
|
45
|
+
export type BlockPass = {
|
|
46
|
+
name: string;
|
|
47
|
+
applies(key: string, ctx: BlockPassContext, comp: PassBlock): boolean;
|
|
48
|
+
panel?(comp: PassBlock, key: string, inspector: PassInspector, ctx: BlockPassContext): void;
|
|
49
|
+
draw?(comp: PassBlock, key: string, ctx: BlockPassContext): void;
|
|
50
|
+
};
|
|
51
|
+
export {};
|
|
File without changes
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare function phoneKey(desktopKey: string): string;
|
|
2
|
+
export declare function hasPhoneOverride(stored: unknown): boolean;
|
|
3
|
+
export declare function resolvePhoneValue(stored: unknown, desktop: unknown, fallback: number): number;
|
|
4
|
+
export declare const PHONE_CLEAR: undefined;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function o(e){return`${e}Phone`}function t(e){return typeof e=="number"}function u(e,n,r){return typeof e=="number"?e:typeof n=="number"?n:r}const f=void 0;export{f as PHONE_CLEAR,t as hasPhoneOverride,o as phoneKey,u as resolvePhoneValue};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { AutosaveSnapshot } from "efficient-easel/autosave";
|
|
2
|
+
import { type EditAccess } from "efficient-easel/edit-lock";
|
|
3
|
+
export type SaveStatus = "idle" | "saving" | "saved" | "error";
|
|
4
|
+
export declare function saveStatusOf(state: AutosaveSnapshot): SaveStatus;
|
|
5
|
+
export declare function canSeedPinnedChrome(state: {
|
|
6
|
+
docId: string | null;
|
|
7
|
+
saveStatus: SaveStatus;
|
|
8
|
+
seededDocId: string | null;
|
|
9
|
+
}): boolean;
|
|
10
|
+
export declare function saveStatusForNewDocument(_previous: SaveStatus): SaveStatus;
|
|
11
|
+
export type DocumentSwitchSetters = {
|
|
12
|
+
resetAutosave: () => void;
|
|
13
|
+
setVersion: (version: string | null) => void;
|
|
14
|
+
setSaveConflict: (conflict: null) => void;
|
|
15
|
+
setAccess: (access: EditAccess) => void;
|
|
16
|
+
};
|
|
17
|
+
export declare function resetForDocumentSwitch(hasEditLock: boolean, apply: DocumentSwitchSetters): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{accessForNewDocument as n}from"efficient-easel/edit-lock";function t(e){return e.failed?"error":e.pending?"saving":e.saved?"saved":"idle"}function u(e){return!e.docId||e.saveStatus==="saving"?!1:e.seededDocId!==e.docId}function i(e){return"idle"}function s(e,r){r.resetAutosave(),r.setVersion(null),r.setSaveConflict(null),r.setAccess(n(e))}export{u as canSeedPinnedChrome,s as resetForDocumentSwitch,i as saveStatusForNewDocument,t as saveStatusOf};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
let e=0;function t(r){e+=1;try{return r()}finally{e-=1}}function i(){return e>0}export{i as isPreviewClick,t as runAsPreviewClick};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const previewFrame: () => HTMLIFrameElement | null;
|
|
2
|
+
export declare function scrollPreviewToSection(id: string): void;
|
|
3
|
+
export declare function gotoPreviewSlide(heroId: string, index: number): void;
|
|
4
|
+
export declare function scrollPreviewToTop(): void;
|
|
5
|
+
export declare function pinPreviewToSection(id: string): () => void;
|
|
6
|
+
export declare function pinPreviewToBottom(onPinned?: () => void): () => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{HERO_SLIDER_GOTO_EVENT as w}from"../../components/HeroSection.js";import{isPreviewClick as h}from"./preview-click.js";const v=".sf-editor #preview-frame",i=()=>document.querySelector(v);function T(t){h()||requestAnimationFrame(()=>{i()?.contentDocument?.querySelector(`[data-puck-component="${CSS.escape(t)}"]`)?.scrollIntoView({behavior:"smooth",block:"start"})})}function P(t,n){const e=i()?.contentWindow;if(!e)return;const o={id:t,index:n};e.dispatchEvent(new CustomEvent(w,{detail:o}))}function g(){requestAnimationFrame(()=>{i()?.contentWindow?.scrollTo({top:0,behavior:"smooth"})})}function f(t,{passes:n=[150,400],onPinned:e}={}){let o=0,l=!1;const c=[],s=()=>{const a=i(),r=a?.contentWindow,m=a?.contentDocument;if(!r||!m)return!1;const p=t(r,m);if(p==null)return!1;if(r.scrollTo({left:r.scrollX,top:p,behavior:"instant"}),!l){l=!0,e?.();for(const d of n)c.push(setTimeout(s,d))}return!0},u=()=>{!s()&&o++<150&&c.push(setTimeout(u,32))};return u(),()=>c.forEach(clearTimeout)}function x(t){return f((n,e)=>{const o=e.querySelector(`[data-puck-component="${CSS.escape(t)}"]`);return o?n.scrollY+o.getBoundingClientRect().top:null})}function k(t){return f((n,e)=>{if(!e.querySelector("[data-puck-component]"))return null;const o=Math.max(e.documentElement.scrollHeight,e.body?.scrollHeight??0);return o<=e.documentElement.clientHeight?null:o},{passes:[150,400,800,1300,2e3],onPinned:t})}export{P as gotoPreviewSlide,k as pinPreviewToBottom,x as pinPreviewToSection,i as previewFrame,T as scrollPreviewToSection,g as scrollPreviewToTop};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
export declare function useSelectHandler<Args extends unknown[]>(): {
|
|
3
|
+
select: (...args: Args) => void;
|
|
4
|
+
setSelectHandler: (fn: (...args: Args) => void) => void;
|
|
5
|
+
};
|
|
6
|
+
export type PreviewIdSelection<Key extends string> = {
|
|
7
|
+
[P in Key]: string | null;
|
|
8
|
+
} & {
|
|
9
|
+
[P in Key as `set${Capitalize<P>}`]: (id: string | null) => void;
|
|
10
|
+
} & {
|
|
11
|
+
select: (id: string) => void;
|
|
12
|
+
setSelectHandler: (fn: (id: string) => void) => void;
|
|
13
|
+
};
|
|
14
|
+
export declare function createPreviewSelectionContext<Key extends string>(idKey: Key): {
|
|
15
|
+
Provider: ({ children }: {
|
|
16
|
+
children: ReactNode;
|
|
17
|
+
}) => import("react").JSX.Element;
|
|
18
|
+
useSelection: () => PreviewIdSelection<Key>;
|
|
19
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{jsx as d}from"react/jsx-runtime";import{createContext as S,useCallback as u,useContext as f,useRef as x,useState as m}from"react";import{runAsPreviewClick as p}from"./preview-click.js";function v(){const e=x(()=>{}),n=u((...t)=>p(()=>e.current(...t)),[]),r=u(t=>{e.current=t},[]);return{select:n,setSelectHandler:r}}function w(e){const n=`set${e.charAt(0).toUpperCase()}${e.slice(1)}`,r=(c,o,s,l)=>({[e]:c,[n]:o,select:s,setSelectHandler:l}),t=S(r(null,()=>{},()=>{},()=>{}));function i({children:c}){const[o,s]=m(null),{select:l,setSelectHandler:a}=v();return d(t.Provider,{value:r(o,s,l,a),children:c})}return{Provider:i,useSelection:()=>f(t)}}export{w as createPreviewSelectionContext,v as useSelectHandler};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{dropEmptyHeadings as r}from"./panel-drop-empty-headings.js";import{applyBlockPasses as l,registryPassContext as d}from"./passes/index.js";import{PASS_INSPECTOR as m}from"./passes/inspector.js";function u(o){const n={...d(Object.keys(o.components),o.categories?.structure?.components??[]),inspector:m};for(const[t,e]of Object.entries(o.components))l(t,e,n);const i=o.root,c=i.resolveFields;return i.resolveFields=c?(t,e)=>{const s=c(t,e);return s instanceof Promise?s.then(p=>r(p??e.fields,"page")):r(s??e.fields,"page")}:(t,e)=>r(e.fields,"page"),n}export{u as finishRegistry};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const l={"Logos.logosPerRow":"columns","HeroSlide.tintOpacity":"overlay","Split.textBgTint":"overlay"};function u(t){return Array.isArray(t)&&t.length>0&&t.every(e=>!!e&&typeof e=="object"&&typeof e.type=="string")}function y(t){let e=t.props,c=!1;if(t.type&&e)for(const[o,r]of Object.entries(l)){const n=o.indexOf("."),i=o.slice(0,n),s=o.slice(n+1);if(i!==t.type||!(s in e))continue;const p=e[s],f={...e};delete f[s],(!(r in f)||f[r]===void 0)&&(f[r]=p),e=f,c=!0}if(e){let o=e;for(const[r,n]of Object.entries(e)){if(!u(n))continue;const i=n.map(y);i.some((s,p)=>s!==n[p])&&(o===e&&(o={...e}),o[r]=i,c=!0)}e=o}return c?{...t,props:e}:t}function m(t){const e=t;if(!e||typeof e!="object")return t;let c=!1;const o={...t};if(Array.isArray(e.content)){const r=e.content.map(y);r.some((n,i)=>n!==e.content[i])&&(o.content=r,c=!0)}if(e.zones&&typeof e.zones=="object"){let r=!1;const n=Object.fromEntries(Object.entries(e.zones).map(([i,s])=>{if(!Array.isArray(s))return[i,s];const p=s.map(y);return p.some((f,a)=>f!==s[a])&&(r=!0),[i,p]}));r&&(o.zones=n,c=!0)}return c?o:t}export{l as RENAMED_PROPS,m as migrateRenamedProps};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function sanitizeHtml(html: string): string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e from"isomorphic-dompurify";e.addHook("afterSanitizeAttributes",t=>{t.tagName==="A"&&t.getAttribute("target")==="_blank"&&t.setAttribute("rel","noopener noreferrer")});function i(t){return e.sanitize(t,{ALLOWED_TAGS:["p","br","hr","span","div","section","article","header","footer","h1","h2","h3","h4","h5","h6","strong","em","b","i","u","small","sup","sub","mark","ul","ol","li","blockquote","a","img","picture","source","figure","figcaption","video","table","thead","tbody","tr","th","td"],ALLOWED_ATTR:["href","title","alt","src","srcset","sizes","class","style","target","rel","width","height","loading","poster","controls"],ALLOW_DATA_ATTR:!1})}export{i as sanitizeHtml};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export type BlockSet = "general" | "commerce" | "service";
|
|
2
|
+
export declare const BLOCK_SETS: readonly ["general", "commerce", "service"];
|
|
3
|
+
export interface CatalogSection {
|
|
4
|
+
type: string;
|
|
5
|
+
label: string;
|
|
6
|
+
set: BlockSet;
|
|
7
|
+
}
|
|
8
|
+
export interface CatalogGroup {
|
|
9
|
+
key: string;
|
|
10
|
+
title: string;
|
|
11
|
+
defaultExpanded?: boolean;
|
|
12
|
+
templateable: boolean;
|
|
13
|
+
sections: CatalogSection[];
|
|
14
|
+
}
|
|
15
|
+
export declare const SECTION_CATALOG: CatalogGroup[];
|
|
16
|
+
export declare function buildPuckCategories(): Record<string, {
|
|
17
|
+
title: string;
|
|
18
|
+
components: string[];
|
|
19
|
+
defaultExpanded?: boolean;
|
|
20
|
+
}>;
|
|
21
|
+
export declare const RETIRED_SECTIONS: Record<string, string>;
|
|
22
|
+
export declare const RETIRED_NESTABLE_SECTIONS: readonly ["Grid"];
|
|
23
|
+
export declare const ALL_SECTION_TYPES: string[];
|
|
24
|
+
export declare const SECTION_LABELS: Record<string, string>;
|
|
25
|
+
export declare const UNLISTED_BLOCK_SETS: Readonly<Record<string, BlockSet>>;
|
|
26
|
+
export declare function blockSetOf(type: string): BlockSet | undefined;
|
|
27
|
+
export declare function blocksInSet(set: BlockSet): string[];
|
|
28
|
+
export declare const GENERAL_BLOCKS: readonly string[];
|
|
29
|
+
export declare const COMMERCE_BLOCKS: readonly string[];
|
|
30
|
+
export declare const SERVICE_BLOCKS: readonly string[];
|
|
31
|
+
export type NodeLevel = "section" | "block";
|
|
32
|
+
export declare const LEVEL_NAMED_TYPE = "Flex";
|
|
33
|
+
export declare const BOX_LABEL = "Box";
|
|
34
|
+
export declare const BOX_LABEL_PLURAL = "Boxes";
|
|
35
|
+
export declare function labelForFlex(level: NodeLevel): string;
|
|
36
|
+
export declare function labelAtLevel(type: string, level: NodeLevel, base: string): string;
|