7.2.4 • Published 4 months ago

@zanichelli/myz-react-utils v7.2.4

Weekly downloads
-
License
Zanichelli
Repository
-
Last release
4 months ago

MyZanichelli React Utils

React utilities for MyZanichelli apps


Install Dependencies

yarn

Local Development

Development console:
yarn start
Development App:

Please refers to the example app README.md file to configure the example app, then run

yarn start:app

In order to make a new component available in the example app, you need to export it from /index.tsx and then run yarn build from the root directory.

Build Library

To build the library before release it run

yarn build

Release

In this repository we follow the Conventional Commits Specification and we use standard-version to update the CHANGELOG.md when publishing a new version of the package to NPM.

Standard-version automatically detects the type of the update (patch, minor or major) following the Semantic Versioning specification.

Publish a new version on NPM registry

  • Make sure you are logged in NPM
  • Run standard-version:
yarn release

Specify a version

If you want to select a version or the update type, you can use the --release-as flag:

yarn release --release-as path
yarn release --release-as 1.1.0

In general, you can pass any flag supported by standard-version, please refer to their CLI usage documentation.

Specify a tag

If you want to add a tag to your published version, you can use the --tag flag:

yarn release --tag myz

Push tags and publish

git push --follow-tags origin branch-name
yarn publish

Usage

First install the library in your host project

yarn add @zanichelli/myz-react-utils

Then set the following environment variables:

REACT_APP_API_ENV=local
REACT_APP_MYZ_URL="https://localmy.zanichelli.it"
REACT_APP_ZANIT_URL="https://local.zanichelli.it"
REACT_APP_API_V3_URL="https://local-api-catalogo.zanichelli.it/v3"
REACT_APP_API_URL="https://local-api-catalogo.zanichelli.it"
REACT_APP_S3_URL="https://staticdevmy.zanichelli.it"
REACT_APP_MYZ_TOKEN_KEY="myz-token-local"
REACT_APP_MYZ_TOKEN_COOKIE="myz_token_local"

You can use the library components like this:

import React, { Component } from 'react'

import * as Components from 'myz-react-utils'
import { Utils } from 'myz-react-utils'

class Example extends Component {
  render() {
    console.log(Utils.getMyzTokenCookie())
    return <Components.Footer />
  }
}

LIbrary Contents

Components

  • Footer
  • Topbar

Utilities

  • Request
  • getCookie
  • getMyzTokenCookie
  • Validators,
  • manageMarkupContent,
  • trans

Constants

  • HttpStatus

Beans

  • Config

License

Zanichelli © Secondini

7.2.4

4 months ago

7.2.3

5 months ago

7.2.2

5 months ago

7.2.1

6 months ago

7.2.0

6 months ago

7.1.3

7 months ago

7.1.2

7 months ago

7.1.1

7 months ago

7.1.0

7 months ago

7.0.6

8 months ago

7.0.5

8 months ago

7.0.4

9 months ago

7.0.3

9 months ago

7.0.2

11 months ago

7.1.0-RC1

11 months ago

7.1.0-RC2

11 months ago

7.0.0-RC12

1 year ago

7.0.0-RC13

1 year ago

7.0.0

1 year ago

7.0.1

1 year ago

7.0.0-RC11

1 year ago

6.0.11

1 year ago

7.0.0-RC10

1 year ago

6.0.10

1 year ago

6.0.7

1 year ago

6.0.6

1 year ago

6.0.5

1 year ago

6.0.4

1 year ago

7.0.0-RC9

2 years ago

7.0.0-RC4

2 years ago

7.0.0-RC3

2 years ago

7.0.0-RC6

2 years ago

7.0.0-RC5

2 years ago

7.0.0-RC8

2 years ago

7.0.0-RC7

2 years ago

7.0.0-RC2

2 years ago

7.0.0-RC1

2 years ago

6.0.0

2 years ago

6.0.3

2 years ago

6.0.2

2 years ago

5.2.9

2 years ago

5.2.8

2 years ago

5.2.7

2 years ago

5.2.6

2 years ago

5.2.5

2 years ago

5.2.4

2 years ago

5.2.3

2 years ago

5.2.2

2 years ago

5.2.1

2 years ago

4.0.4-rc1

3 years ago

3.0.12

3 years ago

3.0.13

3 years ago

3.0.10

3 years ago

3.0.11

3 years ago

3.0.16

3 years ago

3.0.17

3 years ago

3.0.14

3 years ago

3.0.15

3 years ago

2.1.9

3 years ago

4.0.0-rc2

3 years ago

4.0.0

3 years ago

4.0.0-rc1

3 years ago

4.0.3

3 years ago

2.1.10

3 years ago

2.1.11

3 years ago

5.0.9

2 years ago

5.0.8

2 years ago

5.0.7

2 years ago

5.0.6

2 years ago

5.0.5

2 years ago

5.0.4

2 years ago

5.0.3

2 years ago

5.0.2

2 years ago

5.0.1

3 years ago

5.0.10

2 years ago

5.0.0

3 years ago

5.0.11

2 years ago

5.0.12

2 years ago

5.0.13

2 years ago

5.0.14

2 years ago

5.0.15

2 years ago

5.1.0

2 years ago

3.0.4

3 years ago

3.0.2

3 years ago

3.0.1

3 years ago

3.0.8

3 years ago

3.0.7

3 years ago

3.0.6

3 years ago

3.0.5

3 years ago

3.0.0

3 years ago

4.0.0-RC

3 years ago

5.2.0

2 years ago

2.1.4

3 years ago

2.1.3

3 years ago

2.1.6

3 years ago

2.1.5

3 years ago

2.1.8

3 years ago

2.1.7

3 years ago

3.0.18

3 years ago

3.0.19

3 years ago

3.0.9

3 years ago

3.1.0-rc.1

3 years ago

5.0.9-RC3

2 years ago

5.0.9-RC2

2 years ago

5.0.9-RC1

2 years ago

4.0.2-rc

3 years ago

1.2.8

4 years ago

2.0.2

3 years ago

2.0.1

3 years ago

2.0.0

3 years ago

1.2.12

4 years ago

1.2.13

4 years ago

1.2.10

4 years ago

1.2.11

4 years ago

1.2.16

4 years ago

1.2.17

4 years ago

1.2.14

4 years ago

1.2.15

4 years ago

1.2.18

4 years ago

1.2.19

4 years ago

2.1.1

3 years ago

1.2.20

4 years ago

1.2.23

4 years ago

1.2.24

4 years ago

1.2.21

4 years ago

1.2.22

4 years ago

1.2.27

4 years ago

1.2.28

4 years ago

2.1.0

3 years ago

1.2.25

4 years ago

1.2.26

4 years ago

1.2.29

4 years ago

1.2.30

4 years ago

1.2.9

4 years ago

1.2.7

4 years ago

1.2.6

4 years ago

1.2.5

4 years ago

1.2.5-rc9

4 years ago

1.2.5-rc8

4 years ago

1.2.5-rc7

4 years ago

1.2.5-rc6

4 years ago

1.2.5-rc5

4 years ago

1.2.5-rc4

4 years ago

1.2.5-rc3

4 years ago

1.2.5-rc2

4 years ago

1.2.5-rc1

4 years ago

1.2.5-test-i18n

4 years ago

1.2.4

4 years ago

1.2.3

4 years ago

1.2.2

4 years ago

1.2.1

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago