-
Notifications
You must be signed in to change notification settings - Fork 36
feat(react): add loading states, update SignIn and sample app, Add rollup for react. #15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
33 commits
Select commit
Hold shift + click to select a range
bc8bb9f
feat(react): :sparkles: handle loading states in basic auth and totp
movinsilva 2d404b5
chore(react): :heavy_plus_sign: add rollup plugin packages
movinsilva 9edf524
feat(react): :package: add rollup
movinsilva fda3da9
feat(react): :sparkles: add showSignUp prop for SignIn component & up…
movinsilva 3c7994b
feat(react): :lipstick: add styling for textfields
movinsilva dbaf229
fix(react): :bug: fix display name for local options in multi option …
movinsilva ba06c47
feat(react): :sparkles: clean totp entered upon submitting
movinsilva c5f61b4
feat(react): :technologist: improve loading state of the signin button
movinsilva cccfe89
feat(react): :technologist: introduce auth loading state for social l…
movinsilva 90b1d54
feat(react): :sparkles: update emailOtp to handle both screens: usern…
movinsilva 6e24f44
feat(react): :sparkles: add placeholder for emailotp username textfield
movinsilva 969b2c7
feat(react): :technologist: improve loading states of email otp
movinsilva 7ff39ed
fix(react): :goal_net: handle error state of authn
movinsilva 90f8e49
feat(react): :sparkles: add alert when basic auth is missing
movinsilva 685e316
feat(react): :sparkles: add totp alert
movinsilva 642b07e
feat(react): :sparkles: add loading state for sign in button
movinsilva 87d78e9
fix(react): :lipstick: remove padding from signin button
movinsilva dedc3da
feat(react): :sparkles: introduce new props for signin and signin but…
movinsilva 9695b2d
refactor(core): :recycle: set default values for some configs in auth…
movinsilva be2c4a6
fix(react): :adhesive_bandage: improve authorize call in SignIn
movinsilva 619e4be
fix(react): :adhesive_bandage: add null check when acessing authentic…
movinsilva 7bb052c
refactor(react): :recycle: introduce a new constant for the default l…
movinsilva 8a1d174
fix(react): :label: add types for username, password and totp
movinsilva d9ffebc
refactor(react): :label: update jsx.element types to reactelement
movinsilva c90521f
refactor(react): :recycle: refactor fallback values in control compon…
movinsilva 07d3f0f
feat(react): :bento: add sms and totp icons
movinsilva 9491056
feat(sample-app): :coffin: update sample app
movinsilva fc7ef3e
fix(sample-app): :coffin: remove unused file
movinsilva e557552
fix(react): :construction: update sample app
movinsilva 6ab62f0
feat(react): :lipstick: update generateThemeSignIn function
movinsilva a8a8ead
feat: :globe_with_meridians: add some common strings for i18n
movinsilva 5478a3e
feat(react): :sparkles: add useOn custom hook for onSignIn and onSign…
movinsilva 9be9ee7
chore(sample-app): :wrench: untrack .env file
movinsilva File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
/** | ||
* Copyright (c) 2024, WSO2 LLC. (https://www.wso2.com). | ||
* | ||
* WSO2 LLC. licenses this file to you under the Apache License, | ||
* Version 2.0 (the "License"); you may not use this file except | ||
* in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, | ||
* software distributed under the License is distributed on an | ||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
* KIND, either express or implied. See the License for the | ||
* specific language governing permissions and limitations | ||
* under the License. | ||
*/ | ||
|
||
const commonjs = require('@rollup/plugin-commonjs'); | ||
const image = require('@rollup/plugin-image'); | ||
const nodeResolve = require('@rollup/plugin-node-resolve'); | ||
const typescript = require('@rollup/plugin-typescript'); | ||
const dts = require('rollup-plugin-dts'); | ||
const nodePolyfills = require('rollup-plugin-polyfill-node'); | ||
const styles = require('rollup-plugin-styles'); | ||
|
||
const pkg = require('./package.json'); | ||
|
||
module.exports = [ | ||
{ | ||
cache: false, | ||
external: ['react', 'react-dom'], | ||
input: 'src/index.ts', | ||
onwarn(warning, warn) { | ||
// Suppress this error message... there are hundreds of them | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Any reason to supress this error? |
||
if (warning.code === 'MODULE_LEVEL_DIRECTIVE') return; | ||
// Use default for everything else | ||
warn(warning); | ||
}, | ||
output: [ | ||
{ | ||
file: pkg.main, | ||
format: 'cjs', | ||
sourcemap: true, | ||
}, | ||
{ | ||
file: pkg.module, | ||
format: 'esm', | ||
sourcemap: true, | ||
}, | ||
], | ||
plugins: [ | ||
nodePolyfills(), | ||
nodeResolve({ | ||
browser: true, | ||
preferBuiltins: true, | ||
}), | ||
commonjs(), | ||
typescript({tsconfig: './tsconfig.lib.json'}), | ||
styles({ | ||
mode: 'inject', | ||
}), | ||
image(), | ||
], | ||
}, | ||
{ | ||
cache: false, | ||
external: [/\.(sass|scss|css)$/] /* ignore style files */, | ||
input: 'dist/esm/types/index.d.ts', | ||
output: [{file: 'dist/index.d.ts', format: 'esm'}], | ||
plugins: [dts.default()], | ||
}, | ||
]; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need the
console
part here? How aboutenableBranding
andenableTextBranding
? @brionmario @dasuni-30 WDYT?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Branding is taken from props as well.
Need to specify this is coming from asgardeo/IS, right?