3.2.0 • Published 3 years ago

@nteract/selectors v3.2.0

Weekly downloads
2,935
License
BSD-3-Clause
Repository
-
Last release
3 years ago

@nteract/selectors

This package provides a set of selectors and functions that allow you to extract important information from the state of your nteract application. To see a full set of the data stored in application state that be extracted with this package, you can view the AppState type.

Installation

$ yarn add @nteract/selectors
$ npm install --save @nteract/selectors

Usage

import { modalType, currentTheme } from "@nteract/selectors";

const state = {
  config: {
    theme: "dark"
  },
  core: {
    entities: {
      modals: {
        modalType: "ABOUT"
      }
    }
  }
};

const theme = currentTheme(state);
const currentModal = modalType(state);
console.log(`Rendering ${currentModal} modal using ${theme} theme.`);
> Rendering ABOUT modal using dark theme.

Documentation

You can view the reference documentation for @nteract/selectors in the package docs.

Support

If you experience an issue while using this package or have a feature request, please file an issue on the issue board and add the pkg:selectors label.

License

BSD-3-Clause

3.2.0

3 years ago

3.1.9

4 years ago

3.1.8

4 years ago

3.1.7

4 years ago

3.1.6

4 years ago

3.1.5-alpha.0

5 years ago

3.1.6-alpha.0

5 years ago

3.1.4

5 years ago

3.1.3

5 years ago

3.1.2

5 years ago

3.1.1

5 years ago

3.1.0

5 years ago

3.0.1

5 years ago

3.0.0

5 years ago

2.8.10

5 years ago

2.8.9

5 years ago

2.8.9-alpha.0

5 years ago

2.8.8-alpha.0

5 years ago

2.8.7

5 years ago

2.8.7-alpha.0

5 years ago

2.8.6-alpha.0

5 years ago

2.8.5-alpha.0

5 years ago

2.8.4-alpha.0

5 years ago

2.8.3

5 years ago

2.8.3-alpha.0

5 years ago

2.8.2-alpha.0

5 years ago

2.8.1-alpha.0

5 years ago

2.8.0

5 years ago

2.8.0-alpha.0

5 years ago

2.7.2-alpha.0

5 years ago

2.7.1-alpha.0

5 years ago

2.7.0

5 years ago

2.7.0-alpha.0

5 years ago

2.6.0-alpha.0

6 years ago

2.5.0

6 years ago

2.4.5

6 years ago

2.4.4

6 years ago

2.4.3

6 years ago

2.4.2

6 years ago

2.4.1

6 years ago

2.4.0

6 years ago

2.3.3

6 years ago

2.3.2

6 years ago

2.3.1

6 years ago

2.3.0

6 years ago

2.2.1

6 years ago

2.2.0

6 years ago

2.1.0

6 years ago

2.0.4

6 years ago

2.0.3

6 years ago

2.0.2

6 years ago

2.0.1

6 years ago

2.0.0

6 years ago

1.0.4-alpha.0

6 years ago