mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-29 18:09:49 +02:00
[hyperscript] rename decorators option in params to decorations (#2074)
#### Is this adding or improving a _feature_ or fixing a _bug_? Debt. #### What's the new behavior? `createHyperscript` takes an options object that now looks for the `decorations` property instead of the `decorators` property #### How does this change work? Pretty straightforward rename of an option, then all of its uses and wherever the term decorators showed up in docs #### Have you checked that...? * [x] The new code matches the existing patterns and styles. * [x] The tests pass with `yarn test`. * [x] The linter passes with `yarn lint`. (Fix errors with `yarn prettier`.) * [x] The relevant examples still work. (Run examples with `yarn watch`.) #### Does this fix any issues or need any specific reviewers? Fixes: #1996 Reviewers: @ianstormtaylor
This commit is contained in:
committed by
Ian Storm Taylor
parent
acfffe0c2a
commit
f37dd21137
@@ -6,7 +6,7 @@ const h = createHyperscript({
|
||||
blocks: {
|
||||
paragraph: 'paragraph',
|
||||
},
|
||||
decorators: {
|
||||
decorations: {
|
||||
highlight: 'highlight',
|
||||
},
|
||||
})
|
||||
|
@@ -9,7 +9,7 @@ const h = createHyperscript({
|
||||
marks: {
|
||||
b: 'bold',
|
||||
},
|
||||
decorators: {
|
||||
decorations: {
|
||||
highlight: 'highlight',
|
||||
},
|
||||
})
|
||||
|
@@ -7,7 +7,7 @@ const h = createHyperscript({
|
||||
ul: 'ul',
|
||||
li: 'li',
|
||||
},
|
||||
decorators: {
|
||||
decorations: {
|
||||
highlight: 'highlight',
|
||||
},
|
||||
})
|
||||
|
@@ -9,7 +9,7 @@ const h = createHyperscript({
|
||||
marks: {
|
||||
b: 'bold',
|
||||
},
|
||||
decorators: {
|
||||
decorations: {
|
||||
highlight: 'highlight',
|
||||
},
|
||||
})
|
||||
|
@@ -6,7 +6,7 @@ const h = createHyperscript({
|
||||
blocks: {
|
||||
paragraph: 'paragraph',
|
||||
},
|
||||
decorators: {
|
||||
decorations: {
|
||||
highlight: 'highlight',
|
||||
lowlight: 'lowlight',
|
||||
},
|
||||
|
@@ -6,7 +6,7 @@ const h = createHyperscript({
|
||||
blocks: {
|
||||
paragraph: 'paragraph',
|
||||
},
|
||||
decorators: {
|
||||
decorations: {
|
||||
highlight: 'highlight',
|
||||
},
|
||||
})
|
||||
|
@@ -6,7 +6,7 @@ const h = createHyperscript({
|
||||
blocks: {
|
||||
paragraph: 'paragraph',
|
||||
},
|
||||
decorators: {
|
||||
decorations: {
|
||||
highlight: 'highlight',
|
||||
},
|
||||
})
|
||||
|
@@ -6,7 +6,7 @@ const h = createHyperscript({
|
||||
blocks: {
|
||||
paragraph: 'paragraph',
|
||||
},
|
||||
decorators: {
|
||||
decorations: {
|
||||
highlight: 'highlight',
|
||||
},
|
||||
})
|
||||
|
@@ -6,7 +6,7 @@ const h = createHyperscript({
|
||||
blocks: {
|
||||
paragraph: 'paragraph',
|
||||
},
|
||||
decorators: {
|
||||
decorations: {
|
||||
highlight: 'highlight',
|
||||
},
|
||||
})
|
||||
|
Reference in New Issue
Block a user