-
-
Notifications
You must be signed in to change notification settings - Fork 114
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
Create API methods for manipulating with block elements #135
Create API methods for manipulating with block elements #135
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
}, | ||
'accordion-list-item': { | ||
render: AccordionItem, | ||
children: ['accordion-list-item-heading', 'accordion-list-item-content'], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wondering an issue if you mistype the 'key', or if they will be the same within one plugin for multiple items
return ( | ||
<li | ||
{...attributes} | ||
className="yoo-accordion-border yoo-accordion-border-[#525252] yoo-accordion-bg-[#303030] yoo-accordion-rounded-none yoo-accordion-relative yoo-accordion-w-full" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wondering those two [#525252]
is a standard coloring schema for yoopta, or/and might be re-used from somewhere or taken from Props with default values as defined in the code?
packages/accordion/README.md
Outdated
@@ -0,0 +1,11 @@ | |||
# `yoopta-accordion` | |||
|
|||
> TODO: description |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wondering if README is mandatory file for publishing the plugin to npm, it's a bit misleading.
@@ -0,0 +1,66 @@ | |||
import { generateId, SlateElement, YooptaBlockData } from '@yoopta/editor'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have a very strong feeling that example
should be stored within plugin and be generated to the website by Lerna, e.g.
in your plugin you have:
./README.md - docs
./test - tests folder
./example/
Also it gives a bit more understanding to the person who looks into the plugin repo of how to use it.
In overall I think we can easily split this PR to smaller chunks (worth in future):
|
…feature-simplify-api-for-creating-custom-plugin
…feature-simplify-api-for-creating-custom-plugin
…feature-simplify-api-for-creating-custom-plugin
- @yoopta/[email protected] - @yoopta/[email protected] - @yoopta/[email protected] - @yoopta/[email protected] - @yoopta/[email protected] - @yoopta/[email protected] - @yoopta/[email protected] - @yoopta/[email protected] - @yoopta/[email protected] - @yoopta/[email protected] - @yoopta/[email protected] - @yoopta/[email protected] - @yoopta/[email protected] - @yoopta/[email protected] - @yoopta/[email protected] - @yoopta/[email protected]
- @yoopta/[email protected] - @yoopta/[email protected] - @yoopta/[email protected] - @yoopta/[email protected] - @yoopta/[email protected] - @yoopta/[email protected] - @yoopta/[email protected] - @yoopta/[email protected] - @yoopta/[email protected] - @yoopta/[email protected] - @yoopta/[email protected] - @yoopta/[email protected] - @yoopta/[email protected] - @yoopta/[email protected] - @yoopta/[email protected] - @yoopta/[email protected]
- @yoopta/[email protected] - @yoopta/[email protected] - @yoopta/[email protected] - @yoopta/[email protected] - @yoopta/[email protected] - @yoopta/[email protected] - @yoopta/[email protected] - @yoopta/[email protected] - @yoopta/[email protected] - @yoopta/[email protected] - @yoopta/[email protected] - @yoopta/[email protected] - @yoopta/[email protected] - @yoopta/[email protected] - @yoopta/[email protected] - @yoopta/[email protected]
- @yoopta/[email protected] - @yoopta/[email protected] - @yoopta/[email protected] - @yoopta/[email protected] - @yoopta/[email protected] - @yoopta/[email protected] - @yoopta/[email protected] - @yoopta/[email protected] - @yoopta/[email protected] - @yoopta/[email protected] - @yoopta/[email protected] - @yoopta/[email protected] - @yoopta/[email protected] - @yoopta/[email protected] - @yoopta/[email protected] - @yoopta/[email protected]
- @yoopta/[email protected] - @yoopta/[email protected] - @yoopta/[email protected] - @yoopta/[email protected] - @yoopta/[email protected] - @yoopta/[email protected] - @yoopta/[email protected] - @yoopta/[email protected] - @yoopta/[email protected] - @yoopta/[email protected] - @yoopta/[email protected] - @yoopta/[email protected] - @yoopta/[email protected] - @yoopta/[email protected] - @yoopta/[email protected] - @yoopta/[email protected]
This PR about:
getElement, createElement, deleteElement
@yoopta/accordion
packageElements
andBlocks
Fixed issues:
#131
#174
#176
#175