@delmaredigital/payload-puck 0.1.3 → 0.3.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/README.md +293 -1237
- package/dist/admin/EditWithPuckButton.d.ts +74 -0
- package/dist/admin/EditWithPuckButton.d.ts.map +1 -0
- package/dist/admin/EditWithPuckButton.js +114 -0
- package/dist/admin/EditWithPuckButton.js.map +1 -0
- package/dist/admin/EditWithPuckCell.d.ts +43 -0
- package/dist/admin/EditWithPuckCell.d.ts.map +1 -0
- package/dist/admin/EditWithPuckCell.js +66 -0
- package/dist/admin/EditWithPuckCell.js.map +1 -0
- package/dist/admin/PuckEditorView.d.ts +85 -0
- package/dist/admin/PuckEditorView.d.ts.map +1 -0
- package/dist/admin/PuckEditorView.js +135 -0
- package/dist/admin/PuckEditorView.js.map +1 -0
- package/dist/admin/client.d.ts +8 -104
- package/dist/admin/client.d.ts.map +1 -0
- package/dist/admin/client.js +14 -176
- package/dist/admin/client.js.map +1 -0
- package/dist/admin/generateAdminComponents.d.ts +51 -0
- package/dist/admin/generateAdminComponents.d.ts.map +1 -0
- package/dist/admin/generateAdminComponents.js +42 -0
- package/dist/admin/generateAdminComponents.js.map +1 -0
- package/dist/admin/index.d.ts +14 -150
- package/dist/admin/index.d.ts.map +1 -0
- package/dist/admin/index.js +17 -30
- package/dist/admin/index.js.map +1 -0
- package/dist/api/createPuckApiRoutes.d.ts +31 -0
- package/dist/api/createPuckApiRoutes.d.ts.map +1 -0
- package/dist/api/createPuckApiRoutes.js +193 -0
- package/dist/api/createPuckApiRoutes.js.map +1 -0
- package/dist/api/createPuckApiRoutesVersions.d.ts +28 -0
- package/dist/api/createPuckApiRoutesVersions.d.ts.map +1 -0
- package/dist/api/createPuckApiRoutesVersions.js +144 -0
- package/dist/api/createPuckApiRoutesVersions.js.map +1 -0
- package/dist/api/createPuckApiRoutesWithId.d.ts +34 -0
- package/dist/api/createPuckApiRoutesWithId.d.ts.map +1 -0
- package/dist/api/createPuckApiRoutesWithId.js +251 -0
- package/dist/api/createPuckApiRoutesWithId.js.map +1 -0
- package/dist/api/index.d.ts +11 -431
- package/dist/api/index.d.ts.map +1 -0
- package/dist/api/index.js +40 -587
- package/dist/api/index.js.map +1 -0
- package/dist/api/types.d.ts +302 -0
- package/dist/api/types.d.ts.map +1 -0
- package/dist/api/types.js +2 -0
- package/dist/api/types.js.map +1 -0
- package/dist/api/utils/mapRootProps.d.ts +76 -0
- package/dist/api/utils/mapRootProps.d.ts.map +1 -0
- package/dist/api/utils/mapRootProps.js +169 -0
- package/dist/api/utils/mapRootProps.js.map +1 -0
- package/dist/collections/Templates.d.ts +9 -0
- package/dist/collections/Templates.d.ts.map +1 -0
- package/dist/collections/Templates.js +62 -0
- package/dist/collections/Templates.js.map +1 -0
- package/dist/components/AccordionClient.d.ts +20 -0
- package/dist/components/AccordionClient.d.ts.map +1 -0
- package/dist/components/AccordionClient.js +67 -0
- package/dist/components/AccordionClient.js.map +1 -0
- package/dist/components/AnimatedWrapper.d.ts +33 -0
- package/dist/components/AnimatedWrapper.d.ts.map +1 -0
- package/dist/components/AnimatedWrapper.js +61 -0
- package/dist/components/AnimatedWrapper.js.map +1 -0
- package/dist/components/exports.d.ts +54 -0
- package/dist/components/exports.d.ts.map +1 -0
- package/dist/components/exports.js +71 -0
- package/dist/components/exports.js.map +1 -0
- package/dist/components/index.d.ts +8 -219
- package/dist/components/index.d.ts.map +1 -0
- package/dist/components/index.js +15 -9155
- package/dist/components/index.js.map +1 -0
- package/dist/components/interactive/Accordion.d.ts +28 -0
- package/dist/components/interactive/Accordion.d.ts.map +1 -0
- package/dist/components/interactive/Accordion.js +159 -0
- package/dist/components/interactive/Accordion.js.map +1 -0
- package/dist/components/interactive/Accordion.server.d.ts +29 -0
- package/dist/components/interactive/Accordion.server.d.ts.map +1 -0
- package/dist/components/interactive/Accordion.server.js +30 -0
- package/dist/components/interactive/Accordion.server.js.map +1 -0
- package/dist/components/interactive/Button.d.ts +26 -0
- package/dist/components/interactive/Button.d.ts.map +1 -0
- package/dist/components/interactive/Button.js +133 -0
- package/dist/components/interactive/Button.js.map +1 -0
- package/dist/components/interactive/Button.server.d.ts +28 -0
- package/dist/components/interactive/Button.server.d.ts.map +1 -0
- package/dist/components/interactive/Button.server.js +96 -0
- package/dist/components/interactive/Button.server.js.map +1 -0
- package/dist/components/interactive/Card.d.ts +27 -0
- package/dist/components/interactive/Card.d.ts.map +1 -0
- package/dist/components/interactive/Card.js +128 -0
- package/dist/components/interactive/Card.js.map +1 -0
- package/dist/components/interactive/Card.server.d.ts +29 -0
- package/dist/components/interactive/Card.server.d.ts.map +1 -0
- package/dist/components/interactive/Card.server.js +77 -0
- package/dist/components/interactive/Card.server.js.map +1 -0
- package/dist/components/interactive/Divider.d.ts +18 -0
- package/dist/components/interactive/Divider.d.ts.map +1 -0
- package/dist/components/interactive/Divider.js +68 -0
- package/dist/components/interactive/Divider.js.map +1 -0
- package/dist/components/interactive/Divider.server.d.ts +20 -0
- package/dist/components/interactive/Divider.server.d.ts.map +1 -0
- package/dist/components/interactive/Divider.server.js +50 -0
- package/dist/components/interactive/Divider.server.js.map +1 -0
- package/dist/components/interactive/index.d.ts +10 -0
- package/dist/components/interactive/index.d.ts.map +1 -0
- package/dist/components/interactive/index.js +10 -0
- package/dist/components/interactive/index.js.map +1 -0
- package/dist/components/layout/Container.d.ts +29 -0
- package/dist/components/layout/Container.d.ts.map +1 -0
- package/dist/components/layout/Container.js +166 -0
- package/dist/components/layout/Container.js.map +1 -0
- package/dist/components/layout/Container.server.d.ts +32 -0
- package/dist/components/layout/Container.server.d.ts.map +1 -0
- package/dist/components/layout/Container.server.js +105 -0
- package/dist/components/layout/Container.server.js.map +1 -0
- package/dist/components/layout/Flex.d.ts +36 -0
- package/dist/components/layout/Flex.d.ts.map +1 -0
- package/dist/components/layout/Flex.js +183 -0
- package/dist/components/layout/Flex.js.map +1 -0
- package/dist/components/layout/Flex.server.d.ts +36 -0
- package/dist/components/layout/Flex.server.d.ts.map +1 -0
- package/dist/components/layout/Flex.server.js +97 -0
- package/dist/components/layout/Flex.server.js.map +1 -0
- package/dist/components/layout/Grid.d.ts +31 -0
- package/dist/components/layout/Grid.d.ts.map +1 -0
- package/dist/components/layout/Grid.js +164 -0
- package/dist/components/layout/Grid.js.map +1 -0
- package/dist/components/layout/Grid.server.d.ts +32 -0
- package/dist/components/layout/Grid.server.d.ts.map +1 -0
- package/dist/components/layout/Grid.server.js +92 -0
- package/dist/components/layout/Grid.server.js.map +1 -0
- package/dist/components/layout/Section.d.ts +35 -0
- package/dist/components/layout/Section.d.ts.map +1 -0
- package/dist/components/layout/Section.js +212 -0
- package/dist/components/layout/Section.js.map +1 -0
- package/dist/components/layout/Section.server.d.ts +35 -0
- package/dist/components/layout/Section.server.d.ts.map +1 -0
- package/dist/components/layout/Section.server.js +144 -0
- package/dist/components/layout/Section.server.js.map +1 -0
- package/dist/components/layout/Spacer.d.ts +18 -0
- package/dist/components/layout/Spacer.d.ts.map +1 -0
- package/dist/components/layout/Spacer.js +99 -0
- package/dist/components/layout/Spacer.js.map +1 -0
- package/dist/components/layout/Spacer.server.d.ts +21 -0
- package/dist/components/layout/Spacer.server.d.ts.map +1 -0
- package/dist/components/layout/Spacer.server.js +61 -0
- package/dist/components/layout/Spacer.server.js.map +1 -0
- package/dist/components/layout/Template.d.ts +35 -0
- package/dist/components/layout/Template.d.ts.map +1 -0
- package/dist/components/layout/Template.js +124 -0
- package/dist/components/layout/Template.js.map +1 -0
- package/dist/components/layout/Template.server.d.ts +32 -0
- package/dist/components/layout/Template.server.d.ts.map +1 -0
- package/dist/components/layout/Template.server.js +75 -0
- package/dist/components/layout/Template.server.js.map +1 -0
- package/dist/components/layout/index.d.ts +14 -0
- package/dist/components/layout/index.d.ts.map +1 -0
- package/dist/components/layout/index.js +13 -0
- package/dist/components/layout/index.js.map +1 -0
- package/dist/components/media/Image.d.ts +30 -0
- package/dist/components/media/Image.d.ts.map +1 -0
- package/dist/components/media/Image.js +123 -0
- package/dist/components/media/Image.js.map +1 -0
- package/dist/components/media/Image.server.d.ts +28 -0
- package/dist/components/media/Image.server.d.ts.map +1 -0
- package/dist/components/media/Image.server.js +76 -0
- package/dist/components/media/Image.server.js.map +1 -0
- package/dist/components/media/index.d.ts +7 -0
- package/dist/components/media/index.d.ts.map +1 -0
- package/dist/components/media/index.js +7 -0
- package/dist/components/media/index.js.map +1 -0
- package/dist/components/typography/Heading.d.ts +21 -0
- package/dist/components/typography/Heading.d.ts.map +1 -0
- package/dist/components/typography/Heading.js +71 -0
- package/dist/components/typography/Heading.js.map +1 -0
- package/dist/components/typography/Heading.server.d.ts +21 -0
- package/dist/components/typography/Heading.server.d.ts.map +1 -0
- package/dist/components/typography/Heading.server.js +49 -0
- package/dist/components/typography/Heading.server.js.map +1 -0
- package/dist/components/typography/RichText.d.ts +20 -0
- package/dist/components/typography/RichText.d.ts.map +1 -0
- package/dist/components/typography/RichText.editor.d.ts +11 -0
- package/dist/components/typography/RichText.editor.d.ts.map +1 -0
- package/dist/components/typography/RichText.editor.js +67 -0
- package/dist/components/typography/RichText.editor.js.map +1 -0
- package/dist/components/typography/RichText.js +73 -0
- package/dist/components/typography/RichText.js.map +1 -0
- package/dist/components/typography/RichText.server.d.ts +22 -0
- package/dist/components/typography/RichText.server.d.ts.map +1 -0
- package/dist/components/typography/RichText.server.js +52 -0
- package/dist/components/typography/RichText.server.js.map +1 -0
- package/dist/components/typography/Text.d.ts +20 -0
- package/dist/components/typography/Text.d.ts.map +1 -0
- package/dist/components/typography/Text.js +61 -0
- package/dist/components/typography/Text.js.map +1 -0
- package/dist/components/typography/Text.server.d.ts +21 -0
- package/dist/components/typography/Text.server.d.ts.map +1 -0
- package/dist/components/typography/Text.server.js +39 -0
- package/dist/components/typography/Text.server.js.map +1 -0
- package/dist/components/typography/index.d.ts +10 -0
- package/dist/components/typography/index.d.ts.map +1 -0
- package/dist/components/typography/index.js +10 -0
- package/dist/components/typography/index.js.map +1 -0
- package/dist/config/config.editor.d.ts +15 -56
- package/dist/config/config.editor.d.ts.map +1 -0
- package/dist/config/config.editor.js +125 -9364
- package/dist/config/config.editor.js.map +1 -0
- package/dist/config/index.d.ts +7 -33
- package/dist/config/index.d.ts.map +1 -0
- package/dist/config/index.js +110 -2028
- package/dist/config/index.js.map +1 -0
- package/dist/config/merge.d.ts +23 -0
- package/dist/config/merge.d.ts.map +1 -0
- package/dist/config/merge.js +80 -0
- package/dist/config/merge.js.map +1 -0
- package/dist/config/presets.d.ts +342 -0
- package/dist/config/presets.d.ts.map +1 -0
- package/dist/config/presets.js +247 -0
- package/dist/config/presets.js.map +1 -0
- package/dist/editor/PuckEditor.client.d.ts +131 -0
- package/dist/editor/PuckEditor.client.d.ts.map +1 -0
- package/dist/editor/PuckEditor.client.js +42 -0
- package/dist/editor/PuckEditor.client.js.map +1 -0
- package/dist/editor/PuckEditorCore.client.d.ts +141 -0
- package/dist/editor/PuckEditorCore.client.d.ts.map +1 -0
- package/dist/editor/PuckEditorCore.client.js +306 -0
- package/dist/editor/PuckEditorCore.client.js.map +1 -0
- package/dist/editor/components/HeaderActions.d.ts +109 -0
- package/dist/editor/components/HeaderActions.d.ts.map +1 -0
- package/dist/editor/components/HeaderActions.js +254 -0
- package/dist/editor/components/HeaderActions.js.map +1 -0
- package/dist/editor/components/IframeWrapper.d.ts +77 -0
- package/dist/editor/components/IframeWrapper.d.ts.map +1 -0
- package/dist/editor/components/IframeWrapper.js +257 -0
- package/dist/editor/components/IframeWrapper.js.map +1 -0
- package/dist/editor/components/LoadingState.d.ts +14 -0
- package/dist/editor/components/LoadingState.d.ts.map +1 -0
- package/dist/editor/components/LoadingState.js +12 -0
- package/dist/editor/components/LoadingState.js.map +1 -0
- package/dist/editor/components/PreviewModal.d.ts +54 -0
- package/dist/editor/components/PreviewModal.d.ts.map +1 -0
- package/dist/editor/components/PreviewModal.js +298 -0
- package/dist/editor/components/PreviewModal.js.map +1 -0
- package/dist/editor/components/VersionHistory.d.ts +44 -0
- package/dist/editor/components/VersionHistory.d.ts.map +1 -0
- package/dist/editor/components/VersionHistory.js +308 -0
- package/dist/editor/components/VersionHistory.js.map +1 -0
- package/dist/editor/hooks/useUnsavedChanges.d.ts +27 -0
- package/dist/editor/hooks/useUnsavedChanges.d.ts.map +1 -0
- package/dist/editor/hooks/useUnsavedChanges.js +55 -0
- package/dist/editor/hooks/useUnsavedChanges.js.map +1 -0
- package/dist/editor/index.d.ts +16 -756
- package/dist/editor/index.d.ts.map +1 -0
- package/dist/editor/index.js +49 -4533
- package/dist/editor/index.js.map +1 -0
- package/dist/editor/plugins/index.d.ts +12 -0
- package/dist/editor/plugins/index.d.ts.map +1 -0
- package/dist/editor/plugins/index.js +12 -0
- package/dist/editor/plugins/index.js.map +1 -0
- package/dist/endpoints/index.d.ts +46 -0
- package/dist/endpoints/index.d.ts.map +1 -0
- package/dist/endpoints/index.js +204 -0
- package/dist/endpoints/index.js.map +1 -0
- package/dist/exports/client.d.ts +19 -0
- package/dist/exports/client.d.ts.map +1 -0
- package/dist/exports/client.js +21 -0
- package/dist/exports/client.js.map +1 -0
- package/dist/exports/rsc.d.ts +19 -0
- package/dist/exports/rsc.d.ts.map +1 -0
- package/dist/exports/rsc.js +19 -0
- package/dist/exports/rsc.js.map +1 -0
- package/dist/fields/AlignmentField.d.ts +36 -0
- package/dist/fields/AlignmentField.d.ts.map +1 -0
- package/dist/fields/AlignmentField.js +120 -0
- package/dist/fields/AlignmentField.js.map +1 -0
- package/dist/fields/AnimationField.d.ts +44 -0
- package/dist/fields/AnimationField.d.ts.map +1 -0
- package/dist/fields/AnimationField.js +329 -0
- package/dist/fields/AnimationField.js.map +1 -0
- package/dist/fields/BackgroundField.d.ts +40 -0
- package/dist/fields/BackgroundField.d.ts.map +1 -0
- package/dist/fields/BackgroundField.js +413 -0
- package/dist/fields/BackgroundField.js.map +1 -0
- package/dist/fields/BorderField.d.ts +29 -0
- package/dist/fields/BorderField.d.ts.map +1 -0
- package/dist/fields/BorderField.js +264 -0
- package/dist/fields/BorderField.js.map +1 -0
- package/dist/fields/ColorPickerField.d.ts +43 -0
- package/dist/fields/ColorPickerField.d.ts.map +1 -0
- package/dist/fields/ColorPickerField.js +285 -0
- package/dist/fields/ColorPickerField.js.map +1 -0
- package/dist/fields/DimensionsField.d.ts +43 -0
- package/dist/fields/DimensionsField.d.ts.map +1 -0
- package/dist/fields/DimensionsField.js +532 -0
- package/dist/fields/DimensionsField.js.map +1 -0
- package/dist/fields/FlexAlignmentField.d.ts +61 -0
- package/dist/fields/FlexAlignmentField.d.ts.map +1 -0
- package/dist/fields/FlexAlignmentField.js +166 -0
- package/dist/fields/FlexAlignmentField.js.map +1 -0
- package/dist/fields/FolderPickerField.d.ts +17 -0
- package/dist/fields/FolderPickerField.d.ts.map +1 -0
- package/dist/fields/FolderPickerField.js +282 -0
- package/dist/fields/FolderPickerField.js.map +1 -0
- package/dist/fields/GradientEditor.d.ts +22 -0
- package/dist/fields/GradientEditor.d.ts.map +1 -0
- package/dist/fields/GradientEditor.js +322 -0
- package/dist/fields/GradientEditor.js.map +1 -0
- package/dist/fields/LockedField.d.ts +67 -0
- package/dist/fields/LockedField.d.ts.map +1 -0
- package/dist/fields/LockedField.js +170 -0
- package/dist/fields/LockedField.js.map +1 -0
- package/dist/fields/MarginField.d.ts +31 -0
- package/dist/fields/MarginField.d.ts.map +1 -0
- package/dist/fields/MarginField.js +233 -0
- package/dist/fields/MarginField.js.map +1 -0
- package/dist/fields/MediaField.d.ts +33 -0
- package/dist/fields/MediaField.d.ts.map +1 -0
- package/dist/fields/MediaField.js +677 -0
- package/dist/fields/MediaField.js.map +1 -0
- package/dist/fields/PaddingField.d.ts +29 -0
- package/dist/fields/PaddingField.d.ts.map +1 -0
- package/dist/fields/PaddingField.js +232 -0
- package/dist/fields/PaddingField.js.map +1 -0
- package/dist/fields/PageSegmentField.d.ts +17 -0
- package/dist/fields/PageSegmentField.d.ts.map +1 -0
- package/dist/fields/PageSegmentField.js +92 -0
- package/dist/fields/PageSegmentField.js.map +1 -0
- package/dist/fields/ResetField.d.ts +27 -0
- package/dist/fields/ResetField.d.ts.map +1 -0
- package/dist/fields/ResetField.js +122 -0
- package/dist/fields/ResetField.js.map +1 -0
- package/dist/fields/ResponsiveField.d.ts +38 -0
- package/dist/fields/ResponsiveField.d.ts.map +1 -0
- package/dist/fields/ResponsiveField.js +275 -0
- package/dist/fields/ResponsiveField.js.map +1 -0
- package/dist/fields/ResponsiveVisibilityField.d.ts +34 -0
- package/dist/fields/ResponsiveVisibilityField.d.ts.map +1 -0
- package/dist/fields/ResponsiveVisibilityField.js +145 -0
- package/dist/fields/ResponsiveVisibilityField.js.map +1 -0
- package/dist/fields/SizeField.d.ts +54 -0
- package/dist/fields/SizeField.d.ts.map +1 -0
- package/dist/fields/SizeField.js +255 -0
- package/dist/fields/SizeField.js.map +1 -0
- package/dist/fields/SlugPreviewField.d.ts +16 -0
- package/dist/fields/SlugPreviewField.d.ts.map +1 -0
- package/dist/fields/SlugPreviewField.js +49 -0
- package/dist/fields/SlugPreviewField.js.map +1 -0
- package/dist/fields/TemplateField.d.ts +31 -0
- package/dist/fields/TemplateField.d.ts.map +1 -0
- package/dist/fields/TemplateField.js +428 -0
- package/dist/fields/TemplateField.js.map +1 -0
- package/dist/fields/TiptapField.d.ts +40 -0
- package/dist/fields/TiptapField.d.ts.map +1 -0
- package/dist/fields/TiptapField.js +857 -0
- package/dist/fields/TiptapField.js.map +1 -0
- package/dist/fields/TiptapModal.d.ts +10 -0
- package/dist/fields/TiptapModal.d.ts.map +1 -0
- package/dist/fields/TiptapModal.js +114 -0
- package/dist/fields/TiptapModal.js.map +1 -0
- package/dist/fields/TiptapModalField.d.ts +23 -0
- package/dist/fields/TiptapModalField.d.ts.map +1 -0
- package/dist/fields/TiptapModalField.js +55 -0
- package/dist/fields/TiptapModalField.js.map +1 -0
- package/dist/fields/TransformField.d.ts +31 -0
- package/dist/fields/TransformField.d.ts.map +1 -0
- package/dist/fields/TransformField.js +384 -0
- package/dist/fields/TransformField.js.map +1 -0
- package/dist/fields/VerticalAlignmentField.d.ts +35 -0
- package/dist/fields/VerticalAlignmentField.d.ts.map +1 -0
- package/dist/fields/VerticalAlignmentField.js +120 -0
- package/dist/fields/VerticalAlignmentField.js.map +1 -0
- package/dist/fields/WidthField.d.ts +28 -0
- package/dist/fields/WidthField.d.ts.map +1 -0
- package/dist/fields/WidthField.js +339 -0
- package/dist/fields/WidthField.js.map +1 -0
- package/dist/fields/index.d.ts +44 -559
- package/dist/fields/index.d.ts.map +1 -0
- package/dist/fields/index.js +91 -7685
- package/dist/fields/index.js.map +1 -0
- package/dist/fields/richtext-output.css +219 -0
- package/dist/{shared-DeNKN95N.d.mts → fields/shared.d.ts} +114 -133
- package/dist/fields/shared.d.ts.map +1 -0
- package/dist/fields/shared.js +1542 -0
- package/dist/fields/shared.js.map +1 -0
- package/dist/fields/{index.css → tiptap-styles.css} +75 -166
- package/dist/hooks/index.d.ts +8 -0
- package/dist/hooks/index.d.ts.map +1 -0
- package/dist/hooks/index.js +8 -0
- package/dist/hooks/index.js.map +1 -0
- package/dist/hooks/useResponsiveStyles.d.ts +51 -0
- package/dist/hooks/useResponsiveStyles.d.ts.map +1 -0
- package/dist/hooks/useResponsiveStyles.js +149 -0
- package/dist/hooks/useResponsiveStyles.js.map +1 -0
- package/dist/hooks/useScrollAnimation.d.ts +56 -0
- package/dist/hooks/useScrollAnimation.d.ts.map +1 -0
- package/dist/hooks/useScrollAnimation.js +116 -0
- package/dist/hooks/useScrollAnimation.js.map +1 -0
- package/dist/index.d.ts +66 -6
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +67 -568
- package/dist/index.js.map +1 -0
- package/dist/layouts/LayoutWrapper.d.ts +33 -0
- package/dist/layouts/LayoutWrapper.d.ts.map +1 -0
- package/dist/layouts/LayoutWrapper.js +112 -0
- package/dist/layouts/LayoutWrapper.js.map +1 -0
- package/dist/layouts/defaults.d.ts +40 -0
- package/dist/layouts/defaults.d.ts.map +1 -0
- package/dist/layouts/defaults.js +106 -0
- package/dist/layouts/defaults.js.map +1 -0
- package/dist/layouts/index.d.ts +27 -94
- package/dist/layouts/index.d.ts.map +1 -0
- package/dist/layouts/index.js +30 -393
- package/dist/layouts/index.js.map +1 -0
- package/dist/{types-D7D3rZ1J.d.ts → layouts/types.d.ts} +8 -11
- package/dist/layouts/types.d.ts.map +1 -0
- package/dist/layouts/types.js +7 -0
- package/dist/layouts/types.js.map +1 -0
- package/dist/layouts/utils.d.ts +42 -0
- package/dist/layouts/utils.d.ts.map +1 -0
- package/dist/layouts/utils.js +83 -0
- package/dist/layouts/utils.js.map +1 -0
- package/dist/plugin/collections/Pages.d.ts +8 -0
- package/dist/plugin/collections/Pages.d.ts.map +1 -0
- package/dist/plugin/collections/Pages.js +117 -0
- package/dist/plugin/collections/Pages.js.map +1 -0
- package/dist/plugin/fields/index.d.ts +153 -0
- package/dist/plugin/fields/index.d.ts.map +1 -0
- package/dist/plugin/fields/index.js +364 -0
- package/dist/plugin/fields/index.js.map +1 -0
- package/dist/plugin/fields/types.d.ts +108 -0
- package/dist/plugin/fields/types.d.ts.map +1 -0
- package/dist/plugin/fields/types.js +7 -0
- package/dist/plugin/fields/types.js.map +1 -0
- package/dist/plugin/index.d.ts +13 -255
- package/dist/plugin/index.d.ts.map +1 -0
- package/dist/plugin/index.js +276 -553
- package/dist/plugin/index.js.map +1 -0
- package/dist/render/HybridPageRenderer.d.ts +85 -0
- package/dist/render/HybridPageRenderer.d.ts.map +1 -0
- package/dist/render/HybridPageRenderer.js +29 -0
- package/dist/render/HybridPageRenderer.js.map +1 -0
- package/dist/render/PageRenderer.d.ts +51 -0
- package/dist/render/PageRenderer.d.ts.map +1 -0
- package/dist/render/PageRenderer.js +61 -0
- package/dist/render/PageRenderer.js.map +1 -0
- package/dist/render/PuckEditor.client.d.ts +66 -0
- package/dist/render/PuckEditor.client.d.ts.map +1 -0
- package/dist/render/PuckEditor.client.js +66 -0
- package/dist/render/PuckEditor.client.js.map +1 -0
- package/dist/render/index.d.ts +8 -106
- package/dist/render/index.d.ts.map +1 -0
- package/dist/render/index.js +10 -2162
- package/dist/render/index.js.map +1 -0
- package/dist/theme/context.d.ts +59 -0
- package/dist/theme/context.d.ts.map +1 -0
- package/dist/theme/context.js +73 -0
- package/dist/theme/context.js.map +1 -0
- package/dist/theme/defaults.d.ts +39 -0
- package/dist/theme/defaults.d.ts.map +1 -0
- package/dist/theme/defaults.js +72 -0
- package/dist/theme/defaults.js.map +1 -0
- package/dist/theme/example.d.ts +30 -0
- package/dist/theme/example.d.ts.map +1 -0
- package/dist/theme/example.js +89 -0
- package/dist/theme/example.js.map +1 -0
- package/dist/theme/index.d.ts +17 -140
- package/dist/theme/index.d.ts.map +1 -0
- package/dist/theme/index.js +34 -200
- package/dist/theme/index.js.map +1 -0
- package/dist/{types-_6MvjyKv.d.ts → theme/types.d.ts} +8 -9
- package/dist/theme/types.d.ts.map +1 -0
- package/dist/theme/types.js +9 -0
- package/dist/theme/types.js.map +1 -0
- package/dist/theme/utils.d.ts +30 -0
- package/dist/theme/utils.d.ts.map +1 -0
- package/dist/theme/utils.js +84 -0
- package/dist/theme/utils.js.map +1 -0
- package/dist/{index-CQu6SzDg.d.mts → types/index.d.ts} +120 -115
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +2 -0
- package/dist/types/index.js.map +1 -0
- package/dist/utils/index.d.ts +23 -257
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/index.js +56 -425
- package/dist/utils/index.js.map +1 -0
- package/dist/utils/{index.d.mts → migration.d.ts} +16 -112
- package/dist/utils/migration.d.ts.map +1 -0
- package/dist/utils/migration.js +309 -0
- package/dist/utils/migration.js.map +1 -0
- package/dist/utils/validation.d.ts +89 -0
- package/dist/utils/validation.d.ts.map +1 -0
- package/dist/utils/validation.js +247 -0
- package/dist/utils/validation.js.map +1 -0
- package/dist/views/PuckConfigContext.d.ts +71 -0
- package/dist/views/PuckConfigContext.d.ts.map +1 -0
- package/dist/views/PuckConfigContext.js +45 -0
- package/dist/views/PuckConfigContext.js.map +1 -0
- package/dist/views/PuckEditorClient.d.ts +73 -0
- package/dist/views/PuckEditorClient.d.ts.map +1 -0
- package/dist/views/PuckEditorClient.js +130 -0
- package/dist/views/PuckEditorClient.js.map +1 -0
- package/dist/views/PuckEditorView.d.ts +19 -0
- package/dist/views/PuckEditorView.d.ts.map +1 -0
- package/dist/views/PuckEditorView.js +106 -0
- package/dist/views/PuckEditorView.js.map +1 -0
- package/dist/views/index.d.ts +10 -0
- package/dist/views/index.d.ts.map +1 -0
- package/dist/views/index.js +10 -0
- package/dist/views/index.js.map +1 -0
- package/package.json +50 -72
- package/dist/AccordionClient.d.mts +0 -24
- package/dist/AccordionClient.d.ts +0 -24
- package/dist/AccordionClient.js +0 -786
- package/dist/AccordionClient.mjs +0 -784
- package/dist/AnimatedWrapper.d.mts +0 -30
- package/dist/AnimatedWrapper.d.ts +0 -30
- package/dist/AnimatedWrapper.js +0 -379
- package/dist/AnimatedWrapper.mjs +0 -377
- package/dist/admin/client.d.mts +0 -108
- package/dist/admin/client.mjs +0 -173
- package/dist/admin/index.d.mts +0 -157
- package/dist/admin/index.mjs +0 -29
- package/dist/api/index.d.mts +0 -460
- package/dist/api/index.mjs +0 -578
- package/dist/components/index.css +0 -339
- package/dist/components/index.d.mts +0 -222
- package/dist/components/index.mjs +0 -9109
- package/dist/config/config.editor.css +0 -339
- package/dist/config/config.editor.d.mts +0 -153
- package/dist/config/config.editor.mjs +0 -9347
- package/dist/config/index.d.mts +0 -68
- package/dist/config/index.mjs +0 -2008
- package/dist/editor/index.d.mts +0 -784
- package/dist/editor/index.mjs +0 -4500
- package/dist/fields/index.d.mts +0 -600
- package/dist/fields/index.mjs +0 -7569
- package/dist/index-CoUQnyC3.d.ts +0 -327
- package/dist/index.d.mts +0 -6
- package/dist/index.mjs +0 -555
- package/dist/layouts/index.d.mts +0 -96
- package/dist/layouts/index.mjs +0 -378
- package/dist/plugin/index.d.mts +0 -289
- package/dist/plugin/index.mjs +0 -555
- package/dist/render/index.d.mts +0 -109
- package/dist/render/index.mjs +0 -2140
- package/dist/shared-DeNKN95N.d.ts +0 -546
- package/dist/theme/index.d.mts +0 -155
- package/dist/theme/index.mjs +0 -186
- package/dist/types-D7D3rZ1J.d.mts +0 -116
- package/dist/types-_6MvjyKv.d.mts +0 -104
- package/dist/utils/index.mjs +0 -412
- package/dist/utils-DaRs9t0J.d.mts +0 -85
- package/dist/utils-gAvt0Vhw.d.ts +0 -85
- package/examples/README.md +0 -247
- package/examples/api/puck/pages/[id]/route.ts +0 -64
- package/examples/api/puck/pages/[id]/versions/route.ts +0 -47
- package/examples/api/puck/pages/route.ts +0 -45
- package/examples/app/(frontend)/page.tsx +0 -94
- package/examples/app/(manage)/layout.tsx +0 -31
- package/examples/app/[...slug]/page.tsx +0 -101
- package/examples/app/pages/[id]/edit/page.tsx +0 -148
- package/examples/components/CustomBanner.tsx +0 -368
- package/examples/config/custom-config.ts +0 -223
- package/examples/config/payload.config.example.ts +0 -64
- package/examples/lib/puck-layouts.ts +0 -258
- package/examples/lib/puck-theme.ts +0 -94
- package/examples/styles/puck-theme.css +0 -171
package/dist/fields/index.d.ts
CHANGED
|
@@ -1,563 +1,46 @@
|
|
|
1
|
-
import { C as ColorValue, P as PaddingValue, a as BorderValue, W as WidthValue, D as DimensionsValue, G as GradientValue, B as BackgroundValue, R as ResponsiveValue, V as VisibilityValue, A as AnimationValue, T as TransformValue } from '../shared-DeNKN95N.js';
|
|
2
|
-
export { _ as ANIMATION_CATEGORIES, F as AdvancedEasingFunction, J as AnimationCategory, I as AnimationOrigin, u as BREAKPOINTS, aI as BackgroundCSSResult, k as BackgroundImageValue, l as BackgroundOverlay, s as Breakpoint, j as ContentAlignment, $ as DEFAULT_ANIMATION, a2 as DEFAULT_TRANSFORM, z as DEFAULT_VISIBILITY, e as DimensionConstraint, h as DimensionsMode, f as DimensionsUnit, Z as EASING_CSS_MAP, E as EasingFunction, H as EntranceAnimation, o as GradientMask, n as GradientStop, M as MediaField, b as MediaReference, t as ResponsiveCSSResult, S as StaggerConfig, K as StaggerDirection, a0 as TransformOrigin, az as alignItemsMap, al as alignmentMap, L as animationValueToCSS, af as aspectRatioField, at as aspectRatioMap, a8 as backgroundColorField, p as backgroundValueToCSS, am as bgColorMap, ah as borderRadiusField, av as borderRadiusMap, aF as borderValueToCSS, a7 as buttonSizeField, a5 as buttonStyleField, a6 as buttonVariantField, a3 as cn, aC as colorValueToCSS, ai as columnsCountField, aw as columnsCountMap, c as createMediaField, x as cssPropertiesToString, d as dimensionsValueToCSS, ag as dividerStyleField, au as dividerStyleMap, aj as flexDirectionField, ax as flexDirectionMap, ak as flexWrapField, aB as flexWrapMap, aa as gapField, ao as gapMap, Y as generateStaggerStyles, O as getAnimationCSSVariables, r as getBackgroundImageOpacity, aH as getCustomStyleObject, Q as getDefaultEasingForAnimation, g as getDimensionsSummary, N as getEntranceAnimationStyles, U as getRelevantIntensityControls, X as getStaggerDelay, q as gradientValueToCSS, aJ as hasCustomStyles, ad as headingLevelField, ar as headingLevelMap, i as isLegacyWidthValue, v as isResponsiveValue, ay as justifyContentMap, aK as layoutComponentsDisallow, aE as marginValueToCSS, m as migrateWidthValue, aD as paddingValueToCSS, w as responsiveValueToCSS, aA as selfAlignmentMap, ab as shadowField, ap as shadowMap, ac as spacerHeightField, aq as spacerHeightMap, a9 as textColorField, an as textColorMap, ae as textSizeField, as as textSizeMap, a1 as transformValueToCSS, a4 as visibilityField, y as visibilityValueToCSS, aG as widthValueToCSS } from '../shared-DeNKN95N.js';
|
|
3
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
|
-
import React__default from 'react';
|
|
5
|
-
import { CustomField } from '@measured/puck';
|
|
6
|
-
|
|
7
|
-
type JustifyContent = 'flex-start' | 'center' | 'flex-end' | 'space-between' | 'space-around';
|
|
8
|
-
type AlignItems = 'flex-start' | 'center' | 'flex-end' | 'stretch';
|
|
9
|
-
interface JustifyContentFieldProps {
|
|
10
|
-
value: JustifyContent | null;
|
|
11
|
-
onChange: (value: JustifyContent | null) => void;
|
|
12
|
-
label?: string;
|
|
13
|
-
readOnly?: boolean;
|
|
14
|
-
defaultValue?: JustifyContent;
|
|
15
|
-
}
|
|
16
|
-
interface AlignItemsFieldProps {
|
|
17
|
-
value: AlignItems | null;
|
|
18
|
-
onChange: (value: AlignItems | null) => void;
|
|
19
|
-
label?: string;
|
|
20
|
-
readOnly?: boolean;
|
|
21
|
-
defaultValue?: AlignItems;
|
|
22
|
-
}
|
|
23
|
-
declare function JustifyContentFieldInner({ value, onChange, label, readOnly, defaultValue, }: JustifyContentFieldProps): react_jsx_runtime.JSX.Element;
|
|
24
|
-
declare const JustifyContentField: React__default.MemoExoticComponent<typeof JustifyContentFieldInner>;
|
|
25
|
-
declare function AlignItemsFieldInner({ value, onChange, label, readOnly, defaultValue, }: AlignItemsFieldProps): react_jsx_runtime.JSX.Element;
|
|
26
|
-
declare const AlignItemsField: React__default.MemoExoticComponent<typeof AlignItemsFieldInner>;
|
|
27
|
-
interface CreateJustifyContentFieldConfig {
|
|
28
|
-
label?: string;
|
|
29
|
-
defaultValue?: JustifyContent;
|
|
30
|
-
}
|
|
31
|
-
interface CreateAlignItemsFieldConfig {
|
|
32
|
-
label?: string;
|
|
33
|
-
defaultValue?: AlignItems;
|
|
34
|
-
}
|
|
35
|
-
/**
|
|
36
|
-
* Creates a Puck field configuration for flex justify-content control
|
|
37
|
-
*
|
|
38
|
-
* @example
|
|
39
|
-
* ```ts
|
|
40
|
-
* fields: {
|
|
41
|
-
* justifyContent: createJustifyContentField({ label: 'Justify Content' }),
|
|
42
|
-
* }
|
|
43
|
-
* ```
|
|
44
|
-
*/
|
|
45
|
-
declare function createJustifyContentField(config?: CreateJustifyContentFieldConfig): CustomField<JustifyContent | null>;
|
|
46
|
-
/**
|
|
47
|
-
* Creates a Puck field configuration for flex align-items control
|
|
48
|
-
*
|
|
49
|
-
* @example
|
|
50
|
-
* ```ts
|
|
51
|
-
* fields: {
|
|
52
|
-
* alignItems: createAlignItemsField({ label: 'Align Items' }),
|
|
53
|
-
* }
|
|
54
|
-
* ```
|
|
55
|
-
*/
|
|
56
|
-
declare function createAlignItemsField(config?: CreateAlignItemsFieldConfig): CustomField<AlignItems | null>;
|
|
57
|
-
|
|
58
|
-
type Alignment = 'left' | 'center' | 'right';
|
|
59
|
-
interface AlignmentFieldProps {
|
|
60
|
-
value: Alignment | null;
|
|
61
|
-
onChange: (value: Alignment | null) => void;
|
|
62
|
-
label?: string;
|
|
63
|
-
readOnly?: boolean;
|
|
64
|
-
/** Default value when cleared or initially null */
|
|
65
|
-
defaultValue?: Alignment;
|
|
66
|
-
}
|
|
67
|
-
declare function AlignmentFieldInner({ value, onChange, label, readOnly, defaultValue, }: AlignmentFieldProps): react_jsx_runtime.JSX.Element;
|
|
68
|
-
declare const AlignmentField: React__default.MemoExoticComponent<typeof AlignmentFieldInner>;
|
|
69
|
-
interface CreateAlignmentFieldConfig {
|
|
70
|
-
label?: string;
|
|
71
|
-
defaultValue?: Alignment;
|
|
72
|
-
}
|
|
73
|
-
/**
|
|
74
|
-
* Creates a Puck field configuration for alignment control
|
|
75
|
-
*
|
|
76
|
-
* @example
|
|
77
|
-
* ```ts
|
|
78
|
-
* fields: {
|
|
79
|
-
* alignment: createAlignmentField({ label: 'Text Alignment' }),
|
|
80
|
-
* }
|
|
81
|
-
* ```
|
|
82
|
-
*/
|
|
83
|
-
declare function createAlignmentField(config?: CreateAlignmentFieldConfig): CustomField<Alignment | null>;
|
|
84
|
-
|
|
85
|
-
type SizeMode = 'sm' | 'default' | 'lg' | 'custom';
|
|
86
|
-
type SizeUnit = 'px' | 'rem';
|
|
87
|
-
interface SizeValue {
|
|
88
|
-
mode: SizeMode;
|
|
89
|
-
/** Height in units (only used when mode === 'custom') */
|
|
90
|
-
height?: number;
|
|
91
|
-
/** Horizontal padding in units (only used when mode === 'custom') */
|
|
92
|
-
paddingX?: number;
|
|
93
|
-
/** Vertical padding in units (only used when mode === 'custom') */
|
|
94
|
-
paddingY?: number;
|
|
95
|
-
/** Font size in units (only used when mode === 'custom') */
|
|
96
|
-
fontSize?: number;
|
|
97
|
-
/** Unit for all values */
|
|
98
|
-
unit?: SizeUnit;
|
|
99
|
-
}
|
|
100
|
-
interface SizeFieldProps {
|
|
101
|
-
value: SizeValue | null;
|
|
102
|
-
onChange: (value: SizeValue | null) => void;
|
|
103
|
-
label?: string;
|
|
104
|
-
readOnly?: boolean;
|
|
105
|
-
/** Show height input (default: true) */
|
|
106
|
-
showHeight?: boolean;
|
|
107
|
-
/** Show font size input (default: true) */
|
|
108
|
-
showFontSize?: boolean;
|
|
109
|
-
}
|
|
110
|
-
declare function SizeFieldInner({ value, onChange, label, readOnly, showHeight, showFontSize, }: SizeFieldProps): react_jsx_runtime.JSX.Element;
|
|
111
|
-
declare const SizeField: React__default.MemoExoticComponent<typeof SizeFieldInner>;
|
|
112
|
-
/**
|
|
113
|
-
* Convert SizeValue to CSS properties object
|
|
114
|
-
*
|
|
115
|
-
* For preset modes, returns undefined (use Tailwind classes instead)
|
|
116
|
-
* For custom mode, returns inline styles
|
|
117
|
-
*/
|
|
118
|
-
declare function sizeValueToCSS(size: SizeValue | null | undefined): React__default.CSSProperties | undefined;
|
|
119
|
-
/**
|
|
120
|
-
* Get Tailwind classes for preset size modes
|
|
121
|
-
* Returns empty string for custom mode (use inline styles instead)
|
|
122
|
-
*/
|
|
123
|
-
declare function getSizeClasses(size: SizeValue | null | undefined, sizeMap: Record<string, string>): string;
|
|
124
|
-
interface CreateSizeFieldConfig {
|
|
125
|
-
label?: string;
|
|
126
|
-
showHeight?: boolean;
|
|
127
|
-
showFontSize?: boolean;
|
|
128
|
-
}
|
|
129
|
-
/**
|
|
130
|
-
* Creates a Puck field configuration for size control
|
|
131
|
-
*
|
|
132
|
-
* @example
|
|
133
|
-
* ```ts
|
|
134
|
-
* fields: {
|
|
135
|
-
* size: createSizeField({ label: 'Button Size' }),
|
|
136
|
-
* }
|
|
137
|
-
* ```
|
|
138
|
-
*/
|
|
139
|
-
declare function createSizeField(config?: CreateSizeFieldConfig): CustomField<SizeValue | null>;
|
|
140
|
-
|
|
141
|
-
interface ColorPickerFieldProps {
|
|
142
|
-
value: ColorValue | null;
|
|
143
|
-
onChange: (value: ColorValue | null) => void;
|
|
144
|
-
label?: string;
|
|
145
|
-
readOnly?: boolean;
|
|
146
|
-
showOpacity?: boolean;
|
|
147
|
-
presets?: Array<{
|
|
148
|
-
hex: string;
|
|
149
|
-
label: string;
|
|
150
|
-
}>;
|
|
151
|
-
}
|
|
152
|
-
/**
|
|
153
|
-
* Converts hex + opacity to rgba CSS string
|
|
154
|
-
*/
|
|
155
|
-
declare function colorToRgba(hex: string, opacity: number): string;
|
|
156
|
-
declare function ColorPickerFieldInner({ value, onChange, label, readOnly, showOpacity, presets, }: ColorPickerFieldProps): react_jsx_runtime.JSX.Element;
|
|
157
|
-
declare const ColorPickerField: React__default.MemoExoticComponent<typeof ColorPickerFieldInner>;
|
|
158
|
-
/**
|
|
159
|
-
* Creates a Puck field configuration for color selection
|
|
160
|
-
*/
|
|
161
|
-
declare function createColorPickerField(config: {
|
|
162
|
-
label?: string;
|
|
163
|
-
showOpacity?: boolean;
|
|
164
|
-
presets?: Array<{
|
|
165
|
-
hex: string;
|
|
166
|
-
label: string;
|
|
167
|
-
}>;
|
|
168
|
-
}): CustomField<ColorValue | null>;
|
|
169
|
-
|
|
170
|
-
interface TiptapFieldProps {
|
|
171
|
-
value: string;
|
|
172
|
-
onChange: (value: string) => void;
|
|
173
|
-
label?: string;
|
|
174
|
-
readOnly?: boolean;
|
|
175
|
-
}
|
|
176
|
-
declare module '@tiptap/core' {
|
|
177
|
-
interface Commands<ReturnType> {
|
|
178
|
-
fontSize: {
|
|
179
|
-
setFontSize: (size: string) => ReturnType;
|
|
180
|
-
unsetFontSize: () => ReturnType;
|
|
181
|
-
};
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
declare function TiptapFieldInner({ value, onChange, label, readOnly }: TiptapFieldProps): react_jsx_runtime.JSX.Element;
|
|
185
|
-
declare const TiptapField: React__default.MemoExoticComponent<typeof TiptapFieldInner>;
|
|
186
|
-
/**
|
|
187
|
-
* Creates a Puck field configuration for Tiptap rich text editing
|
|
188
|
-
*/
|
|
189
|
-
declare function createTiptapField(config: {
|
|
190
|
-
label?: string;
|
|
191
|
-
placeholder?: string;
|
|
192
|
-
}): CustomField<string>;
|
|
193
|
-
|
|
194
|
-
interface TiptapModalProps {
|
|
195
|
-
isOpen: boolean;
|
|
196
|
-
onClose: () => void;
|
|
197
|
-
value: string;
|
|
198
|
-
onChange: (value: string) => void;
|
|
199
|
-
title?: string;
|
|
200
|
-
}
|
|
201
|
-
declare function TiptapModal({ isOpen, onClose, value, onChange, title }: TiptapModalProps): react_jsx_runtime.JSX.Element | null;
|
|
202
|
-
|
|
203
|
-
interface TiptapModalFieldProps {
|
|
204
|
-
value: string;
|
|
205
|
-
onChange: (value: string) => void;
|
|
206
|
-
label?: string;
|
|
207
|
-
}
|
|
208
|
-
declare function TiptapModalFieldInner({ value, onChange, label }: TiptapModalFieldProps): react_jsx_runtime.JSX.Element;
|
|
209
|
-
declare const TiptapModalField: React__default.MemoExoticComponent<typeof TiptapModalFieldInner>;
|
|
210
|
-
/**
|
|
211
|
-
* Creates a Puck field configuration for TipTap editing with modal option
|
|
212
|
-
*/
|
|
213
|
-
declare function createTiptapModalField(config?: {
|
|
214
|
-
label?: string;
|
|
215
|
-
}): CustomField<string>;
|
|
216
|
-
|
|
217
|
-
interface PaddingFieldProps {
|
|
218
|
-
value: PaddingValue | null;
|
|
219
|
-
onChange: (value: PaddingValue | null) => void;
|
|
220
|
-
label?: string;
|
|
221
|
-
readOnly?: boolean;
|
|
222
|
-
showUnits?: boolean;
|
|
223
|
-
}
|
|
224
|
-
declare function PaddingFieldInner({ value, onChange, label, readOnly, showUnits, }: PaddingFieldProps): react_jsx_runtime.JSX.Element;
|
|
225
|
-
declare const PaddingField: React__default.MemoExoticComponent<typeof PaddingFieldInner>;
|
|
226
|
-
/**
|
|
227
|
-
* Creates a Puck field configuration for padding/spacing
|
|
228
|
-
*/
|
|
229
|
-
declare function createPaddingField(config: {
|
|
230
|
-
label?: string;
|
|
231
|
-
showUnits?: boolean;
|
|
232
|
-
}): CustomField<PaddingValue | null>;
|
|
233
|
-
|
|
234
|
-
type MarginValue = PaddingValue;
|
|
235
|
-
interface MarginFieldProps {
|
|
236
|
-
value: MarginValue | null;
|
|
237
|
-
onChange: (value: MarginValue | null) => void;
|
|
238
|
-
label?: string;
|
|
239
|
-
readOnly?: boolean;
|
|
240
|
-
showUnits?: boolean;
|
|
241
|
-
}
|
|
242
|
-
declare function MarginFieldInner({ value, onChange, label, readOnly, showUnits, }: MarginFieldProps): react_jsx_runtime.JSX.Element;
|
|
243
|
-
declare const MarginField: React__default.MemoExoticComponent<typeof MarginFieldInner>;
|
|
244
|
-
/**
|
|
245
|
-
* Creates a Puck field configuration for margin/spacing
|
|
246
|
-
*/
|
|
247
|
-
declare function createMarginField(config: {
|
|
248
|
-
label?: string;
|
|
249
|
-
showUnits?: boolean;
|
|
250
|
-
}): CustomField<MarginValue | null>;
|
|
251
|
-
|
|
252
|
-
interface BorderFieldProps {
|
|
253
|
-
value: BorderValue | null;
|
|
254
|
-
onChange: (value: BorderValue | null) => void;
|
|
255
|
-
label?: string;
|
|
256
|
-
readOnly?: boolean;
|
|
257
|
-
}
|
|
258
|
-
declare function BorderFieldInner({ value, onChange, label, readOnly, }: BorderFieldProps): react_jsx_runtime.JSX.Element;
|
|
259
|
-
declare const BorderField: React__default.MemoExoticComponent<typeof BorderFieldInner>;
|
|
260
|
-
/**
|
|
261
|
-
* Creates a Puck field configuration for border styling
|
|
262
|
-
*/
|
|
263
|
-
declare function createBorderField(config: {
|
|
264
|
-
label?: string;
|
|
265
|
-
}): CustomField<BorderValue | null>;
|
|
266
|
-
|
|
267
|
-
interface WidthFieldProps {
|
|
268
|
-
value: WidthValue | null;
|
|
269
|
-
onChange: (value: WidthValue | null) => void;
|
|
270
|
-
label?: string;
|
|
271
|
-
readOnly?: boolean;
|
|
272
|
-
}
|
|
273
|
-
declare function WidthFieldInner({ value, onChange, label, readOnly, }: WidthFieldProps): react_jsx_runtime.JSX.Element;
|
|
274
|
-
declare const WidthField: React__default.MemoExoticComponent<typeof WidthFieldInner>;
|
|
275
|
-
/**
|
|
276
|
-
* Creates a Puck field configuration for width control
|
|
277
|
-
*/
|
|
278
|
-
declare function createWidthField(config: {
|
|
279
|
-
label?: string;
|
|
280
|
-
}): CustomField<WidthValue | null>;
|
|
281
|
-
|
|
282
|
-
interface DimensionsFieldProps {
|
|
283
|
-
value: DimensionsValue | null;
|
|
284
|
-
onChange: (value: DimensionsValue | null) => void;
|
|
285
|
-
label?: string;
|
|
286
|
-
readOnly?: boolean;
|
|
287
|
-
/** Show height controls (default: true) */
|
|
288
|
-
showHeightControls?: boolean;
|
|
289
|
-
/** Show min controls in advanced mode (default: true) */
|
|
290
|
-
showMinControls?: boolean;
|
|
291
|
-
/** Start with advanced mode expanded (default: false) */
|
|
292
|
-
defaultAdvancedMode?: boolean;
|
|
293
|
-
}
|
|
294
|
-
declare function DimensionsFieldInner({ value, onChange, label, readOnly, showHeightControls, showMinControls, defaultAdvancedMode, }: DimensionsFieldProps): react_jsx_runtime.JSX.Element;
|
|
295
|
-
declare const DimensionsField: React__default.MemoExoticComponent<typeof DimensionsFieldInner>;
|
|
296
|
-
interface CreateDimensionsFieldConfig {
|
|
297
|
-
label?: string;
|
|
298
|
-
/** Show height controls (default: true) */
|
|
299
|
-
showHeightControls?: boolean;
|
|
300
|
-
/** Show min controls in advanced mode (default: true) */
|
|
301
|
-
showMinControls?: boolean;
|
|
302
|
-
/** Start with advanced mode expanded (default: false) */
|
|
303
|
-
defaultAdvancedMode?: boolean;
|
|
304
|
-
}
|
|
305
|
-
/**
|
|
306
|
-
* Creates a Puck field configuration for dimensions control
|
|
307
|
-
*/
|
|
308
|
-
declare function createDimensionsField(config?: CreateDimensionsFieldConfig): CustomField<DimensionsValue | null>;
|
|
309
|
-
|
|
310
|
-
interface LockedTextFieldProps {
|
|
311
|
-
value: string;
|
|
312
|
-
onChange: (value: string) => void;
|
|
313
|
-
label?: string;
|
|
314
|
-
placeholder?: string;
|
|
315
|
-
warningMessage?: string;
|
|
316
|
-
}
|
|
317
|
-
interface LockedRadioFieldProps {
|
|
318
|
-
value: boolean;
|
|
319
|
-
onChange: (value: boolean) => void;
|
|
320
|
-
label?: string;
|
|
321
|
-
options: {
|
|
322
|
-
label: string;
|
|
323
|
-
value: boolean;
|
|
324
|
-
}[];
|
|
325
|
-
warningMessage?: string;
|
|
326
|
-
}
|
|
327
|
-
declare function LockedTextField({ value, onChange, label, placeholder, warningMessage, }: LockedTextFieldProps): react_jsx_runtime.JSX.Element;
|
|
328
|
-
declare function LockedRadioField({ value, onChange, label, options, warningMessage, }: LockedRadioFieldProps): react_jsx_runtime.JSX.Element;
|
|
329
|
-
/**
|
|
330
|
-
* Creates a Puck field configuration for a locked text input
|
|
331
|
-
*/
|
|
332
|
-
declare function createLockedTextField(config: {
|
|
333
|
-
label?: string;
|
|
334
|
-
placeholder?: string;
|
|
335
|
-
warningMessage?: string;
|
|
336
|
-
}): CustomField<string>;
|
|
337
|
-
/**
|
|
338
|
-
* Creates a Puck field configuration for a locked radio button group
|
|
339
|
-
*/
|
|
340
|
-
declare function createLockedRadioField(config: {
|
|
341
|
-
label?: string;
|
|
342
|
-
options: {
|
|
343
|
-
label: string;
|
|
344
|
-
value: boolean;
|
|
345
|
-
}[];
|
|
346
|
-
warningMessage?: string;
|
|
347
|
-
}): CustomField<boolean>;
|
|
348
|
-
/**
|
|
349
|
-
* Pre-built locked slug field - prevents accidental URL changes
|
|
350
|
-
*
|
|
351
|
-
* Use in Puck root config:
|
|
352
|
-
* ```tsx
|
|
353
|
-
* root: {
|
|
354
|
-
* fields: {
|
|
355
|
-
* slug: lockedSlugField,
|
|
356
|
-
* }
|
|
357
|
-
* }
|
|
358
|
-
* ```
|
|
359
|
-
*/
|
|
360
|
-
declare const lockedSlugField: CustomField<string>;
|
|
361
|
-
/**
|
|
362
|
-
* Pre-built locked isHomepage field - prevents accidental homepage changes
|
|
363
|
-
*
|
|
364
|
-
* Use in Puck root config:
|
|
365
|
-
* ```tsx
|
|
366
|
-
* root: {
|
|
367
|
-
* fields: {
|
|
368
|
-
* isHomepage: lockedHomepageField,
|
|
369
|
-
* }
|
|
370
|
-
* }
|
|
371
|
-
* ```
|
|
372
|
-
*/
|
|
373
|
-
declare const lockedHomepageField: CustomField<boolean>;
|
|
374
|
-
|
|
375
|
-
type VerticalAlignment = 'flex-start' | 'center' | 'flex-end';
|
|
376
|
-
interface VerticalAlignmentFieldProps {
|
|
377
|
-
value: VerticalAlignment | null;
|
|
378
|
-
onChange: (value: VerticalAlignment | null) => void;
|
|
379
|
-
label?: string;
|
|
380
|
-
readOnly?: boolean;
|
|
381
|
-
defaultValue?: VerticalAlignment;
|
|
382
|
-
}
|
|
383
|
-
declare function VerticalAlignmentFieldInner({ value, onChange, label, readOnly, defaultValue, }: VerticalAlignmentFieldProps): react_jsx_runtime.JSX.Element;
|
|
384
|
-
declare const VerticalAlignmentField: React__default.MemoExoticComponent<typeof VerticalAlignmentFieldInner>;
|
|
385
|
-
interface CreateVerticalAlignmentFieldConfig {
|
|
386
|
-
label?: string;
|
|
387
|
-
defaultValue?: VerticalAlignment;
|
|
388
|
-
}
|
|
389
|
-
/**
|
|
390
|
-
* Creates a Puck field configuration for vertical/self alignment control
|
|
391
|
-
*
|
|
392
|
-
* @example
|
|
393
|
-
* ```ts
|
|
394
|
-
* fields: {
|
|
395
|
-
* verticalAlignment: createVerticalAlignmentField({ label: 'Vertical Alignment' }),
|
|
396
|
-
* }
|
|
397
|
-
* ```
|
|
398
|
-
*/
|
|
399
|
-
declare function createVerticalAlignmentField(config?: CreateVerticalAlignmentFieldConfig): CustomField<VerticalAlignment | null>;
|
|
400
|
-
|
|
401
|
-
interface GradientEditorProps {
|
|
402
|
-
value: GradientValue | null;
|
|
403
|
-
onChange: (value: GradientValue) => void;
|
|
404
|
-
readOnly?: boolean;
|
|
405
|
-
}
|
|
406
|
-
declare function GradientEditorInner({ value, onChange, readOnly }: GradientEditorProps): react_jsx_runtime.JSX.Element;
|
|
407
|
-
declare const GradientEditor: React__default.MemoExoticComponent<typeof GradientEditorInner>;
|
|
408
|
-
|
|
409
|
-
interface BackgroundFieldProps {
|
|
410
|
-
value: BackgroundValue | null;
|
|
411
|
-
onChange: (value: BackgroundValue | null) => void;
|
|
412
|
-
label?: string;
|
|
413
|
-
readOnly?: boolean;
|
|
414
|
-
apiEndpoint?: string;
|
|
415
|
-
showOpacity?: boolean;
|
|
416
|
-
colorPresets?: Array<{
|
|
417
|
-
hex: string;
|
|
418
|
-
label: string;
|
|
419
|
-
}>;
|
|
420
|
-
}
|
|
421
|
-
declare function BackgroundFieldInner({ value, onChange, label, readOnly, apiEndpoint, showOpacity, colorPresets, }: BackgroundFieldProps): react_jsx_runtime.JSX.Element;
|
|
422
|
-
declare const BackgroundField: React__default.MemoExoticComponent<typeof BackgroundFieldInner>;
|
|
423
|
-
/**
|
|
424
|
-
* Creates a Puck field configuration for background selection
|
|
425
|
-
*/
|
|
426
|
-
declare function createBackgroundField(config?: {
|
|
427
|
-
label?: string;
|
|
428
|
-
apiEndpoint?: string;
|
|
429
|
-
showOpacity?: boolean;
|
|
430
|
-
colorPresets?: Array<{
|
|
431
|
-
hex: string;
|
|
432
|
-
label: string;
|
|
433
|
-
}>;
|
|
434
|
-
}): CustomField<BackgroundValue | null>;
|
|
435
|
-
|
|
436
|
-
/**
|
|
437
|
-
* ResponsiveField - Generic wrapper for breakpoint-specific field overrides
|
|
438
|
-
*
|
|
439
|
-
* This component wraps any existing field to provide responsive overrides
|
|
440
|
-
* at different breakpoints (xs, sm, md, lg, xl). It uses sparse storage,
|
|
441
|
-
* only storing values for breakpoints that have explicit overrides.
|
|
442
|
-
*/
|
|
443
|
-
|
|
444
|
-
interface ResponsiveFieldProps<T> {
|
|
445
|
-
value: ResponsiveValue<T> | null;
|
|
446
|
-
onChange: (value: ResponsiveValue<T> | null) => void;
|
|
447
|
-
label?: string;
|
|
448
|
-
readOnly?: boolean;
|
|
449
|
-
/** Render function for the inner field */
|
|
450
|
-
renderInnerField: (props: {
|
|
451
|
-
value: T | null;
|
|
452
|
-
onChange: (v: T | null) => void;
|
|
453
|
-
readOnly?: boolean;
|
|
454
|
-
}) => React__default.ReactNode;
|
|
455
|
-
/** Default value for the xs breakpoint */
|
|
456
|
-
defaultValue?: T;
|
|
457
|
-
}
|
|
458
|
-
declare const ResponsiveField: <T>(props: ResponsiveFieldProps<T>) => React__default.ReactElement;
|
|
459
|
-
interface CreateResponsiveFieldConfig<T> {
|
|
460
|
-
label?: string;
|
|
461
|
-
/** Factory function that creates the inner field */
|
|
462
|
-
innerField: (config: {
|
|
463
|
-
label?: string;
|
|
464
|
-
}) => CustomField<T | null>;
|
|
465
|
-
/** Default value for base breakpoint */
|
|
466
|
-
defaultValue?: T;
|
|
467
|
-
}
|
|
468
|
-
/**
|
|
469
|
-
* Creates a responsive wrapper around any Puck custom field.
|
|
470
|
-
*
|
|
471
|
-
* The inner field factory is called to get the field configuration,
|
|
472
|
-
* and its render function is used to render the field at each breakpoint.
|
|
473
|
-
*
|
|
474
|
-
* @example
|
|
475
|
-
* ```ts
|
|
476
|
-
* // Create a responsive padding field
|
|
477
|
-
* fields: {
|
|
478
|
-
* padding: createResponsiveField({
|
|
479
|
-
* label: 'Padding',
|
|
480
|
-
* innerField: (config) => createPaddingField(config),
|
|
481
|
-
* defaultValue: { top: 0, right: 0, bottom: 0, left: 0, unit: 'px', linked: true },
|
|
482
|
-
* }),
|
|
483
|
-
* }
|
|
484
|
-
* ```
|
|
485
|
-
*/
|
|
486
|
-
declare function createResponsiveField<T>(config: CreateResponsiveFieldConfig<T>): CustomField<ResponsiveValue<T> | null>;
|
|
487
|
-
|
|
488
|
-
interface ResponsiveVisibilityFieldProps {
|
|
489
|
-
value: VisibilityValue | null;
|
|
490
|
-
onChange: (value: VisibilityValue | null) => void;
|
|
491
|
-
label?: string;
|
|
492
|
-
readOnly?: boolean;
|
|
493
|
-
}
|
|
494
|
-
declare function ResponsiveVisibilityFieldInner({ value, onChange, label, readOnly, }: ResponsiveVisibilityFieldProps): react_jsx_runtime.JSX.Element;
|
|
495
|
-
declare const ResponsiveVisibilityField: React__default.MemoExoticComponent<typeof ResponsiveVisibilityFieldInner>;
|
|
496
|
-
interface CreateResponsiveVisibilityFieldConfig {
|
|
497
|
-
label?: string;
|
|
498
|
-
}
|
|
499
|
-
/**
|
|
500
|
-
* Creates a Puck custom field for responsive visibility control.
|
|
501
|
-
*
|
|
502
|
-
* @example
|
|
503
|
-
* ```ts
|
|
504
|
-
* fields: {
|
|
505
|
-
* visibility: createResponsiveVisibilityField({ label: 'Visibility' }),
|
|
506
|
-
* }
|
|
507
|
-
* ```
|
|
508
|
-
*/
|
|
509
|
-
declare function createResponsiveVisibilityField(config?: CreateResponsiveVisibilityFieldConfig): CustomField<VisibilityValue | null>;
|
|
510
|
-
|
|
511
|
-
interface AnimationFieldProps {
|
|
512
|
-
value: AnimationValue | null;
|
|
513
|
-
onChange: (value: AnimationValue | null) => void;
|
|
514
|
-
label?: string;
|
|
515
|
-
readOnly?: boolean;
|
|
516
|
-
/** Whether to show stagger controls (for container components) */
|
|
517
|
-
showStagger?: boolean;
|
|
518
|
-
}
|
|
519
|
-
declare function AnimationFieldInner({ value, onChange, label, readOnly, showStagger, }: AnimationFieldProps): react_jsx_runtime.JSX.Element;
|
|
520
|
-
declare const AnimationField: React__default.MemoExoticComponent<typeof AnimationFieldInner>;
|
|
521
|
-
interface CreateAnimationFieldConfig {
|
|
522
|
-
label?: string;
|
|
523
|
-
/** Whether to show stagger controls (for container components like Flex, Grid) */
|
|
524
|
-
showStagger?: boolean;
|
|
525
|
-
}
|
|
526
|
-
/**
|
|
527
|
-
* Creates a Puck field configuration for animation control
|
|
528
|
-
*
|
|
529
|
-
* @example
|
|
530
|
-
* ```ts
|
|
531
|
-
* fields: {
|
|
532
|
-
* animation: createAnimationField({ label: 'Animation' }),
|
|
533
|
-
* // For containers with child elements:
|
|
534
|
-
* animation: createAnimationField({ label: 'Animation', showStagger: true }),
|
|
535
|
-
* }
|
|
536
|
-
* ```
|
|
537
|
-
*/
|
|
538
|
-
declare function createAnimationField(config?: CreateAnimationFieldConfig): CustomField<AnimationValue | null>;
|
|
539
|
-
|
|
540
|
-
interface TransformFieldProps {
|
|
541
|
-
value: TransformValue | null;
|
|
542
|
-
onChange: (value: TransformValue | null) => void;
|
|
543
|
-
label?: string;
|
|
544
|
-
readOnly?: boolean;
|
|
545
|
-
}
|
|
546
|
-
declare function TransformFieldInner({ value, onChange, label, readOnly, }: TransformFieldProps): react_jsx_runtime.JSX.Element;
|
|
547
|
-
declare const TransformField: React__default.MemoExoticComponent<typeof TransformFieldInner>;
|
|
548
|
-
/**
|
|
549
|
-
* Creates a Puck field configuration for CSS transforms
|
|
550
|
-
*/
|
|
551
|
-
declare function createTransformField(config: {
|
|
552
|
-
label?: string;
|
|
553
|
-
}): CustomField<TransformValue | null>;
|
|
554
|
-
|
|
555
1
|
/**
|
|
556
2
|
* Custom Puck fields for the visual editor
|
|
557
3
|
*
|
|
558
4
|
* These fields provide enhanced editing experiences for specific content types.
|
|
559
5
|
*/
|
|
560
|
-
|
|
6
|
+
export * from './shared';
|
|
7
|
+
export { MediaField, createMediaField } from './MediaField';
|
|
8
|
+
export type { MediaReference } from './MediaField';
|
|
9
|
+
export { ColorPickerField, createColorPickerField, colorToRgba } from './ColorPickerField';
|
|
10
|
+
export { TiptapField, createTiptapField } from './TiptapField';
|
|
11
|
+
export { TiptapModal } from './TiptapModal';
|
|
12
|
+
export { TiptapModalField, createTiptapModalField } from './TiptapModalField';
|
|
13
|
+
export { PaddingField, createPaddingField } from './PaddingField';
|
|
14
|
+
export { MarginField, createMarginField } from './MarginField';
|
|
15
|
+
export type { MarginValue } from './MarginField';
|
|
16
|
+
export { BorderField, createBorderField } from './BorderField';
|
|
17
|
+
export { WidthField, createWidthField } from './WidthField';
|
|
18
|
+
export { DimensionsField, createDimensionsField } from './DimensionsField';
|
|
19
|
+
export { dimensionsValueToCSS, getDimensionsSummary, isLegacyWidthValue, migrateWidthValue, } from './shared';
|
|
20
|
+
export type { DimensionsValue, DimensionConstraint, DimensionsUnit, DimensionsMode, ContentAlignment, } from './shared';
|
|
21
|
+
export { LockedTextField, LockedRadioField, createLockedTextField, createLockedRadioField, lockedSlugField, lockedHomepageField, } from './LockedField';
|
|
22
|
+
export { AlignmentField, createAlignmentField } from './AlignmentField';
|
|
23
|
+
export type { Alignment } from './AlignmentField';
|
|
24
|
+
export { JustifyContentField, AlignItemsField, createJustifyContentField, createAlignItemsField, } from './FlexAlignmentField';
|
|
25
|
+
export type { JustifyContent, AlignItems } from './FlexAlignmentField';
|
|
26
|
+
export { VerticalAlignmentField, createVerticalAlignmentField } from './VerticalAlignmentField';
|
|
27
|
+
export type { VerticalAlignment } from './VerticalAlignmentField';
|
|
28
|
+
export { SizeField, createSizeField, sizeValueToCSS, getSizeClasses } from './SizeField';
|
|
29
|
+
export type { SizeValue, SizeMode, SizeUnit } from './SizeField';
|
|
30
|
+
export { GradientEditor } from './GradientEditor';
|
|
31
|
+
export { BackgroundField, createBackgroundField } from './BackgroundField';
|
|
32
|
+
export type { BackgroundValue, BackgroundImageValue, BackgroundOverlay, GradientValue, GradientStop, GradientMask, } from './shared';
|
|
33
|
+
export { backgroundValueToCSS, gradientValueToCSS, getBackgroundImageOpacity } from './shared';
|
|
34
|
+
export { ResponsiveField, createResponsiveField } from './ResponsiveField';
|
|
35
|
+
export type { Breakpoint, ResponsiveValue, VisibilityValue, ResponsiveCSSResult } from './shared';
|
|
36
|
+
export { BREAKPOINTS, isResponsiveValue, responsiveValueToCSS, cssPropertiesToString, visibilityValueToCSS, DEFAULT_VISIBILITY, } from './shared';
|
|
37
|
+
export { ResponsiveVisibilityField, createResponsiveVisibilityField, } from './ResponsiveVisibilityField';
|
|
38
|
+
export { AnimationField, createAnimationField } from './AnimationField';
|
|
39
|
+
export type { AnimationValue, EasingFunction, AdvancedEasingFunction, EntranceAnimation, AnimationOrigin, AnimationCategory, StaggerConfig, StaggerDirection, } from './shared';
|
|
40
|
+
export { animationValueToCSS, getEntranceAnimationStyles, getAnimationCSSVariables, getDefaultEasingForAnimation, getRelevantIntensityControls, getStaggerDelay, generateStaggerStyles, EASING_CSS_MAP, ANIMATION_CATEGORIES, DEFAULT_ANIMATION, } from './shared';
|
|
41
|
+
export { TransformField, createTransformField } from './TransformField';
|
|
42
|
+
export type { TransformValue, TransformOrigin } from './shared';
|
|
43
|
+
export { transformValueToCSS, DEFAULT_TRANSFORM } from './shared';
|
|
561
44
|
/**
|
|
562
45
|
* CSS styles for rendering rich text content on the frontend.
|
|
563
46
|
* Include this in your app's global styles or inject via <style> tag.
|
|
@@ -578,7 +61,7 @@ declare function createTransformField(config: {
|
|
|
578
61
|
* }
|
|
579
62
|
* ```
|
|
580
63
|
*/
|
|
581
|
-
declare const RICHTEXT_OUTPUT_CSS = "\n.richtext-output { font-size: 1.125rem; line-height: 1.75; color: inherit; }\n.richtext-output h1 { margin-top: 2rem; margin-bottom: 1rem; font-weight: 700; font-size: 2.25rem; line-height: 1.2; }\n.richtext-output h2 { margin-top: 2rem; margin-bottom: 1rem; font-weight: 700; font-size: 1.875rem; line-height: 1.25; }\n.richtext-output h3 { margin-top: 2rem; margin-bottom: 1rem; font-weight: 700; font-size: 1.5rem; line-height: 1.3; }\n.richtext-output h4 { margin-top: 2rem; margin-bottom: 1rem; font-weight: 700; font-size: 1.25rem; line-height: 1.35; }\n.richtext-output h5, .richtext-output h6 { margin-top: 2rem; margin-bottom: 1rem; font-weight: 700; }\n.richtext-output h1:first-child, .richtext-output h2:first-child, .richtext-output h3:first-child,\n.richtext-output h4:first-child, .richtext-output h5:first-child, .richtext-output h6:first-child { margin-top: 0; }\n.richtext-output p { margin-bottom: 1.25rem; }\n.richtext-output p:last-child { margin-bottom: 0; }\n.richtext-output ul { margin-bottom: 1.25rem; padding-left: 2rem; list-style-type: disc !important; }\n.richtext-output ol { margin-bottom: 1.25rem; padding-left: 2rem; list-style-type: decimal !important; }\n.richtext-output li { margin-bottom: 0.5rem; }\n.richtext-output li::marker { color: currentColor; }\n.richtext-output ul ul, .richtext-output ol ul { list-style-type: circle !important; margin-top: 0.5rem; margin-bottom: 0; }\n.richtext-output ol ol, .richtext-output ul ol { list-style-type: lower-alpha !important; margin-top: 0.5rem; margin-bottom: 0; }\n.richtext-output blockquote { margin: 1.5rem 0; padding-left: 1.5rem; border-left: 4px solid #e5e7eb; font-style: italic; }\n.richtext-output a { color: #2563eb; text-decoration: underline; }\n.richtext-output a:hover { opacity: 0.8; }\n.richtext-output code { background-color: #f3f4f6; padding: 0.125rem 0.25rem; border-radius: 0.25rem; font-size: 0.875rem; }\n.richtext-output mark { background-color: #fef08a; padding: 0.125rem 0.25rem; border-radius: 0.125rem; }\n.richtext-output s, .richtext-output strike { text-decoration: line-through; }\n.richtext-output sup { vertical-align: super; font-size: 0.75em; }\n.richtext-output sub { vertical-align: sub; font-size: 0.75em; }\n.richtext-output hr { border: none; border-top: 2px solid #e5e7eb; margin: 2rem 0; }\n@media (max-width: 768px) {\n .richtext-output { font-size: 1rem; }\n .richtext-output h1 { font-size: 1.875rem; }\n .richtext-output h2 { font-size: 1.5rem; }\n .richtext-output h3 { font-size: 1.25rem; }\n}\n";
|
|
64
|
+
export declare const RICHTEXT_OUTPUT_CSS = "\n.richtext-output { font-size: 1.125rem; line-height: 1.75; color: inherit; }\n.richtext-output h1 { margin-top: 2rem; margin-bottom: 1rem; font-weight: 700; font-size: 2.25rem; line-height: 1.2; }\n.richtext-output h2 { margin-top: 2rem; margin-bottom: 1rem; font-weight: 700; font-size: 1.875rem; line-height: 1.25; }\n.richtext-output h3 { margin-top: 2rem; margin-bottom: 1rem; font-weight: 700; font-size: 1.5rem; line-height: 1.3; }\n.richtext-output h4 { margin-top: 2rem; margin-bottom: 1rem; font-weight: 700; font-size: 1.25rem; line-height: 1.35; }\n.richtext-output h5, .richtext-output h6 { margin-top: 2rem; margin-bottom: 1rem; font-weight: 700; }\n.richtext-output h1:first-child, .richtext-output h2:first-child, .richtext-output h3:first-child,\n.richtext-output h4:first-child, .richtext-output h5:first-child, .richtext-output h6:first-child { margin-top: 0; }\n.richtext-output p { margin-bottom: 1.25rem; }\n.richtext-output p:last-child { margin-bottom: 0; }\n.richtext-output ul { margin-bottom: 1.25rem; padding-left: 2rem; list-style-type: disc !important; }\n.richtext-output ol { margin-bottom: 1.25rem; padding-left: 2rem; list-style-type: decimal !important; }\n.richtext-output li { margin-bottom: 0.5rem; }\n.richtext-output li::marker { color: currentColor; }\n.richtext-output ul ul, .richtext-output ol ul { list-style-type: circle !important; margin-top: 0.5rem; margin-bottom: 0; }\n.richtext-output ol ol, .richtext-output ul ol { list-style-type: lower-alpha !important; margin-top: 0.5rem; margin-bottom: 0; }\n.richtext-output blockquote { margin: 1.5rem 0; padding-left: 1.5rem; border-left: 4px solid #e5e7eb; font-style: italic; }\n.richtext-output a { color: #2563eb; text-decoration: underline; }\n.richtext-output a:hover { opacity: 0.8; }\n.richtext-output code { background-color: #f3f4f6; padding: 0.125rem 0.25rem; border-radius: 0.25rem; font-size: 0.875rem; }\n.richtext-output mark { background-color: #fef08a; padding: 0.125rem 0.25rem; border-radius: 0.125rem; }\n.richtext-output s, .richtext-output strike { text-decoration: line-through; }\n.richtext-output sup { vertical-align: super; font-size: 0.75em; }\n.richtext-output sub { vertical-align: sub; font-size: 0.75em; }\n.richtext-output hr { border: none; border-top: 2px solid #e5e7eb; margin: 2rem 0; }\n@media (max-width: 768px) {\n .richtext-output { font-size: 1rem; }\n .richtext-output h1 { font-size: 1.875rem; }\n .richtext-output h2 { font-size: 1.5rem; }\n .richtext-output h3 { font-size: 1.25rem; }\n}\n";
|
|
582
65
|
/**
|
|
583
66
|
* Injects rich text output styles into the document head.
|
|
584
67
|
* Call this on the client-side to ensure styles are loaded.
|
|
@@ -595,6 +78,8 @@ declare const RICHTEXT_OUTPUT_CSS = "\n.richtext-output { font-size: 1.125rem; l
|
|
|
595
78
|
* }
|
|
596
79
|
* ```
|
|
597
80
|
*/
|
|
598
|
-
declare function injectRichtextStyles(): void;
|
|
599
|
-
|
|
600
|
-
export {
|
|
81
|
+
export declare function injectRichtextStyles(): void;
|
|
82
|
+
export { FolderPickerField, createFolderPickerField } from './FolderPickerField';
|
|
83
|
+
export { PageSegmentField, createPageSegmentField } from './PageSegmentField';
|
|
84
|
+
export { SlugPreviewField, createSlugPreviewField } from './SlugPreviewField';
|
|
85
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/fields/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,cAAc,UAAU,CAAA;AAGxB,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAA;AAC3D,YAAY,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAElD,OAAO,EAAE,gBAAgB,EAAE,sBAAsB,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAA;AAE1F,OAAO,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAA;AAE9D,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,EAAE,gBAAgB,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAA;AAE7E,OAAO,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAA;AAEjE,OAAO,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAA;AAC9D,YAAY,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAEhD,OAAO,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAA;AAE9D,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAA;AAE3D,OAAO,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAA;AAC1E,OAAO,EACL,oBAAoB,EACpB,oBAAoB,EACpB,kBAAkB,EAClB,iBAAiB,GAClB,MAAM,UAAU,CAAA;AACjB,YAAY,EACV,eAAe,EACf,mBAAmB,EACnB,cAAc,EACd,cAAc,EACd,gBAAgB,GACjB,MAAM,UAAU,CAAA;AAEjB,OAAO,EACL,eAAe,EACf,gBAAgB,EAChB,qBAAqB,EACrB,sBAAsB,EACtB,eAAe,EACf,mBAAmB,GACpB,MAAM,eAAe,CAAA;AAEtB,OAAO,EAAE,cAAc,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAA;AACvE,YAAY,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAA;AAEjD,OAAO,EACL,mBAAmB,EACnB,eAAe,EACf,yBAAyB,EACzB,qBAAqB,GACtB,MAAM,sBAAsB,CAAA;AAC7B,YAAY,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AAEtE,OAAO,EAAE,sBAAsB,EAAE,4BAA4B,EAAE,MAAM,0BAA0B,CAAA;AAC/F,YAAY,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAA;AAEjE,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AACxF,YAAY,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AAEhE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAEjD,OAAO,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAA;AAC1E,YAAY,EACV,eAAe,EACf,oBAAoB,EACpB,iBAAiB,EACjB,aAAa,EACb,YAAY,EACZ,YAAY,GACb,MAAM,UAAU,CAAA;AACjB,OAAO,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,yBAAyB,EAAE,MAAM,UAAU,CAAA;AAE9F,OAAO,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAA;AAC1E,YAAY,EAAE,UAAU,EAAE,eAAe,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAA;AACjG,OAAO,EACL,WAAW,EACX,iBAAiB,EACjB,oBAAoB,EACpB,qBAAqB,EACrB,oBAAoB,EACpB,kBAAkB,GACnB,MAAM,UAAU,CAAA;AAEjB,OAAO,EACL,yBAAyB,EACzB,+BAA+B,GAChC,MAAM,6BAA6B,CAAA;AAEpC,OAAO,EAAE,cAAc,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAA;AACvE,YAAY,EACV,cAAc,EACd,cAAc,EACd,sBAAsB,EACtB,iBAAiB,EACjB,eAAe,EACf,iBAAiB,EACjB,aAAa,EACb,gBAAgB,GACjB,MAAM,UAAU,CAAA;AACjB,OAAO,EACL,mBAAmB,EACnB,0BAA0B,EAC1B,wBAAwB,EACxB,4BAA4B,EAC5B,4BAA4B,EAC5B,eAAe,EACf,qBAAqB,EACrB,cAAc,EACd,oBAAoB,EACpB,iBAAiB,GAClB,MAAM,UAAU,CAAA;AAEjB,OAAO,EAAE,cAAc,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAA;AACvE,YAAY,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,UAAU,CAAA;AAC/D,OAAO,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAA;AAMjE;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,mBAAmB,4+EAgC/B,CAAA;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,oBAAoB,SASnC;AAMD,OAAO,EAAE,iBAAiB,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAA;AAChF,OAAO,EAAE,gBAAgB,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAA;AAC7E,OAAO,EAAE,gBAAgB,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAA"}
|