2.4.4 • Published 4 years ago

@domain-group/fe-co-auth-ui-core v2.4.4

Weekly downloads
-
License
ISC
Repository
github
Last release
4 years ago

fe-co-auth-ui-core Circle CI

Domani auth ui core components and helpers

Usage

yarn add @domain-group/fe-co-auth-ui-core

For more details, see src/js/auth-ui-core.js

Code Architecture

The repo was generated using fe-boilerplate-generator but uses typescript to generate the javascript bits. To understand the API architechture go to docs.

Typescript

All javascript source files inside the src folder (fixtures,js and style) are generated from src-ts folder. So basically the source is divided into two folders src and src-ts.

Changes and history

See CHANGELOG.md.

Props

The component takes the following props besides the base props

PropNameTypeDefaultDescription
customLayoutfunction?undefinedCustom layout to override the system layout.
customScreensobject?{}Custom screens overriding the system screens.
additionalScreensobject?{}Additional screens to auth ui.
customComponentsobject?{}Custom components overriding the system components.
eventsobject?{}Hook onto system events and provide event handlers.

Get an Overview of the system.

How to extend this package for my brand?

Read here to extend this package. fe-co-auth-ui-domain can also be used as a reference.

To run locally, run the following commands sequentially

  • yarn : Install all package dependencies.
  • yarn watch:ts : Runs the typescript transpiler in watch mode.

After the above command does the first transpilation and starts watching file for changes, run the next command.

  • yarn start : Runs the normal fe-build command on watch mode.

This also runs the lint:fix to fix any linting issues caused during typescript -> javascript transpilation.

Publishing to NPM

Same as for any other fe-co-* component. See the docs on releasing a component in the docs repo

Few things to keep in mind

  • NPM Publish must be done from a linux machine. Fe build does not support windows. It may look like its working but its actually not. So if you are on windows, do it from WSL.
  • You will need a valid aws cli session to domain production, as it involves saving fe-dora demo bundles and assets to S3 buckets. So something like saml2aws login --profile fe-build. Check the default region is correct as well.

Testing changes to core via a team component

You may need to test changes in fe-co-auth-ui-core via a team component for example via fe-co-auth-ui-domain. To facilitate this process, use below tips

  • You can test the changes locally without having to publish a new fe-co-auth-ui-core npm package which can be time consuming. To do this, you need to link fe-co-auth-ui-core code on your box from the team component code. Use yarn link functionality to achieve this. Check https://yarnpkg.com/lang/en/docs/cli/link Please note to use yarn build:module before linking so that lib folder is available.

  • If for some reason, you need to or want to check a published version, you don't have to merge your changes to master to publish it. You may rather set the version as beta (e.g. 1.1.4-beta) and publish from a branch by specifying --any-branch option when publishing the package. You can then install the beta version in the team component to test it.

2.4.4

4 years ago

2.4.3

4 years ago

2.4.2

4 years ago

2.4.1

4 years ago

2.4.0

4 years ago

2.3.12

4 years ago

2.3.11

4 years ago

2.3.10

4 years ago

2.3.9

4 years ago

2.3.8

4 years ago

2.3.7

4 years ago

2.3.6

4 years ago

2.3.5

4 years ago

2.3.4

4 years ago

2.3.3

4 years ago

2.3.2

4 years ago

2.3.2-beta

4 years ago

2.3.1

4 years ago

2.3.0

4 years ago

2.2.0

4 years ago

2.1.1

4 years ago

2.1.0

5 years ago

2.0.1

5 years ago

1.1.4

5 years ago

1.2.4-beta.4

5 years ago

1.2.4-beta.3

5 years ago

1.2.4-beta.2

5 years ago

1.2.4-beta.1

5 years ago

1.2.3-beta.1

5 years ago

1.2.2

5 years ago

1.2.1

5 years ago

1.1.3

5 years ago

1.1.1

5 years ago

1.0.4-beta.11

5 years ago

1.0.4-beta.8

5 years ago

1.0.4-beta.7

5 years ago

1.0.4-beta.6

5 years ago

1.0.4-beta.5

5 years ago

1.0.4-beta.4

5 years ago

1.0.4-beta.1

5 years ago

1.0.4-beta.0

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago

0.3.2

5 years ago

0.3.1

5 years ago

0.3.0

5 years ago

0.2.57

5 years ago

0.2.56

5 years ago

0.2.55

5 years ago

0.2.53

5 years ago

0.2.52

5 years ago

0.2.51

5 years ago

0.2.50

5 years ago

0.2.49

5 years ago

0.2.48

5 years ago

0.2.44

5 years ago

0.2.43

5 years ago

0.2.42

5 years ago

0.2.41

5 years ago

0.2.40

5 years ago

0.2.39

5 years ago

0.2.38

5 years ago

0.2.37

5 years ago

0.2.36

5 years ago

0.2.34

5 years ago

0.2.33

5 years ago

0.2.32

5 years ago

0.2.31-beta.0

5 years ago

0.2.31-beta

5 years ago

0.2.31

5 years ago

0.2.30

5 years ago

0.2.29

5 years ago

0.2.28

5 years ago

0.2.27

5 years ago

0.2.26

5 years ago

0.2.25

5 years ago

0.2.24

5 years ago

0.2.23

5 years ago

0.2.22

5 years ago

0.2.21

5 years ago

0.2.20

5 years ago

0.2.19

5 years ago

0.2.18

5 years ago

0.2.17

5 years ago

0.2.16

5 years ago

0.2.15

5 years ago

0.2.14

5 years ago

0.2.13

5 years ago

0.2.12

5 years ago

0.2.11

5 years ago

0.2.10

5 years ago

0.2.9

5 years ago

0.2.8

5 years ago

0.2.7

5 years ago

0.2.6

5 years ago

0.2.5

5 years ago

0.2.4

5 years ago

0.2.3

5 years ago

0.2.2

5 years ago

0.2.1

5 years ago

0.2.0

5 years ago

0.1.9

5 years ago

0.1.8

5 years ago

0.1.7

5 years ago

0.1.6

5 years ago

0.1.5

5 years ago

0.1.4

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.0.12

5 years ago

0.0.11

5 years ago

0.0.10

5 years ago

0.0.9

5 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago