Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

obojobo-chunks-question-bank

Package Overview
Dependencies
Maintainers
1
Versions
114
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

obojobo-chunks-question-bank - npm Package Compare versions

Comparing version 5.0.0-alpha.0 to 5.0.0-alpha.1

LICENSE

7

converter.js

@@ -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)
}}
>
&times;
</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 => {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc