From 317ad8386c81f29c89816a705eb7b28abf531d33 Mon Sep 17 00:00:00 2001 From: garronej Date: Sat, 23 Jul 2022 17:44:52 +0200 Subject: [PATCH 1/6] Attempt to activate renovate on project's landingpage (changelog ignore) --- renovate.json | 1 + 1 file changed, 1 insertion(+) diff --git a/renovate.json b/renovate.json index e55f2c6d..5d491bee 100644 --- a/renovate.json +++ b/renovate.json @@ -1,5 +1,6 @@ { "$schema": "https://docs.renovatebot.com/renovate-schema.json", + "baseBranches": ["main", "landingpage"], "extends": ["config:base"], "dependencyDashboard": false, "bumpVersion": "patch", From 3d581a54541c7d97374d55eb248cf2cd05f90fb1 Mon Sep 17 00:00:00 2001 From: garronej Date: Thu, 28 Jul 2022 04:24:10 +0200 Subject: [PATCH 2/6] =?UTF-8?q?Support=20for=20React.lazy()=20#141=20?= =?UTF-8?q?=F0=9F=8E=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../replaceImportFromStatic.ts | 24 +++++++++++++++ src/test/bin/replaceImportFromStatic.ts | 30 +++++++++---------- 2 files changed, 39 insertions(+), 15 deletions(-) diff --git a/src/bin/build-keycloak-theme/replaceImportFromStatic.ts b/src/bin/build-keycloak-theme/replaceImportFromStatic.ts index bb0f9b3d..ad8548b3 100644 --- a/src/bin/build-keycloak-theme/replaceImportFromStatic.ts +++ b/src/bin/build-keycloak-theme/replaceImportFromStatic.ts @@ -17,11 +17,35 @@ export function replaceImportsFromStaticInJsCode(params: { jsCode: string; urlOr const { jsCode, urlOrigin } = params; const fixedJsCode = jsCode + .replace( + /([a-zA-Z]+)\.([a-zA-Z]+)=function\(([a-zA-Z]+)\){return"static\/js\/"/g, + (...[, n, u, e]) => ` + ${n}[(function(){ + ${ + urlOrigin === undefined + ? ` + Object.defineProperty(${n}, "p", { + get: function() { return window.${ftlValuesGlobalName}.url.resourcesPath; }, + set: function (){} + }); + ` + : ` + var p= ""; + Object.defineProperty(${n}, "p", { + get: function() { return ("${ftlValuesGlobalName}" in window ? "${urlOrigin}" : "") + p; }, + set: function (value){ p = value;} + }); + ` + } + return "${u}"; + })()] = function(${e}) { return "${urlOrigin === undefined ? "/build/" : ""}static/js/"`, + ) .replace(/([a-zA-Z]+\.[a-zA-Z]+)\+"static\//g, (...[, group]) => urlOrigin === undefined ? `window.${ftlValuesGlobalName}.url.resourcesPath + "/build/static/` : `("${ftlValuesGlobalName}" in window ? "${urlOrigin}" : "") + ${group} + "static/`, ) + //TODO: Write a test case for this .replace(/".chunk.css",([a-zA-Z])+=([a-zA-Z]+\.[a-zA-Z]+)\+([a-zA-Z]+),/, (...[, group1, group2, group3]) => urlOrigin === undefined ? `".chunk.css",${group1} = window.${ftlValuesGlobalName}.url.resourcesPath + "/build/" + ${group3},` diff --git a/src/test/bin/replaceImportFromStatic.ts b/src/test/bin/replaceImportFromStatic.ts index 58b19ed1..0658dd63 100644 --- a/src/test/bin/replaceImportFromStatic.ts +++ b/src/test/bin/replaceImportFromStatic.ts @@ -23,20 +23,18 @@ import { assetIsSameCode } from "../tools/assertIsSameCode"; }[e] + ".chunk.js" } - function f2() { + function sameAsF() { return a.p+"static/js/" + ({}[e] || e) + "." + { 3: "0664cdc0" }[e] + ".chunk.js" } - n.u = function(e) { - return "static/js/" + e + "." + { + n.u=function(e){return"static/js/" + e + "." + { 147: "6c5cee76", 787: "8da10fcf", 922: "be170a73" } [e] + ".chunk.js" } - `; { @@ -52,17 +50,19 @@ import { assetIsSameCode } from "../tools/assertIsSameCode"; }[e] + ".chunk.js" } - function f2() { + function sameAsF() { return window.kcContext.url.resourcesPath + "/build/static/js/" + ({}[e] || e) + "." + { 3: "0664cdc0" }[e] + ".chunk.js" } - n.u = function(e) { + n[(function (){ Object.defineProperty(n, "p", { get: function() { return window.kcContext.url.resourcesPath; }, set: function (){} }); + return "u"; + })()] = function(e) { return "/build/static/js/" + e + "." + { 147: "6c5cee76", 787: "8da10fcf", @@ -87,20 +87,20 @@ import { assetIsSameCode } from "../tools/assertIsSameCode"; }[e] + ".chunk.js" } - function f2() { + function sameAsF() { return ("kcContext" in window ? "https://demo-app.keycloakify.dev" : "") + a.p + "static/js/" + ({}[e] || e) + "." + { 3: "0664cdc0" }[e] + ".chunk.js" } - n.u = function(e) { - { - var p= ""; - Object.defineProperty(n, "p", { - get: function() { return ("kcContext" in window ? "https://demo-app.keycloakify.dev" : "") + p; }, - set: function (value){ p = value;} - }); - } + n[(function (){ + var p= ""; + Object.defineProperty(n, "p", { + get: function() { return ("kcContext" in window ? "https://demo-app.keycloakify.dev" : "") + p; }, + set: function (value){ p = value; } + }); + return "u"; + })()] = function(e) { return "static/js/" + e + "." + { 147: "6c5cee76", 787: "8da10fcf", From e0a6935c4933f0e9db350902faad6ab369359744 Mon Sep 17 00:00:00 2001 From: garronej Date: Thu, 28 Jul 2022 04:27:38 +0200 Subject: [PATCH 3/6] Bump version (changelog ignore) --- README.md | 4 ++++ package.json | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 96040037..cec63ada 100644 --- a/README.md +++ b/README.md @@ -40,6 +40,10 @@ ## 5.7.0 +- [React.lazy()](https://reactjs.org/docs/code-splitting.html#reactlazy) support 🎉. [#141](https://github.com/InseeFrLab/keycloakify/issues/141) + +## 5.7.0 + - Feat `logout-confirm.ftl`. [PR](https://github.com/InseeFrLab/keycloakify/pull/120) ## 5.6.4 diff --git a/package.json b/package.json index 382b7e71..3d61aae6 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "keycloakify", - "version": "5.7.3", + "version": "5.8.0", "description": "Keycloak theme generator for Reacts app", "repository": { "type": "git", From 8031294230076fb547b8aa92ef0e0615d2315381 Mon Sep 17 00:00:00 2001 From: garronej Date: Thu, 28 Jul 2022 04:32:27 +0200 Subject: [PATCH 4/6] Update ts-ci, remove changelog, use github release generated body instead --- .github/release.yaml | 25 + .github/workflows/ci.yaml | 57 +-- CHANGELOG.md | 1021 ------------------------------------- 3 files changed, 47 insertions(+), 1056 deletions(-) create mode 100644 .github/release.yaml delete mode 100644 CHANGELOG.md diff --git a/.github/release.yaml b/.github/release.yaml new file mode 100644 index 00000000..ae38baa8 --- /dev/null +++ b/.github/release.yaml @@ -0,0 +1,25 @@ +changelog: + exclude: + labels: + - ignore-for-release + authors: + - octocat + categories: + - title: Breaking Changes 🛠 + labels: + - breaking + - title: Exciting New Features 🎉 + labels: + - feature + - title: Fixes 🔧 + labels: + - fix + - title: Documentation 🔧 + labels: + - docs + - title: CI 👷 + labels: + - ci + - title: Other Changes + labels: + - '*' \ No newline at end of file diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 7c0c24b7..d18207b3 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -9,13 +9,14 @@ on: jobs: - test_formatting: + test_lint: runs-on: ubuntu-latest + if: ${{ !github.event.created && github.repository != 'garronej/ts-ci' }} steps: - uses: actions/checkout@v2.3.4 - uses: actions/setup-node@v2.1.3 - - uses: bahmutov/npm-install@v1.8.15 - - name: If this step fails run 'yarn format' then commit again. + - uses: bahmutov/npm-install@v1 + - name: If this step fails run 'npm run lint' and 'npm run format' then commit again. run: | PACKAGE_MANAGER=npm if [ -f "./yarn.lock" ]; then @@ -24,7 +25,7 @@ jobs: $PACKAGE_MANAGER run format:check test: runs-on: macos-10.15 - needs: test_formatting + needs: test_lint env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} strategy: @@ -34,14 +35,14 @@ jobs: steps: - name: Tell if project is using npm or yarn id: step1 - uses: garronej/ts-ci@v1.1.6 + uses: garronej/ts-ci@v1.1.4 with: action_name: tell_if_project_uses_npm_or_yarn - uses: actions/checkout@v2.3.4 - uses: actions/setup-node@v2.1.3 with: node-version: ${{ matrix.node }} - - uses: bahmutov/npm-install@v1.8.15 + - uses: bahmutov/npm-install@v1 - if: steps.step1.outputs.npm_or_yarn == 'yarn' run: | yarn build @@ -66,54 +67,40 @@ jobs: is_upgraded_version: ${{ steps.step1.outputs.is_upgraded_version }} is_release_beta: ${{steps.step1.outputs.is_release_beta }} steps: - - uses: garronej/ts-ci@v1.1.6 + - uses: garronej/ts-ci@v1.1.4 id: step1 with: action_name: is_package_json_version_upgraded branch: ${{ github.head_ref || github.ref }} - update_changelog: - runs-on: ubuntu-latest - needs: check_if_version_upgraded - if: needs.check_if_version_upgraded.outputs.is_upgraded_version == 'true' - steps: - - uses: garronej/ts-ci@v1.1.6 - with: - action_name: update_changelog - branch: ${{ github.head_ref || github.ref }} - create_github_release: runs-on: ubuntu-latest + # We create a release only if the version have been upgraded and we are on a default branch + # PR on the default branch can release beta but not real release + if: | + needs.check_if_version_upgraded.outputs.is_upgraded_version == 'true' && + ( + github.event_name == 'push' || + needs.check_if_version_upgraded.outputs.is_release_beta == 'true' + ) needs: - - update_changelog - check_if_version_upgraded steps: - - name: Build GitHub release body - id: step1 - run: | - if [ "$FROM_VERSION" = "0.0.0" ]; then - echo "::set-output name=body::🚀" - else - echo "::set-output name=body::📋 [CHANGELOG](https://github.com/$GITHUB_REPOSITORY/blob/v$TO_VERSION/CHANGELOG.md)" - fi - env: - FROM_VERSION: ${{ needs.check_if_version_upgraded.outputs.from_version }} - TO_VERSION: ${{ needs.check_if_version_upgraded.outputs.to_version }} - - uses: garronej/action-gh-release@v0.2.0 + - uses: softprops/action-gh-release@v1 with: name: Release v${{ needs.check_if_version_upgraded.outputs.to_version }} tag_name: v${{ needs.check_if_version_upgraded.outputs.to_version }} target_commitish: ${{ github.head_ref || github.ref }} - body: ${{ steps.step1.outputs.body }} + generate_release_notes: true draft: false prerelease: ${{ needs.check_if_version_upgraded.outputs.is_release_beta == 'true' }} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} publish_on_npm: - runs-on: macos-10.15 + runs-on: ubuntu-latest needs: - - update_changelog + - create_github_release - check_if_version_upgraded steps: - uses: actions/checkout@v2.3.4 @@ -123,7 +110,7 @@ jobs: with: node-version: '15' registry-url: https://registry.npmjs.org/ - - uses: bahmutov/npm-install@v1.8.15 + - uses: bahmutov/npm-install@v1 - run: | PACKAGE_MANAGER=npm if [ -f "./yarn.lock" ]; then @@ -151,4 +138,4 @@ jobs: env: NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} VERSION: ${{ needs.check_if_version_upgraded.outputs.to_version }} - IS_BETA: ${{ needs.check_if_version_upgraded.outputs.is_release_beta }} + IS_BETA: ${{ needs.check_if_version_upgraded.outputs.is_release_beta }} \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md deleted file mode 100644 index 42a80a1e..00000000 --- a/CHANGELOG.md +++ /dev/null @@ -1,1021 +0,0 @@ -### **5.7.3** (2022-07-17) - - - -### **5.7.2** (2022-07-13) - -- #135 - -### **5.7.1** (2022-07-11) - -- #134 - -## **5.7.0** (2022-07-07) - -- Merge pull request #120 from revolunet/logout - -feat: add logout-confirm -- fix: use kcMessages -- fix: add translations FR -- feat: add logout-confirm - -### **5.6.5** (2022-07-06) - -- Merge pull request #133 from bardius/fix/Issue-131-include-all-nested-folders-in-artifact-unzip - -fix: Issue-131: include all nested folders in artifact unzip -- Merge pull request #132 from bardius/fix/Issue-130-fix-equality-detection-of-nested-ftl-object-properties - -fix: Issue-130: fix equality detection of nested ftl object property … -- fix: Issue-131: include all nested folders in artifact unzip -- fix: Issue-130: fix equality detection of nested ftl object property paths - -### **5.6.4** (2022-07-06) - -- Fix login-register-email.ftl -- Update to Keycloak 18.0.2 for the test container - -### **5.6.3** (2022-07-03) - -- update powerhooks - -### **5.6.2** (2022-07-03) - -- Update powerhooks and EVT - -### **5.6.1** (2022-07-03) - -- Merge pull request #128 from Ann2827/pull - -Fix bugs on error.ftl template -- fix: bugs on error.ftl template -- Merge pull request #52 from InseeFrLab/main - -Update fork - -## **5.6.0** (2022-06-28) - -- Merge pull request #127 from aidangilmore/add-totp-support - -feat: add login-config-totp.ftl page -- Fix unknown algorithm name lookup in LoginConfigTotp -- Add totp config support - -## **5.5.0** (2022-06-28) - -- Make it possible to redirect to login by repacing the url (should be default in most case) - -### **5.4.7** (2022-06-19) - -- #121 -- fmt -- Create CONTRIBUTING.md -- Enable users to link keycloak in their own app - -### **5.4.6** (2022-06-16) - -- Use keycloak 18.0.1 i18n resources #120 - -### **5.4.5** (2022-06-14) - -- Merge pull request #119 from dro-sh/fix-locale-on-useFormValidationSlice - -pass locale to getGetErrors to get correct messages -- pass locale to getGetErrors to get correct messages - -### **5.4.4** (2022-06-05) - - - -### **5.4.3** (2022-06-01) - - - -### **5.4.2** (2022-06-01) - -- Prevent rate limite in CI by authenticating - -### **5.4.1** (2022-06-01) - - - -## **5.4.0** (2022-05-23) - -- #109 - -### **5.3.2** (2022-05-04) - -- Merge pull request #101 from Romcol/bugfix/99 - -Issue #99 - Make replace less greedy in remplaceImportFromStatic -- [IMP] Issue #99 - Make replace less greedy in remplaceImportFromStatic - -### **5.3.1** (2022-04-29) - -- Comment out missleading informations - -## **5.3.0** (2022-04-28) - -- Rename keycloak_theme_email to keycloak_email (it's shorter) - -## **5.2.0** (2022-04-27) - -- Export KcApp - -## **5.1.0** (2022-04-27) - -- Export kcLanguageTags - -# **5.0.0** (2022-04-27) - -- i18n rebuild from the ground up - -## **4.10.0** (2022-04-26) - -- Merge pull request #92 from Tasyp/add-login-idp-link-email - -feat: add login-idp-link-email page -- feat: add mock data for login-idp-link-email page -- feat: supply broker context with context - -## **4.9.0** (2022-04-25) - -- Test by default with kc 18. Update instructions to use quay.io/keycloak/keycloak instead of jboss/keycloak #93 - -### **4.8.7** (2022-04-25) - -- Update instructions to test on Keycloak 18 https://github.com/keycloak/keycloak-web/issues/306 #93 -- Move the documentation form the readme to docs.keycloakify.dev -- Update README.md -- Update demo video - -### **4.8.6** (2022-04-22) - -- always offer to download v11.0.3 - -### **4.8.5** (2022-04-22) - -- #91 - -### **4.8.4** (2022-04-22) - -- #90 - -### **4.8.3** (2022-04-20) - - - -### **4.8.2** (2022-04-20) - -- Tell pepoles they can test with different keycloak version - -### **4.8.1** (2022-04-20) - -- Add missing shebang -- Add video demo for npx download-builtin-keycloak-theme - -## **4.8.0** (2022-04-20) - -- Document email template customization feature #9 -- Add mention of download-builtin-keycloak-theme -- Let the choice of kc version be auto in GH Action -- Only test on node v15 and v14 (bellow is no longer supported (rmSync) -- Feature email customization #9 - -### **4.7.6** (2022-04-12) - -- Fix bugs with language switch #85 - -### **4.7.5** (2022-04-09) - -- Fix #85 - -### **4.7.4** (2022-04-09) - -- M1 Mac compat (for real this time) - -### **4.7.3** (2022-04-08) - -- Mention that there is still problems with M1 Mac - -### **4.7.2** (2022-04-06) - -- #43: M1 Mac support - -### **4.7.1** (2022-03-30) - -- Improve browser autofill -- factorization - -## **4.7.0** (2022-03-17) - -- Add support for options validator -- remove duplicate dependency - -## **4.6.0** (2022-03-07) - -- Remove powerhooks as dev dependency - -### **4.5.5** (2022-03-07) - -- Update tss-react - -### **4.5.4** (2022-03-06) - -- Remove tss-react from peerDependencies (it becomes a dependency) -- (dev script) Use tsconfig.json to tell we are at the root of the project - -### **4.5.3** (2022-01-26) - -- Themes no longer have to break on minor Keycloakify update - -### **4.5.2** (2022-01-20) - -- Test container uses Keycloak 16.1.0 -- Merge pull request #78 from InseeFrLab/Ann2827/pull - -Ann2827/pull -- Refactor #78 -- Compat with Keycloak 16 (and probably 17, 18) #79 -- Warning about compat issues with Keycloak 16 -- fix: changes -- fix: Errors on pages login-idp-link-confirm and login-idp-link-email - -ref: https://github.com/InseeFrLab/keycloakify/issues/75 - -### **4.5.1** (2022-01-18) - -- fix previous version - -## **4.5.0** (2022-01-18) - -- Read public/CNAME for domain name in --externel-assets mode - -## **4.4.0** (2022-01-01) - -- Merge pull request #73 from lazToum/main - -(feature) added login-page-expired.ftl -- added login-page-expired.ftl -- Add update instruction for 4.3.0 - -## **4.3.0** (2021-12-27) - -- Merge pull request #72 from praiz/main - -feat(*): added login-update-password -- feat(*): added login-update-password - -### **4.2.21** (2021-12-27) - -- update dependencies - -### **4.2.19** (2021-12-21) - -- Merge pull request #70 from VBustamante/patch-1 -- Added realm name field to KcContext mocks object -- Merge pull request #69 from VBustamante/patch-1 - -Adding name field to realm in KcContext type -- Adding name field to realm in KcContext type - -### **4.2.18** (2021-12-17) - -- Improve css url() import (fix CRA 5) - -### **4.2.17** (2021-12-16) - -- Fix path.join polyfill - -### **4.2.16** (2021-12-16) - - - -### **4.2.15** (2021-12-16) - -- use custom polyfill for path.join (fix webpack 5 build) - -### **4.2.14** (2021-12-12) - -- Merge pull request #65 from InseeFrLab/doge_ftl_errors - -Prevent ftl errors in Keycloak log -- Encourage users to report errors in logs -- Fix ftl error related to url.loginAction in saml-post-form.ftl -- Ftl prevent error with updateProfileCtx -- Ftl prevent error with auth.attemptedUsername -- Fix ftl error as comment formatting -- Merge remote-tracking branch 'origin/main' into doge_ftl_errors -- Update README, remove all instruction about errors in logs -- Avoid error in Keycloak logs, fix long template loading time -- Add missing collon in README sample code - -Add miss ',' - -### **4.2.13** (2021-12-08) - -- Fix broken link about how to import fonts #62 -- Add a video to show how to test the theme in a local container - -### **4.2.12** (2021-12-08) - -- Update post build instructions - -### **4.2.11** (2021-12-07) - - - -### **4.2.10** (2021-11-12) - -- Export an exaustive list of KcLanguageTag - -### **4.2.9** (2021-11-11) - -- Fix useAdvancedMsg - -### **4.2.8** (2021-11-10) - -- Update doc about pattern that can be used for user attributes #50 -- Bring back Safari compat - -### **4.2.7** (2021-11-09) - -- Fix useFormValidationSlice - -### **4.2.6** (2021-11-08) - -- Fix deepClone so we can overwrite with undefined in when we mock kcContext - -### **4.2.5** (2021-11-07) - -- Better debugging experience with user profile - -### **4.2.4** (2021-11-01) - -- Better autoComplete typings - -### **4.2.3** (2021-11-01) - -- Make it more easy to understand that error in the log are expected - -### **4.2.2** (2021-10-27) - -- Replace 'path' by 'browserify-path' #47 - -### **4.2.1** (2021-10-26) - -- useFormValidationSlice: update when params have changed -- Explains that the password can't be validated - -## **4.2.0** (2021-10-26) - -- Export types definitions for Attribue and Validator - -## **4.1.0** (2021-10-26) - -- Document what's new in v4 - -# **4.0.0** (2021-10-26) - -- fix RegisterUserProfile password confirmation field -- Much better support for frontend field validation -- Fix css injection order -- Makes the download output predictable. This fixes the case where GitHub redirects and wget was trying to download a filename called "15.0.2", and then unzip wouldn't pick it up. -Changes wget to curl because curl is awesome. -L is to follow the GitHub redirects. -- Remove duplicates - -### **3.0.2** (2021-10-18) - -- Scan deeper to retreive user attribute - -### **3.0.1** (2021-10-17) - -- Add client.description in type kcContext type def - -# **3.0.0** (2021-10-16) - - - -### **2.5.3** (2021-10-16) - - - -### **2.5.2** (2021-10-13) - - - -### **2.5.1** (2021-10-13) - -- Update tss-react - -## **2.5.0** (2021-10-12) - -- register-user-profile.ftl tested working -- Make kcMessage more easily hackable -- fix useKcMessage -- Implement and type validators -- Remove syntax error in ftl and make it more directly debugable -- Support register-user-profile.ftl - -## **2.4.0** (2021-10-08) - -- #38: Implement messagesPerField existsError and get - -## **2.3.0** (2021-10-07) - -- #20: Support advancedMsg - -## **2.2.0** (2021-10-07) - -- Feat scrip: download-builtin-keycloak-theme for downloading any version of the builtin themes -- Use the latest version of keycloak for testing -- Test locally with 15.0.2 instead of 11.0.3 - -## **2.1.0** (2021-10-06) - -- Support Hungarian and Danish (use Keycloak 15 language resources) - -### **2.0.20** (2021-10-05) - -- Update README.md - -### **2.0.19** (2021-09-17) - -- Fix kcContext type definitions - -### **2.0.18** (2021-09-14) - - - -### **2.0.17** (2021-09-14) - - - -### **2.0.16** (2021-09-12) - -- Add explaination about errors in logs - -### **2.0.15** (2021-08-31) - -- Update tss-react - -### **2.0.14** (2021-08-20) - -- Update tss-react - -### **2.0.13** (2021-08-04) - -- Merge pull request #28 from marcmrf/main - -fix(mvn): scoped packages compatibility -- fix(mvn): scoped packages compatibility - -### **2.0.12** (2021-07-28) - -- Merge pull request #27 from jchn-codes/patch-1 - -add maven to requirements -- add maven to requirements -- Add #bluehats in the keyworks - -### **2.0.11** (2021-07-21) - -- Spaces in file path #22 -- uptdate dependnecies -- Inport specific powerhooks files to reduce bundle size - -### **2.0.10** (2021-07-16) - -- Update dependencies - -### **2.0.9** (2021-07-14) - -- Fix #21 - -### **2.0.8** (2021-07-12) - -- Fix previous release -- #20: Add def for clientId and name on kcContext.client - -### **2.0.6** (2021-07-08) - -- Merge pull request #18 from asashay/add-custom-props-to-theme-properties - -Add possibility to add custom properties to theme.properties file -- add possibility to add custom properties to theme.properties file - -### **2.0.5** (2021-07-05) - -- Fix broken url for big stylesheet #16 - -### **2.0.4** (2021-07-03) - -- Fix: #7 - -### **2.0.3** (2021-06-30) - -- Escape double quote in ftl to js conversion #15 -- Update readme - -### **2.0.2** (2021-06-28) - -- Updagte README for implementing non incuded pages - -### **2.0.1** (2021-06-28) - -- Update documentation for v2 - -# **2.0.0** (2021-06-28) - -- Fix last bugs before relasing v2 -- Implement a mechanism to overload kcContext -- Give the option in template to pull the default assets or not -- Enable possiblity to support custom pages (without forking keycloakify) -- Implement a getter for kcContext -- Update README.md - -# **2.0.0** (2021-06-28) - -- Fix last bugs before relasing v2 -- Implement a mechanism to overload kcContext -- Give the option in template to pull the default assets or not -- Enable possiblity to support custom pages (without forking keycloakify) -- Implement a getter for kcContext -- Update README.md - -### **1.2.1** (2021-06-22) - -- Remove unessesary log - -## **1.2.0** (2021-06-22) - -- Generate kcContext automatically :rocket: - -### **1.1.6** (2021-06-21) - -- Fix: Alert messages sometimes includes HTML that is not rendered -- Update dist - -### **1.1.5** (2021-06-15) - -- #11: Provide socials in the register - -### **1.1.4** (2021-06-15) - -- Merge pull request #12 from InseeFrLab/email-typo - -Fix typo on email -- Fix typo on email - -### **1.1.3** (2021-06-14) - -- Add missing key in Login for providers - -### **1.1.2** (2021-06-14) - - - -### **1.1.1** (2021-06-14) - - - -## **1.1.0** (2021-06-14) - -- Add login-idp-link-confirm.ftl -- Fix login-update-profile.ftl -- Add login-update-profile.ftl page -- Fix default background bug -- Remove unused 'markdown' dependency -- Fix warning related to powerhooks_useGlobalState_kcLanguageTag -- Update README.md - -### **1.0.4** (2021-05-28) - -- Instructions for custom themes with custom components - -### **1.0.3** (2021-05-23) - -- Instuction about how to integrate with non CRA projects -- Add mention to awesome list - -### **1.0.2** (2021-05-01) - - - -### **1.0.1** (2021-05-01) - -- Fix: LoginOtp (and not otc) - -# **1.0.0** (2021-05-01) - -- #4: Guide for implementing a missing page -- Support OTP #4 - -### **0.4.4** (2021-04-29) - -- Fix previous release - -### **0.4.3** (2021-04-29) - -- Add infos about the plugin that defines authorizedMailDomains - -### **0.4.2** (2021-04-29) - -- Client side validation of allowed email domains -- Support email whitlisting -- Restore kickstart video in the readme -- Update README.md -- Update README.md -- Important readme update - -### **0.4.1** (2021-04-11) - -- Quietly re-introduce --external-assets -- Give example of customization - -## **0.4.0** (2021-04-09) - -- Acual support of Therms of services - -### **0.3.24** (2021-04-08) - -- Add missing dependency: markdown - -### **0.3.23** (2021-04-08) - -- Allow to lazily load therms - -### **0.3.22** (2021-04-08) - -- update powerhooks -- Support terms and condition -- Fix info.ftl -- For useKcMessage we prefer returning callbacks with a changing references - -### **0.3.21** (2021-04-04) - -- Update powerhooks - -### **0.3.20** (2021-04-01) - -- Always catch freemarker errors - -### **0.3.19** (2021-04-01) - -- Fix previous release - -### **0.3.18** (2021-04-01) - -- Fix error.ftt, Adopt best effort strategy to convert ftl values into JS - -### **0.3.17** (2021-03-29) - -- Use push instead of replace in keycloak-js adapter to enable going back - -### **0.3.15** (2021-03-28) - -- Remove all reference to --external-assets, broken feature - -### **0.3.14** (2021-03-28) - -- Fix standalone mode: imports from js - -### **0.3.13** (2021-03-26) - - - -### **0.3.12** (2021-03-26) - -- Fix mocksContext - -### **0.3.11** (2021-03-26) - -- Fix previous build, improve README - -### **0.3.10** (2021-03-26) - -- Handle