Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
createTextState,
name as textPlugin,
Text
} from '@edtr-io/plugin-text/__fixtures__'
import { HintState, createHintPlugin } from '../src'
export const name = 'hint'
export const plugin = createHintPlugin()
export const states: Record> = {
simple: {
title: '',
content: {
plugin: rowsPlugin,
state: createRowsState({
plugin: textPlugin,
state: createTextState(Text.create({ text: 'This is a hint' }))
})
}
}
}
createTextState,
name as textPlugin,
Text
} from '@edtr-io/plugin-text/__fixtures__'
import { SpoilerState, createSpoilerPlugin } from '../src'
export const name = 'solution'
export const plugin = createSpoilerPlugin()
export const states: Record> = {
simple: {
title: '',
content: {
plugin: rowsPlugin,
state: createRowsState({
plugin: textPlugin,
state: createTextState(Text.create({ text: 'This is a spoiler' }))
})
}
}
}
createTextState,
name as textPlugin,
Text
} from '@edtr-io/plugin-text/__fixtures__'
import { SolutionState, createSolutionPlugin } from '../src'
export const name = 'solution'
export const plugin = createSolutionPlugin()
export const states: Record> = {
simple: {
title: '',
content: {
plugin: rowsPlugin,
state: createRowsState({
plugin: textPlugin,
state: createTextState(Text.create({ text: 'This is a solution' }))
})
}
}
}