Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Block editor #70

Open
wants to merge 58 commits into
base: wizard-translations-redux
Choose a base branch
from
Open

Block editor #70

wants to merge 58 commits into from

Conversation

jthrilly
Copy link
Member

@jthrilly jthrilly commented Nov 7, 2024

This PR implements a proof of concept of the block editor concept using TipTap.

UI components: based on radix components

  • Dropdown menu
  • Toolbar

Custom TipTap node types:

  • Variable, label, hint
  • Group
  • Dropcursor (adapted from prosemirror dropcursor)

TipTap components:

  • NodeBubbleMenu based on Toolbar and Tiptap Bubble menu
  • Basic variable menu-- text formatting, content type dropdown, required, delete
  • Group menu -- number of cols, group-level required, delete
  • Add node menu

Features:

  • Drag and drop variables, content, group components from side panel into editor. Only into valid drop locations.
  • Add variables, content, group components from plus icon menu at bottom of editor

Copy link

vercel bot commented Nov 7, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
studio ❌ Failed (Inspect) Dec 9, 2024 9:30pm
studio-storybook ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 9, 2024 9:30pm

@jthrilly jthrilly changed the base branch from main to wizard-translations-redux November 7, 2024 14:27
refactored variable nodes structure to directly render control within the variable after the label, hint. allows for easier control of attributes and removes unneccessary nesting
also refactor the func to define valid drop positions instead of invalid
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants