@delmaredigital/payload-puck 0.2.0 → 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 +349 -1370
- 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 -216
- package/dist/components/index.d.ts.map +1 -0
- package/dist/components/index.js +15 -9262
- 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 -9462
- 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 -2119
- 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 -4625
- 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 -7704
- package/dist/fields/index.js.map +1 -0
- package/dist/fields/richtext-output.css +219 -0
- package/dist/{shared-X9UpCJKW.d.mts → fields/shared.d.ts} +111 -132
- 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 -2253
- 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 +51 -74
- 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 -219
- package/dist/components/index.mjs +0 -9216
- package/dist/config/config.editor.css +0 -339
- package/dist/config/config.editor.d.mts +0 -153
- package/dist/config/config.editor.mjs +0 -9445
- package/dist/config/index.d.mts +0 -68
- package/dist/config/index.mjs +0 -2099
- package/dist/editor/index.d.mts +0 -784
- package/dist/editor/index.mjs +0 -4592
- package/dist/fields/index.d.mts +0 -600
- package/dist/fields/index.mjs +0 -7588
- 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 -2231
- package/dist/shared-X9UpCJKW.d.ts +0 -548
- 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
|
@@ -1,339 +0,0 @@
|
|
|
1
|
-
/* src/fields/tiptap-styles.css */
|
|
2
|
-
.tiptap-editor {
|
|
3
|
-
min-height: 200px;
|
|
4
|
-
outline: none;
|
|
5
|
-
}
|
|
6
|
-
.tiptap-editor:focus {
|
|
7
|
-
outline: none;
|
|
8
|
-
}
|
|
9
|
-
.tiptap-editor p {
|
|
10
|
-
margin: 0 0 1em 0;
|
|
11
|
-
}
|
|
12
|
-
.tiptap-editor p:last-child {
|
|
13
|
-
margin-bottom: 0;
|
|
14
|
-
}
|
|
15
|
-
.tiptap-editor h1 {
|
|
16
|
-
font-size: 2em !important;
|
|
17
|
-
font-weight: 700 !important;
|
|
18
|
-
margin: 1em 0 0.5em 0;
|
|
19
|
-
}
|
|
20
|
-
.tiptap-editor h1:first-child {
|
|
21
|
-
margin-top: 0;
|
|
22
|
-
}
|
|
23
|
-
.tiptap-editor h2 {
|
|
24
|
-
font-size: 1.5em !important;
|
|
25
|
-
font-weight: 700 !important;
|
|
26
|
-
margin: 1em 0 0.5em 0;
|
|
27
|
-
}
|
|
28
|
-
.tiptap-editor h2:first-child {
|
|
29
|
-
margin-top: 0;
|
|
30
|
-
}
|
|
31
|
-
.tiptap-editor h3 {
|
|
32
|
-
font-size: 1.25em !important;
|
|
33
|
-
font-weight: 600 !important;
|
|
34
|
-
margin: 1em 0 0.5em 0;
|
|
35
|
-
}
|
|
36
|
-
.tiptap-editor h3:first-child {
|
|
37
|
-
margin-top: 0;
|
|
38
|
-
}
|
|
39
|
-
.tiptap-editor h4 {
|
|
40
|
-
font-size: 1.1em !important;
|
|
41
|
-
font-weight: 600 !important;
|
|
42
|
-
margin: 1em 0 0.5em 0;
|
|
43
|
-
}
|
|
44
|
-
.tiptap-editor h4:first-child {
|
|
45
|
-
margin-top: 0;
|
|
46
|
-
}
|
|
47
|
-
.tiptap-editor h5 {
|
|
48
|
-
font-size: 1em !important;
|
|
49
|
-
font-weight: 600 !important;
|
|
50
|
-
margin: 1em 0 0.5em 0;
|
|
51
|
-
}
|
|
52
|
-
.tiptap-editor h5:first-child {
|
|
53
|
-
margin-top: 0;
|
|
54
|
-
}
|
|
55
|
-
.tiptap-editor h6 {
|
|
56
|
-
font-size: 0.9em !important;
|
|
57
|
-
font-weight: 600 !important;
|
|
58
|
-
margin: 1em 0 0.5em 0;
|
|
59
|
-
color: hsl(var(--muted-foreground, 220 9% 46%));
|
|
60
|
-
}
|
|
61
|
-
.tiptap-editor h6:first-child {
|
|
62
|
-
margin-top: 0;
|
|
63
|
-
}
|
|
64
|
-
.tiptap-editor ul,
|
|
65
|
-
.tiptap-editor ol {
|
|
66
|
-
padding-left: 1.5em !important;
|
|
67
|
-
margin: 0 0 1em 0;
|
|
68
|
-
}
|
|
69
|
-
.tiptap-editor ul:last-child,
|
|
70
|
-
.tiptap-editor ol:last-child {
|
|
71
|
-
margin-bottom: 0;
|
|
72
|
-
}
|
|
73
|
-
.tiptap-editor ul {
|
|
74
|
-
list-style-type: disc !important;
|
|
75
|
-
}
|
|
76
|
-
.tiptap-editor ol {
|
|
77
|
-
list-style-type: decimal !important;
|
|
78
|
-
}
|
|
79
|
-
.tiptap-editor li {
|
|
80
|
-
margin: 0.25em 0;
|
|
81
|
-
}
|
|
82
|
-
.tiptap-editor li p {
|
|
83
|
-
margin: 0;
|
|
84
|
-
}
|
|
85
|
-
.tiptap-editor blockquote {
|
|
86
|
-
border-left: 4px solid hsl(var(--border, 220 13% 91%)) !important;
|
|
87
|
-
padding-left: 1em !important;
|
|
88
|
-
margin: 1em 0 !important;
|
|
89
|
-
font-style: italic !important;
|
|
90
|
-
color: hsl(var(--muted-foreground, 220 9% 46%));
|
|
91
|
-
}
|
|
92
|
-
.tiptap-editor a {
|
|
93
|
-
color: hsl(var(--primary, 221 83% 53%));
|
|
94
|
-
text-decoration: underline;
|
|
95
|
-
cursor: pointer;
|
|
96
|
-
}
|
|
97
|
-
.tiptap-editor a:hover {
|
|
98
|
-
color: hsl(var(--primary, 221 83% 53%) / 0.8);
|
|
99
|
-
}
|
|
100
|
-
.tiptap-editor code {
|
|
101
|
-
background-color: hsl(var(--muted, 220 14% 96%));
|
|
102
|
-
padding: 0.125em 0.25em;
|
|
103
|
-
border-radius: 0.25em;
|
|
104
|
-
font-family: monospace;
|
|
105
|
-
font-size: 0.9em;
|
|
106
|
-
}
|
|
107
|
-
.tiptap-editor p.is-editor-empty:first-child::before {
|
|
108
|
-
content: attr(data-placeholder);
|
|
109
|
-
float: left;
|
|
110
|
-
color: hsl(var(--muted-foreground, 220 9% 46%));
|
|
111
|
-
pointer-events: none;
|
|
112
|
-
height: 0;
|
|
113
|
-
}
|
|
114
|
-
.ProseMirror:focus {
|
|
115
|
-
outline: none;
|
|
116
|
-
}
|
|
117
|
-
.tiptap-editor ::selection {
|
|
118
|
-
background-color: #b4d5fe;
|
|
119
|
-
}
|
|
120
|
-
.tiptap-editor [style*="text-align: center"] {
|
|
121
|
-
text-align: center;
|
|
122
|
-
}
|
|
123
|
-
.tiptap-editor [style*="text-align: right"] {
|
|
124
|
-
text-align: right;
|
|
125
|
-
}
|
|
126
|
-
.tiptap-editor [style*="text-align: left"] {
|
|
127
|
-
text-align: left;
|
|
128
|
-
}
|
|
129
|
-
.tiptap-editor u {
|
|
130
|
-
text-decoration: underline;
|
|
131
|
-
}
|
|
132
|
-
.tiptap-editor s {
|
|
133
|
-
text-decoration: line-through;
|
|
134
|
-
}
|
|
135
|
-
.tiptap-editor mark {
|
|
136
|
-
background-color: #fef08a;
|
|
137
|
-
padding: 0.125rem 0.25rem;
|
|
138
|
-
border-radius: 0.125rem;
|
|
139
|
-
}
|
|
140
|
-
.tiptap-editor sup {
|
|
141
|
-
vertical-align: super;
|
|
142
|
-
font-size: 0.75em;
|
|
143
|
-
}
|
|
144
|
-
.tiptap-editor sub {
|
|
145
|
-
vertical-align: sub;
|
|
146
|
-
font-size: 0.75em;
|
|
147
|
-
}
|
|
148
|
-
.tiptap-editor hr {
|
|
149
|
-
border: none;
|
|
150
|
-
border-top: 2px solid hsl(var(--border, 220 13% 91%));
|
|
151
|
-
margin: 1.5em 0;
|
|
152
|
-
}
|
|
153
|
-
.tiptap-editor [style*="text-align: justify"] {
|
|
154
|
-
text-align: justify;
|
|
155
|
-
}
|
|
156
|
-
.richtext-inline-editor {
|
|
157
|
-
position: relative;
|
|
158
|
-
}
|
|
159
|
-
.richtext-inline-editor .tiptap-editor {
|
|
160
|
-
cursor: text;
|
|
161
|
-
}
|
|
162
|
-
.richtext-inline-editor:focus-within {
|
|
163
|
-
outline: none;
|
|
164
|
-
}
|
|
165
|
-
.richtext-inline-editor .ProseMirror {
|
|
166
|
-
min-height: 40px;
|
|
167
|
-
outline: none;
|
|
168
|
-
}
|
|
169
|
-
.richtext-inline-editor .ProseMirror p.is-editor-empty:first-child::before {
|
|
170
|
-
content: "Click to start editing...";
|
|
171
|
-
color: hsl(var(--muted-foreground, 220 9% 46%));
|
|
172
|
-
pointer-events: none;
|
|
173
|
-
float: left;
|
|
174
|
-
height: 0;
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
/* src/fields/richtext-output.css */
|
|
178
|
-
.richtext-output {
|
|
179
|
-
font-size: 1.125rem;
|
|
180
|
-
line-height: 1.75;
|
|
181
|
-
color: inherit;
|
|
182
|
-
}
|
|
183
|
-
.richtext-output h1 {
|
|
184
|
-
margin-top: 2rem;
|
|
185
|
-
margin-bottom: 1rem;
|
|
186
|
-
font-weight: 700;
|
|
187
|
-
font-size: 2.25rem;
|
|
188
|
-
line-height: 1.2;
|
|
189
|
-
}
|
|
190
|
-
.richtext-output h1:first-child {
|
|
191
|
-
margin-top: 0;
|
|
192
|
-
}
|
|
193
|
-
.richtext-output h2 {
|
|
194
|
-
margin-top: 2rem;
|
|
195
|
-
margin-bottom: 1rem;
|
|
196
|
-
font-weight: 700;
|
|
197
|
-
font-size: 1.875rem;
|
|
198
|
-
line-height: 1.25;
|
|
199
|
-
}
|
|
200
|
-
.richtext-output h2:first-child {
|
|
201
|
-
margin-top: 0;
|
|
202
|
-
}
|
|
203
|
-
.richtext-output h3 {
|
|
204
|
-
margin-top: 2rem;
|
|
205
|
-
margin-bottom: 1rem;
|
|
206
|
-
font-weight: 700;
|
|
207
|
-
font-size: 1.5rem;
|
|
208
|
-
line-height: 1.3;
|
|
209
|
-
}
|
|
210
|
-
.richtext-output h3:first-child {
|
|
211
|
-
margin-top: 0;
|
|
212
|
-
}
|
|
213
|
-
.richtext-output h4 {
|
|
214
|
-
margin-top: 2rem;
|
|
215
|
-
margin-bottom: 1rem;
|
|
216
|
-
font-weight: 700;
|
|
217
|
-
font-size: 1.25rem;
|
|
218
|
-
line-height: 1.35;
|
|
219
|
-
}
|
|
220
|
-
.richtext-output h4:first-child {
|
|
221
|
-
margin-top: 0;
|
|
222
|
-
}
|
|
223
|
-
.richtext-output h5,
|
|
224
|
-
.richtext-output h6 {
|
|
225
|
-
margin-top: 2rem;
|
|
226
|
-
margin-bottom: 1rem;
|
|
227
|
-
font-weight: 700;
|
|
228
|
-
}
|
|
229
|
-
.richtext-output h5:first-child,
|
|
230
|
-
.richtext-output h6:first-child {
|
|
231
|
-
margin-top: 0;
|
|
232
|
-
}
|
|
233
|
-
.richtext-output p {
|
|
234
|
-
margin-bottom: 1.25rem;
|
|
235
|
-
}
|
|
236
|
-
.richtext-output p:last-child {
|
|
237
|
-
margin-bottom: 0;
|
|
238
|
-
}
|
|
239
|
-
.richtext-output ul {
|
|
240
|
-
margin-bottom: 1.25rem;
|
|
241
|
-
padding-left: 2rem;
|
|
242
|
-
list-style-type: disc !important;
|
|
243
|
-
}
|
|
244
|
-
.richtext-output ol {
|
|
245
|
-
margin-bottom: 1.25rem;
|
|
246
|
-
padding-left: 2rem;
|
|
247
|
-
list-style-type: decimal !important;
|
|
248
|
-
}
|
|
249
|
-
.richtext-output li {
|
|
250
|
-
margin-bottom: 0.5rem;
|
|
251
|
-
}
|
|
252
|
-
.richtext-output li::marker {
|
|
253
|
-
color: currentColor;
|
|
254
|
-
}
|
|
255
|
-
.richtext-output ul ul,
|
|
256
|
-
.richtext-output ol ul {
|
|
257
|
-
list-style-type: circle !important;
|
|
258
|
-
margin-top: 0.5rem;
|
|
259
|
-
margin-bottom: 0;
|
|
260
|
-
}
|
|
261
|
-
.richtext-output ul ul ul,
|
|
262
|
-
.richtext-output ol ul ul {
|
|
263
|
-
list-style-type: square !important;
|
|
264
|
-
}
|
|
265
|
-
.richtext-output ol ol,
|
|
266
|
-
.richtext-output ul ol {
|
|
267
|
-
list-style-type: lower-alpha !important;
|
|
268
|
-
margin-top: 0.5rem;
|
|
269
|
-
margin-bottom: 0;
|
|
270
|
-
}
|
|
271
|
-
.richtext-output blockquote {
|
|
272
|
-
margin: 1.5rem 0;
|
|
273
|
-
padding-left: 1.5rem;
|
|
274
|
-
border-left: 4px solid hsl(var(--border, 220 13% 91%));
|
|
275
|
-
font-style: italic;
|
|
276
|
-
}
|
|
277
|
-
.richtext-output a {
|
|
278
|
-
color: hsl(var(--primary, 221 83% 53%));
|
|
279
|
-
text-decoration: underline;
|
|
280
|
-
}
|
|
281
|
-
.richtext-output a:hover {
|
|
282
|
-
opacity: 0.8;
|
|
283
|
-
}
|
|
284
|
-
.richtext-output code {
|
|
285
|
-
background-color: hsl(var(--muted, 220 14% 96%));
|
|
286
|
-
padding: 0.125rem 0.25rem;
|
|
287
|
-
border-radius: 0.25rem;
|
|
288
|
-
font-size: 0.875rem;
|
|
289
|
-
}
|
|
290
|
-
.richtext-output mark {
|
|
291
|
-
background-color: #fef08a;
|
|
292
|
-
padding: 0.125rem 0.25rem;
|
|
293
|
-
border-radius: 0.125rem;
|
|
294
|
-
}
|
|
295
|
-
.richtext-output s,
|
|
296
|
-
.richtext-output strike {
|
|
297
|
-
text-decoration: line-through;
|
|
298
|
-
}
|
|
299
|
-
.richtext-output .text-left {
|
|
300
|
-
text-align: left;
|
|
301
|
-
}
|
|
302
|
-
.richtext-output .text-center {
|
|
303
|
-
text-align: center;
|
|
304
|
-
}
|
|
305
|
-
.richtext-output .text-right {
|
|
306
|
-
text-align: right;
|
|
307
|
-
}
|
|
308
|
-
.richtext-output .text-justify,
|
|
309
|
-
.richtext-output [style*="text-align: justify"] {
|
|
310
|
-
text-align: justify;
|
|
311
|
-
}
|
|
312
|
-
.richtext-output sup {
|
|
313
|
-
vertical-align: super;
|
|
314
|
-
font-size: 0.75em;
|
|
315
|
-
}
|
|
316
|
-
.richtext-output sub {
|
|
317
|
-
vertical-align: sub;
|
|
318
|
-
font-size: 0.75em;
|
|
319
|
-
}
|
|
320
|
-
.richtext-output hr {
|
|
321
|
-
border: none;
|
|
322
|
-
border-top: 2px solid hsl(var(--border, 220 13% 91%));
|
|
323
|
-
margin: 2rem 0;
|
|
324
|
-
}
|
|
325
|
-
@media (max-width: 768px) {
|
|
326
|
-
.richtext-output {
|
|
327
|
-
font-size: 1rem;
|
|
328
|
-
}
|
|
329
|
-
.richtext-output h1 {
|
|
330
|
-
font-size: 1.875rem;
|
|
331
|
-
}
|
|
332
|
-
.richtext-output h2 {
|
|
333
|
-
font-size: 1.5rem;
|
|
334
|
-
}
|
|
335
|
-
.richtext-output h3 {
|
|
336
|
-
font-size: 1.25rem;
|
|
337
|
-
}
|
|
338
|
-
}
|
|
339
|
-
/*# sourceMappingURL=index.css.map */
|
|
@@ -1,219 +0,0 @@
|
|
|
1
|
-
import { ComponentConfig } from '@measured/puck';
|
|
2
|
-
import { R as ResponsiveValue, D as DimensionsValue, P as PaddingValue, V as VisibilityValue } from '../shared-X9UpCJKW.mjs';
|
|
3
|
-
export { AnimatedWrapper, AnimatedWrapperProps } from '../AnimatedWrapper.mjs';
|
|
4
|
-
import 'react/jsx-runtime';
|
|
5
|
-
import 'react';
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* Container Component - Puck Configuration
|
|
9
|
-
*
|
|
10
|
-
* Simple organizational wrapper for grouping content.
|
|
11
|
-
* Uses Puck's slot system for nesting other components.
|
|
12
|
-
*
|
|
13
|
-
* For two-layer layouts (full-bleed background with constrained content),
|
|
14
|
-
* use the Section component instead.
|
|
15
|
-
*
|
|
16
|
-
* Responsive Controls:
|
|
17
|
-
* - dimensions: Different max-width/min-height at different breakpoints
|
|
18
|
-
* - padding: Different padding at different breakpoints
|
|
19
|
-
* - margin: Different margins at different breakpoints
|
|
20
|
-
* - visibility: Show/hide at different breakpoints
|
|
21
|
-
*/
|
|
22
|
-
|
|
23
|
-
declare const ContainerConfig: ComponentConfig;
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
* Flex Component - Puck Configuration
|
|
27
|
-
*
|
|
28
|
-
* Flexbox layout following official Puck demo patterns.
|
|
29
|
-
* Uses Tailwind classes for layout, inline styles for dynamic user values.
|
|
30
|
-
*
|
|
31
|
-
* Supports both preset options and advanced custom styling:
|
|
32
|
-
* - Background: unified BackgroundField (solid, gradient, or image)
|
|
33
|
-
* - Advanced: customPadding, customWidth, border
|
|
34
|
-
*
|
|
35
|
-
* Responsive Controls:
|
|
36
|
-
* - dimensions: Different dimensions at different breakpoints
|
|
37
|
-
* - customPadding: Different padding at different breakpoints
|
|
38
|
-
* - margin: Different margins at different breakpoints
|
|
39
|
-
* - visibility: Show/hide at different breakpoints
|
|
40
|
-
*/
|
|
41
|
-
|
|
42
|
-
declare const FlexConfig: ComponentConfig;
|
|
43
|
-
|
|
44
|
-
/**
|
|
45
|
-
* Grid Component - Puck Configuration
|
|
46
|
-
*
|
|
47
|
-
* CSS Grid layout following official Puck demo patterns.
|
|
48
|
-
* Responsive: stacks on mobile (flex column), grid on desktop (md+).
|
|
49
|
-
* Uses Tailwind classes for layout, inline styles for dynamic user values.
|
|
50
|
-
*
|
|
51
|
-
* Supports both preset options and advanced custom styling:
|
|
52
|
-
* - Background: unified BackgroundField (solid, gradient, or image)
|
|
53
|
-
* - Advanced: customPadding, customWidth, border
|
|
54
|
-
*
|
|
55
|
-
* Responsive Controls:
|
|
56
|
-
* - gap: Different gap at different breakpoints
|
|
57
|
-
* - visibility: Show/hide at different breakpoints
|
|
58
|
-
*/
|
|
59
|
-
|
|
60
|
-
declare const GridConfig: ComponentConfig;
|
|
61
|
-
|
|
62
|
-
/**
|
|
63
|
-
* Section Component - Puck Configuration
|
|
64
|
-
*
|
|
65
|
-
* Full-width section with two-layer architecture:
|
|
66
|
-
* - Section layer (outer): Full-bleed background, border, padding, margin
|
|
67
|
-
* - Content layer (inner): Constrained content area with max-width, background, border, padding
|
|
68
|
-
*
|
|
69
|
-
* This design enables common patterns like hero sections with full-bleed backgrounds
|
|
70
|
-
* but centered content.
|
|
71
|
-
*
|
|
72
|
-
* Responsive Controls:
|
|
73
|
-
* - contentDimensions: Different max-width/min-height at different breakpoints
|
|
74
|
-
* - sectionPadding: Different section padding at different breakpoints
|
|
75
|
-
* - contentPadding: Different content padding at different breakpoints
|
|
76
|
-
* - sectionMargin: Different margins at different breakpoints
|
|
77
|
-
* - visibility: Show/hide at different breakpoints
|
|
78
|
-
*/
|
|
79
|
-
|
|
80
|
-
declare const SectionConfig: ComponentConfig;
|
|
81
|
-
|
|
82
|
-
/**
|
|
83
|
-
* Spacer Component - Puck Configuration
|
|
84
|
-
*
|
|
85
|
-
* Simple spacing component for adding vertical or horizontal space.
|
|
86
|
-
* Uses Tailwind classes for layout and sizing from predefined options.
|
|
87
|
-
*
|
|
88
|
-
* Responsive Controls:
|
|
89
|
-
* - visibility: Show/hide at different breakpoints
|
|
90
|
-
*/
|
|
91
|
-
|
|
92
|
-
declare const SpacerConfig: ComponentConfig;
|
|
93
|
-
|
|
94
|
-
/**
|
|
95
|
-
* Template Component - Puck Configuration
|
|
96
|
-
*
|
|
97
|
-
* A reusable template container that allows saving and loading
|
|
98
|
-
* pre-configured component arrangements from the Payload CMS.
|
|
99
|
-
*
|
|
100
|
-
* Use this component to:
|
|
101
|
-
* - Create reusable page sections
|
|
102
|
-
* - Save common component patterns as templates
|
|
103
|
-
* - Quickly load pre-built layouts
|
|
104
|
-
*
|
|
105
|
-
* Responsive Controls:
|
|
106
|
-
* - dimensions: Different dimensions at different breakpoints
|
|
107
|
-
* - customPadding: Different padding at different breakpoints
|
|
108
|
-
* - margin: Different margins at different breakpoints
|
|
109
|
-
* - visibility: Show/hide at different breakpoints
|
|
110
|
-
*/
|
|
111
|
-
|
|
112
|
-
interface TemplateProps {
|
|
113
|
-
/** Slot for nested components */
|
|
114
|
-
content: unknown;
|
|
115
|
-
/** ID of the currently loaded template (or null if none) */
|
|
116
|
-
templateId: string | null;
|
|
117
|
-
/** Responsive dimensions */
|
|
118
|
-
dimensions: ResponsiveValue<DimensionsValue> | DimensionsValue | null;
|
|
119
|
-
/** Responsive padding */
|
|
120
|
-
customPadding: ResponsiveValue<PaddingValue> | PaddingValue | null;
|
|
121
|
-
/** Responsive margin */
|
|
122
|
-
margin: ResponsiveValue<PaddingValue> | PaddingValue | null;
|
|
123
|
-
/** Responsive visibility */
|
|
124
|
-
visibility: VisibilityValue | null;
|
|
125
|
-
}
|
|
126
|
-
declare const TemplateConfig: ComponentConfig;
|
|
127
|
-
|
|
128
|
-
/**
|
|
129
|
-
* Template Component - Server-safe Configuration
|
|
130
|
-
*
|
|
131
|
-
* A reusable template container for rendering nested components.
|
|
132
|
-
* This server-safe version excludes the TemplateField (which requires client-side APIs).
|
|
133
|
-
*
|
|
134
|
-
* For the full editor experience with template loading, use Template.tsx
|
|
135
|
-
*
|
|
136
|
-
* Responsive Controls:
|
|
137
|
-
* - dimensions: Different dimensions at different breakpoints
|
|
138
|
-
* - customPadding: Different padding at different breakpoints
|
|
139
|
-
* - margin: Different margins at different breakpoints
|
|
140
|
-
* - visibility: Show/hide at different breakpoints
|
|
141
|
-
*/
|
|
142
|
-
|
|
143
|
-
declare const TemplateServerConfig: ComponentConfig;
|
|
144
|
-
|
|
145
|
-
/**
|
|
146
|
-
* Heading Component - Puck Configuration
|
|
147
|
-
*
|
|
148
|
-
* H1-H6 headings with customizable styling.
|
|
149
|
-
* Supports custom margin for spacing control.
|
|
150
|
-
*/
|
|
151
|
-
|
|
152
|
-
declare const HeadingConfig: ComponentConfig;
|
|
153
|
-
|
|
154
|
-
/**
|
|
155
|
-
* Text Component - Puck Configuration
|
|
156
|
-
*
|
|
157
|
-
* Simple paragraph text with customizable styling.
|
|
158
|
-
*/
|
|
159
|
-
|
|
160
|
-
declare const TextConfig: ComponentConfig;
|
|
161
|
-
|
|
162
|
-
/**
|
|
163
|
-
* RichText Component - Puck Server Configuration
|
|
164
|
-
*
|
|
165
|
-
* Server-safe config for rendering. Uses a simple textarea for the field.
|
|
166
|
-
* The editor config (RichText.editor.tsx) uses Tiptap for the visual editor.
|
|
167
|
-
*/
|
|
168
|
-
|
|
169
|
-
declare const RichTextConfig: ComponentConfig;
|
|
170
|
-
|
|
171
|
-
declare const RichTextEditorConfig: ComponentConfig;
|
|
172
|
-
|
|
173
|
-
/**
|
|
174
|
-
* Image Component - Puck Configuration
|
|
175
|
-
*
|
|
176
|
-
* Standalone image block with optional link wrapper.
|
|
177
|
-
* Server-safe version using standard HTML img element.
|
|
178
|
-
*
|
|
179
|
-
* Responsive Controls:
|
|
180
|
-
* - visibility: Show/hide at different breakpoints
|
|
181
|
-
*/
|
|
182
|
-
|
|
183
|
-
declare const ImageConfig: ComponentConfig;
|
|
184
|
-
|
|
185
|
-
/**
|
|
186
|
-
* Button Component - Puck Configuration
|
|
187
|
-
*
|
|
188
|
-
* CTA button with customizable styling and link support.
|
|
189
|
-
*/
|
|
190
|
-
|
|
191
|
-
declare const ButtonConfig: ComponentConfig;
|
|
192
|
-
|
|
193
|
-
/**
|
|
194
|
-
* Card Component - Puck Configuration
|
|
195
|
-
*
|
|
196
|
-
* Content card with image, heading, and text.
|
|
197
|
-
*/
|
|
198
|
-
|
|
199
|
-
declare const CardConfig: ComponentConfig;
|
|
200
|
-
|
|
201
|
-
/**
|
|
202
|
-
* Divider Component - Puck Configuration
|
|
203
|
-
*
|
|
204
|
-
* Horizontal line separator with customizable style.
|
|
205
|
-
*/
|
|
206
|
-
|
|
207
|
-
declare const DividerConfig: ComponentConfig;
|
|
208
|
-
|
|
209
|
-
/**
|
|
210
|
-
* Accordion Component - Puck Configuration
|
|
211
|
-
*
|
|
212
|
-
* Expandable sections with collapsible content.
|
|
213
|
-
* Uses plain HTML/CSS for the accordion behavior.
|
|
214
|
-
* Supports custom margin for spacing control.
|
|
215
|
-
*/
|
|
216
|
-
|
|
217
|
-
declare const AccordionConfig: ComponentConfig;
|
|
218
|
-
|
|
219
|
-
export { AccordionConfig, ButtonConfig, CardConfig, ContainerConfig, DividerConfig, FlexConfig, GridConfig, HeadingConfig, ImageConfig, RichTextConfig, RichTextEditorConfig, SectionConfig, SpacerConfig, TemplateConfig, type TemplateProps, TemplateServerConfig, TextConfig };
|