obojobo-chunks-question-bank
Advanced tools
Comparing version 5.0.0-alpha.0 to 5.0.0-alpha.1
@@ -51,8 +51,3 @@ import Common from 'obojobo-document-engine/src/scripts/common' | ||
), | ||
SelectParameter.helpers.oboToSlate( | ||
'select', | ||
node.content.select, | ||
'Select', | ||
SELECT_TYPES | ||
) | ||
SelectParameter.helpers.oboToSlate('select', node.content.select, 'Select', SELECT_TYPES) | ||
] | ||
@@ -59,0 +54,0 @@ } |
@@ -27,12 +27,27 @@ import './viewer-component.scss' | ||
const QuestionBank = ({editor, node, children}) => ( | ||
const QuestionBank = ({ editor, node, children }) => ( | ||
<div className={'obojobo-draft--chunks--question-bank editor-bank'}> | ||
<Button className="delete-button" onClick={() => {remove(editor, node)}}> | ||
<Button | ||
className="delete-button" | ||
onClick={() => { | ||
remove(editor, node) | ||
}} | ||
> | ||
× | ||
</Button> | ||
{children} | ||
<Button className='buffer' onClick={() => {addQuestion(editor, node)}}> | ||
<Button | ||
className="buffer" | ||
onClick={() => { | ||
addQuestion(editor, node) | ||
}} | ||
> | ||
{'Add Question'} | ||
</Button> | ||
<Button className='buffer' onClick={() => {addQuestionBank(editor, node)}}> | ||
<Button | ||
className="buffer" | ||
onClick={() => { | ||
addQuestionBank(editor, node) | ||
}} | ||
> | ||
{'Add Question Bank'} | ||
@@ -39,0 +54,0 @@ </Button> |
{ | ||
"name": "obojobo-chunks-question-bank", | ||
"version": "5.0.0-alpha.0", | ||
"version": "5.0.0-alpha.1", | ||
"license": "AGPL-3.0-only", | ||
@@ -34,3 +34,3 @@ "description": "QuestionBank chunk for Obojobo", | ||
"dependencies": { | ||
"obojobo-lib-utils": "^5.0.0-alpha.0" | ||
"obojobo-lib-utils": "^5.0.0-alpha.1" | ||
}, | ||
@@ -68,3 +68,4 @@ "devDependencies": { | ||
} | ||
} | ||
}, | ||
"gitHead": "00c7f57dd58852f5d1192026c33d3cdbc6289f93" | ||
} |
@@ -72,7 +72,3 @@ import { Block } from 'slate' | ||
const block = Block.create( | ||
TextParameter.helpers.oboToSlate( | ||
'choose', | ||
'Infinity', | ||
'Choose' | ||
) | ||
TextParameter.helpers.oboToSlate('choose', 'Infinity', 'Choose') | ||
) | ||
@@ -82,8 +78,3 @@ return editor.insertNodeByKey(node.key, index, block) | ||
const block = Block.create( | ||
SelectParameter.helpers.oboToSlate( | ||
'select', | ||
'sequential', | ||
'Select', | ||
SELECT_TYPES | ||
) | ||
SelectParameter.helpers.oboToSlate('select', 'sequential', 'Select', SELECT_TYPES) | ||
) | ||
@@ -95,7 +86,3 @@ return editor.insertNodeByKey(node.key, index, block) | ||
const block = Block.create( | ||
TextParameter.helpers.oboToSlate( | ||
'choose', | ||
'Infinity', | ||
'Choose' | ||
) | ||
TextParameter.helpers.oboToSlate('choose', 'Infinity', 'Choose') | ||
) | ||
@@ -108,8 +95,3 @@ return editor.withoutNormalizing(e => { | ||
const block = Block.create( | ||
SelectParameter.helpers.oboToSlate( | ||
'select', | ||
'sequential', | ||
'Select', | ||
SELECT_TYPES | ||
) | ||
SelectParameter.helpers.oboToSlate('select', 'sequential', 'Select', SELECT_TYPES) | ||
) | ||
@@ -116,0 +98,0 @@ return editor.withoutNormalizing(e => { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Copyleft License
License(Experimental) Copyleft license information was found.
Found 1 instance in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
Non-permissive License
License(Experimental) A license not known to be considered permissive was found.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Copyleft License
License(Experimental) Copyleft license information was found.
Found 1 instance in 1 package
Non-permissive License
License(Experimental) A license not known to be considered permissive was found.
Found 1 instance in 1 package
56096
19
3
651