How to use the @edtr-io/plugin-rows/__fixtures__.createRowsState function in @edtr-io/plugin-rows

To help you get started, we’ve selected a few @edtr-io/plugin-rows examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github edtr-io / edtr-io / packages / plugins / hint / __fixtures__ / index.ts View on Github external
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' }))
      })
    }
  }
}
github edtr-io / edtr-io / packages / plugins / spoiler / __fixtures__ / index.ts View on Github external
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' }))
      })
    }
  }
}
github edtr-io / edtr-io / packages / plugins / solution / __fixtures__ / index.ts View on Github external
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' }))
      })
    }
  }
}

@edtr-io/plugin-rows

This plugin provides functionality of adding multiple rows of (different) plugins. Usage:

MIT
Latest version published 1 year ago

Package Health Score

51 / 100
Full package analysis

Similar packages