This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

@drieam/common
TypeScript icon, indicating that this package has built-in type declarations

7.11.6 • Public • Published

npm

@drieam/common

This package include some utilities used by Drieam LTI apps.

Getting Started

Installation

Install the @drieam/common and its dependencies.

yarn add @drieam/common

Read the full API Documentation

Options

General settings of an action as an extension of api actions.

{
  withErrorHandler: true,
  csrfToken: getCSRFToken(),
  history: createBrowserHistory(),
  toasts: {
    offline: {
      duration: 0,
      message: 'Not connected.',
    },
    save: { message: 'Saved success.' },
    delete: { message: 'Deleted success.' },
  },
};
}
  • Attributes:
    1. withErrorHandler (boolean): Enables ErrorHandlingMiddleware (Default: true). Provides feedback through an Antd Notification on offline, save success or fail action.
    2. toasts (object): Notification settings, you can express which message can be provided by the error handler.
    3. history (object): history is a JavaScript library that lets you easily manage session history anywhere JavaScript runs. (default: require 'history').
    4. csfrToken (string): Cross-site request forgery token. (Default: <meta [name="csrf-token"] />).
    5. Api options

Readme

Keywords

none

Package Sidebar

Install

npm i @drieam/common

Weekly Downloads

8

Version

7.11.6

License

MIT

Unpacked Size

144 kB

Total Files

59

Last publish

Collaborators

  • drieambot
  • ellya
  • hbarrientosg
  • martijnpieters
  • stef.schenkelaars