@delmaredigital/payload-puck 0.1.1 → 0.1.3
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/LICENSE +21 -73
- package/README.md +1 -22
- package/package.json +3 -2
- package/dist/AccordionClient.js.map +0 -1
- package/dist/AccordionClient.mjs.map +0 -1
- package/dist/AnimatedWrapper.js.map +0 -1
- package/dist/AnimatedWrapper.mjs.map +0 -1
- package/dist/admin/client.js.map +0 -1
- package/dist/admin/client.mjs.map +0 -1
- package/dist/admin/index.js.map +0 -1
- package/dist/admin/index.mjs.map +0 -1
- package/dist/api/index.js.map +0 -1
- package/dist/api/index.mjs.map +0 -1
- package/dist/components/index.css.map +0 -1
- package/dist/components/index.js.map +0 -1
- package/dist/components/index.mjs.map +0 -1
- package/dist/config/config.editor.css.map +0 -1
- package/dist/config/config.editor.js.map +0 -1
- package/dist/config/config.editor.mjs.map +0 -1
- package/dist/config/index.js.map +0 -1
- package/dist/config/index.mjs.map +0 -1
- package/dist/editor/index.js.map +0 -1
- package/dist/editor/index.mjs.map +0 -1
- package/dist/fields/index.css.map +0 -1
- package/dist/fields/index.js.map +0 -1
- package/dist/fields/index.mjs.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/index.mjs.map +0 -1
- package/dist/layouts/index.js.map +0 -1
- package/dist/layouts/index.mjs.map +0 -1
- package/dist/plugin/index.js.map +0 -1
- package/dist/plugin/index.mjs.map +0 -1
- package/dist/render/index.js.map +0 -1
- package/dist/render/index.mjs.map +0 -1
- package/dist/theme/index.js.map +0 -1
- package/dist/theme/index.mjs.map +0 -1
- package/dist/utils/index.js.map +0 -1
- package/dist/utils/index.mjs.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/fields/tiptap-styles.css","../../src/fields/richtext-output.css"],"sourcesContent":["/* TipTap Editor Styles for Puck\n * Applied to the TipTap editor instance in the Puck sidebar.\n */\n\n/* Basic editor styles */\n.tiptap-editor {\n min-height: 200px;\n outline: none;\n}\n\n.tiptap-editor:focus {\n outline: none;\n}\n\n/* Paragraph styles */\n.tiptap-editor p {\n margin: 0 0 1em 0;\n}\n\n.tiptap-editor p:last-child {\n margin-bottom: 0;\n}\n\n/* Heading styles - use !important to override Tailwind preflight */\n.tiptap-editor h1 {\n font-size: 2em !important;\n font-weight: 700 !important;\n margin: 1em 0 0.5em 0;\n}\n\n.tiptap-editor h1:first-child {\n margin-top: 0;\n}\n\n.tiptap-editor h2 {\n font-size: 1.5em !important;\n font-weight: 700 !important;\n margin: 1em 0 0.5em 0;\n}\n\n.tiptap-editor h2:first-child {\n margin-top: 0;\n}\n\n.tiptap-editor h3 {\n font-size: 1.25em !important;\n font-weight: 600 !important;\n margin: 1em 0 0.5em 0;\n}\n\n.tiptap-editor h3:first-child {\n margin-top: 0;\n}\n\n.tiptap-editor h4 {\n font-size: 1.1em !important;\n font-weight: 600 !important;\n margin: 1em 0 0.5em 0;\n}\n\n.tiptap-editor h4:first-child {\n margin-top: 0;\n}\n\n.tiptap-editor h5 {\n font-size: 1em !important;\n font-weight: 600 !important;\n margin: 1em 0 0.5em 0;\n}\n\n.tiptap-editor h5:first-child {\n margin-top: 0;\n}\n\n.tiptap-editor h6 {\n font-size: 0.9em !important;\n font-weight: 600 !important;\n margin: 1em 0 0.5em 0;\n color: hsl(var(--muted-foreground, 220 9% 46%));\n}\n\n.tiptap-editor h6:first-child {\n margin-top: 0;\n}\n\n/* List styles - use !important to override Tailwind preflight */\n.tiptap-editor ul,\n.tiptap-editor ol {\n padding-left: 1.5em !important;\n margin: 0 0 1em 0;\n}\n\n.tiptap-editor ul:last-child,\n.tiptap-editor ol:last-child {\n margin-bottom: 0;\n}\n\n.tiptap-editor ul {\n list-style-type: disc !important;\n}\n\n.tiptap-editor ol {\n list-style-type: decimal !important;\n}\n\n.tiptap-editor li {\n margin: 0.25em 0;\n}\n\n.tiptap-editor li p {\n margin: 0;\n}\n\n/* Blockquote styles - use !important to override Tailwind preflight */\n.tiptap-editor blockquote {\n border-left: 4px solid hsl(var(--border, 220 13% 91%)) !important;\n padding-left: 1em !important;\n margin: 1em 0 !important;\n font-style: italic !important;\n color: hsl(var(--muted-foreground, 220 9% 46%));\n}\n\n/* Link styles - using primary color with fallback */\n.tiptap-editor a {\n color: hsl(var(--primary, 221 83% 53%));\n text-decoration: underline;\n cursor: pointer;\n}\n\n.tiptap-editor a:hover {\n color: hsl(var(--primary, 221 83% 53%) / 0.8);\n}\n\n/* Code styles - using muted background with fallback */\n.tiptap-editor code {\n background-color: hsl(var(--muted, 220 14% 96%));\n padding: 0.125em 0.25em;\n border-radius: 0.25em;\n font-family: monospace;\n font-size: 0.9em;\n}\n\n/* Placeholder */\n.tiptap-editor p.is-editor-empty:first-child::before {\n content: attr(data-placeholder);\n float: left;\n color: hsl(var(--muted-foreground, 220 9% 46%));\n pointer-events: none;\n height: 0;\n}\n\n/* Focus styles */\n.ProseMirror:focus {\n outline: none;\n}\n\n/* Selection styles */\n.tiptap-editor ::selection {\n background-color: #b4d5fe;\n}\n\n/* Text alignment */\n.tiptap-editor [style*=\"text-align: center\"] {\n text-align: center;\n}\n\n.tiptap-editor [style*=\"text-align: right\"] {\n text-align: right;\n}\n\n.tiptap-editor [style*=\"text-align: left\"] {\n text-align: left;\n}\n\n/* Underline */\n.tiptap-editor u {\n text-decoration: underline;\n}\n\n/* Strike */\n.tiptap-editor s {\n text-decoration: line-through;\n}\n\n/* Highlight mark - uses inline style for color, this is fallback */\n.tiptap-editor mark {\n background-color: #fef08a;\n padding: 0.125rem 0.25rem;\n border-radius: 0.125rem;\n}\n\n/* Superscript */\n.tiptap-editor sup {\n vertical-align: super;\n font-size: 0.75em;\n}\n\n/* Subscript */\n.tiptap-editor sub {\n vertical-align: sub;\n font-size: 0.75em;\n}\n\n/* Horizontal Rule */\n.tiptap-editor hr {\n border: none;\n border-top: 2px solid hsl(var(--border, 220 13% 91%));\n margin: 1.5em 0;\n}\n\n/* Justify alignment */\n.tiptap-editor [style*=\"text-align: justify\"] {\n text-align: justify;\n}\n\n/* =============================================================================\n Inline Editor Styles (for RichTextInlineEditor)\n ============================================================================= */\n\n/* Inline editor wrapper */\n.richtext-inline-editor {\n position: relative;\n}\n\n/* Make the editor content area clickable and editable */\n.richtext-inline-editor .tiptap-editor {\n cursor: text;\n}\n\n/* Subtle focus indicator for the entire editor area */\n.richtext-inline-editor:focus-within {\n outline: none;\n}\n\n/* Ensure editor content has appropriate sizing within inline context */\n.richtext-inline-editor .ProseMirror {\n min-height: 40px;\n outline: none;\n}\n\n/* Placeholder for empty inline editor */\n.richtext-inline-editor .ProseMirror p.is-editor-empty:first-child::before {\n content: 'Click to start editing...';\n color: hsl(var(--muted-foreground, 220 9% 46%));\n pointer-events: none;\n float: left;\n height: 0;\n}\n","/* Rich Text Output Styles\n * Applied to rendered rich text content in both Puck preview and frontend.\n * These styles ensure headings, lists, and other HTML elements display correctly.\n *\n * Theme-aware: Uses `color: inherit` by default so text adapts to dark/light mode.\n * Specific colors can be overridden via inline styles from Tiptap.\n */\n\n.richtext-output {\n font-size: 1.125rem;\n line-height: 1.75;\n color: inherit; /* Theme-aware: inherits from parent container */\n}\n\n/* Headings */\n.richtext-output h1 {\n margin-top: 2rem;\n margin-bottom: 1rem;\n font-weight: 700;\n font-size: 2.25rem;\n line-height: 1.2;\n}\n\n.richtext-output h1:first-child {\n margin-top: 0;\n}\n\n.richtext-output h2 {\n margin-top: 2rem;\n margin-bottom: 1rem;\n font-weight: 700;\n font-size: 1.875rem;\n line-height: 1.25;\n}\n\n.richtext-output h2:first-child {\n margin-top: 0;\n}\n\n.richtext-output h3 {\n margin-top: 2rem;\n margin-bottom: 1rem;\n font-weight: 700;\n font-size: 1.5rem;\n line-height: 1.3;\n}\n\n.richtext-output h3:first-child {\n margin-top: 0;\n}\n\n.richtext-output h4 {\n margin-top: 2rem;\n margin-bottom: 1rem;\n font-weight: 700;\n font-size: 1.25rem;\n line-height: 1.35;\n}\n\n.richtext-output h4:first-child {\n margin-top: 0;\n}\n\n.richtext-output h5,\n.richtext-output h6 {\n margin-top: 2rem;\n margin-bottom: 1rem;\n font-weight: 700;\n}\n\n.richtext-output h5:first-child,\n.richtext-output h6:first-child {\n margin-top: 0;\n}\n\n/* Paragraphs */\n.richtext-output p {\n margin-bottom: 1.25rem;\n}\n\n.richtext-output p:last-child {\n margin-bottom: 0;\n}\n\n/* Lists - explicitly set list-style to override Tailwind preflight */\n.richtext-output ul {\n margin-bottom: 1.25rem;\n padding-left: 2rem;\n list-style-type: disc !important;\n}\n\n.richtext-output ol {\n margin-bottom: 1.25rem;\n padding-left: 2rem;\n list-style-type: decimal !important;\n}\n\n.richtext-output li {\n margin-bottom: 0.5rem;\n}\n\n.richtext-output li::marker {\n color: currentColor;\n}\n\n/* Nested lists */\n.richtext-output ul ul,\n.richtext-output ol ul {\n list-style-type: circle !important;\n margin-top: 0.5rem;\n margin-bottom: 0;\n}\n\n.richtext-output ul ul ul,\n.richtext-output ol ul ul {\n list-style-type: square !important;\n}\n\n.richtext-output ol ol,\n.richtext-output ul ol {\n list-style-type: lower-alpha !important;\n margin-top: 0.5rem;\n margin-bottom: 0;\n}\n\n/* Blockquote */\n.richtext-output blockquote {\n margin: 1.5rem 0;\n padding-left: 1.5rem;\n border-left: 4px solid hsl(var(--border, 220 13% 91%));\n font-style: italic;\n}\n\n/* Links - using primary color with fallback to blue */\n.richtext-output a {\n color: hsl(var(--primary, 221 83% 53%));\n text-decoration: underline;\n}\n\n.richtext-output a:hover {\n opacity: 0.8;\n}\n\n/* Code - using muted background with fallback */\n.richtext-output code {\n background-color: hsl(var(--muted, 220 14% 96%));\n padding: 0.125rem 0.25rem;\n border-radius: 0.25rem;\n font-size: 0.875rem;\n}\n\n/* Highlight mark - uses inline style for color, this is fallback */\n.richtext-output mark {\n background-color: #fef08a;\n padding: 0.125rem 0.25rem;\n border-radius: 0.125rem;\n}\n\n/* Strikethrough */\n.richtext-output s,\n.richtext-output strike {\n text-decoration: line-through;\n}\n\n/* Text alignment (Tiptap uses inline styles, but backup classes) */\n.richtext-output .text-left {\n text-align: left;\n}\n\n.richtext-output .text-center {\n text-align: center;\n}\n\n.richtext-output .text-right {\n text-align: right;\n}\n\n.richtext-output .text-justify,\n.richtext-output [style*=\"text-align: justify\"] {\n text-align: justify;\n}\n\n/* Superscript */\n.richtext-output sup {\n vertical-align: super;\n font-size: 0.75em;\n}\n\n/* Subscript */\n.richtext-output sub {\n vertical-align: sub;\n font-size: 0.75em;\n}\n\n/* Horizontal Rule */\n.richtext-output hr {\n border: none;\n border-top: 2px solid hsl(var(--border, 220 13% 91%));\n margin: 2rem 0;\n}\n\n/* Responsive font size */\n@media (max-width: 768px) {\n .richtext-output {\n font-size: 1rem;\n }\n\n .richtext-output h1 {\n font-size: 1.875rem;\n }\n\n .richtext-output h2 {\n font-size: 1.5rem;\n }\n\n .richtext-output h3 {\n font-size: 1.25rem;\n }\n}\n"],"mappings":";AAKA,CAAC;AACC,cAAY;AACZ,WAAS;AACX;AAEA,CALC,aAKa;AACZ,WAAS;AACX;AAGA,CAVC,cAUc;AACb,UAAQ,EAAE,EAAE,IAAI;AAClB;AAEA,CAdC,cAcc,CAAC;AACd,iBAAe;AACjB;AAGA,CAnBC,cAmBc;AACb,aAAW;AACX,eAAa;AACb,UAAQ,IAAI,EAAE,MAAM;AACtB;AAEA,CAzBC,cAyBc,EAAE;AACf,cAAY;AACd;AAEA,CA7BC,cA6Bc;AACb,aAAW;AACX,eAAa;AACb,UAAQ,IAAI,EAAE,MAAM;AACtB;AAEA,CAnCC,cAmCc,EAAE;AACf,cAAY;AACd;AAEA,CAvCC,cAuCc;AACb,aAAW;AACX,eAAa;AACb,UAAQ,IAAI,EAAE,MAAM;AACtB;AAEA,CA7CC,cA6Cc,EAAE;AACf,cAAY;AACd;AAEA,CAjDC,cAiDc;AACb,aAAW;AACX,eAAa;AACb,UAAQ,IAAI,EAAE,MAAM;AACtB;AAEA,CAvDC,cAuDc,EAAE;AACf,cAAY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