Skip to content

Commit a222516

Browse files
authored
Release v1.34.0 (#283)
1 parent ab09785 commit a222516

File tree

13 files changed

+537
-348
lines changed

13 files changed

+537
-348
lines changed

.editorconfig

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,9 @@ insert_final_newline = true
1010

1111
[*.yml]
1212
indent_size = 2
13+
14+
[tailwind.config.cjs]
15+
indent_size = 2
16+
17+
[src/components/ui/*]
18+
indent_size = 2

CHANGELOG.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,16 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

88
## [Unreleased]
99

10+
## [1.34.0] - 2025-05-13
11+
12+
### Added
13+
- Allow to trust device during mfa credential registration
14+
15+
### Fixed
16+
17+
- Embed TailwindCSS utils in bundle
18+
- Wrap dialog with theme provider (react portal)
19+
1020
## [1.33.2] - 2025-04-10
1121

1222
### Fixed
@@ -597,7 +607,9 @@ The eye icon is now correctly displayed in the Auth widget.
597607

598608
First version of the SDK Web UI.
599609

600-
[Unreleased]: https://github.com/ReachFive/identity-web-ui-sdk/compare/v1.33.2...HEAD
610+
[Unreleased]: https://github.com/ReachFive/identity-web-ui-sdk/compare/v1.34.0...HEAD
611+
612+
[1.34.0]: https://github.com/ReachFive/identity-web-ui-sdk/compare/v1.33.2...v1.34.0
601613

602614
[1.33.2]: https://github.com/ReachFive/identity-web-ui-sdk/compare/v1.33.1...v1.33.2
603615

package-lock.json

Lines changed: 25 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@reachfive/identity-ui",
3-
"version": "1.33.2",
3+
"version": "1.34.0",
44
"description": "ReachFive Identity Web UI SDK",
55
"author": "ReachFive",
66
"repository": {
@@ -31,7 +31,7 @@
3131
"lint": "eslint -c eslint.config.mjs src/"
3232
},
3333
"dependencies": {
34-
"@reachfive/identity-core": "^1.35.1",
34+
"@reachfive/identity-core": "^1.36.0",
3535
"buffer": "^6.0.3",
3636
"char-info": "0.3.2",
3737
"class-variance-authority": "^0.7.1",
@@ -60,6 +60,7 @@
6060
"@babel/preset-typescript": "^7.23.2",
6161
"@eslint/js": "^9.16.0",
6262
"@jest/globals": "^29.7.0",
63+
"@rollup/plugin-alias": "^5.1.1",
6364
"@rollup/plugin-commonjs": "^25.0.7",
6465
"@rollup/plugin-dynamic-import-vars": "^2.1.2",
6566
"@rollup/plugin-node-resolve": "^15.2.3",

rollup.config.js

Lines changed: 57 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,26 @@
1+
import alias from '@rollup/plugin-alias';
12
import commonjs from '@rollup/plugin-commonjs';
23
import dynamicImportVars from '@rollup/plugin-dynamic-import-vars';
3-
import replace from '@rollup/plugin-replace';
44
import { nodeResolve } from '@rollup/plugin-node-resolve';
5+
import replace from '@rollup/plugin-replace';
56
import terser from '@rollup/plugin-terser';
6-
import url from '@rollup/plugin-url'
7-
import svg from '@svgr/rollup'
8-
import dts from 'rollup-plugin-dts'
9-
import esbuild from 'rollup-plugin-esbuild'
7+
import url from '@rollup/plugin-url';
8+
import svg from '@svgr/rollup';
9+
import dts from 'rollup-plugin-dts';
10+
import esbuild from 'rollup-plugin-esbuild';
1011
import postcss from "rollup-plugin-postcss";
1112

12-
import pkg from './package.json' with { type: 'json' }
13-
const dependencies = Object.keys(pkg.dependencies)
13+
import path, { dirname } from 'node:path';
14+
import { fileURLToPath } from 'node:url';
15+
16+
const __dirname = dirname(fileURLToPath(import.meta.url));
17+
18+
import packageJson from './package.json' with { type: 'json' };
19+
const dependencies = Object.keys(packageJson.dependencies)
1420

1521
const banner = [
1622
`/**`,
17-
` * ${pkg.name} - v${pkg.version}`,
23+
` * ${packageJson.name} - v${packageJson.version}`,
1824
` * Compiled ${(new Date()).toUTCString().replace(/GMT/g, 'UTC')}`,
1925
` *`,
2026
` * Copyright (c) ReachFive.`,
@@ -24,18 +30,35 @@ const banner = [
2430
` **/`,
2531
].join('\n');
2632

27-
// Ignore Luxon library's circular dependencies
28-
function onWarn(message) {
29-
if ( message.code === 'CIRCULAR_DEPENDENCY' || message.code === 'MODULE_LEVEL_DIRECTIVE') return;
30-
console.warn( message);
33+
/**
34+
* Ignore Luxon library's circular dependencies
35+
* @param {Partial<import('rollup').RollupLog>} warning
36+
* @returns {void}
37+
*/
38+
const onWarn = (warning) => {
39+
if ( warning.code === 'CIRCULAR_DEPENDENCY' || warning.code === 'MODULE_LEVEL_DIRECTIVE') return;
40+
console.warn(warning);
3141
}
3242

43+
/**
44+
* @param {Partial<import('rollup').RollupOptions>} config
45+
* @returns {import('rollup').RollupOptions}
46+
*/
3347
const bundle = config => ({
3448
...config,
3549
input: 'src/index.ts',
3650
})
3751

52+
/** @type {import('rollup').InputPluginOption} */
3853
const plugins = [
54+
alias({
55+
entries: [
56+
{
57+
find: /^@\/(.*)/,
58+
replacement: path.resolve(__dirname, './src/$1')
59+
}
60+
]
61+
}),
3962
replace({
4063
preventAssignment: true,
4164
values: {
@@ -44,7 +67,7 @@ const plugins = [
4467
}),
4568
nodeResolve({
4669
browser: true,
47-
extensions: ['.jsx', '.js', '.json'],
70+
extensions: ['.tsx', '.ts', '.jsx', '.js', '.json'],
4871
preferBuiltins: true
4972
}),
5073
commonjs({ include: /node_modules/ }),
@@ -61,29 +84,32 @@ const plugins = [
6184
}),
6285
]
6386

87+
/** @type {import('rollup').RollupOptions[]} */
6488
export default [
6589
bundle({
6690
plugins,
67-
external: dependencies.concat(['@/lib/utils']),
91+
external: dependencies,
6892
output: [
6993
{
7094
banner,
71-
file: 'cjs/identity-ui.js',
95+
file: packageJson.main,
7296
format: 'cjs',
7397
sourcemap: true,
7498
inlineDynamicImports: true,
7599
},
76100
{
77101
banner,
78-
file: 'es/identity-ui.js',
102+
file: packageJson.module,
79103
format: 'es',
80104
sourcemap: true,
81105
inlineDynamicImports: true,
82106
},
83107
{
84-
file: 'es/identity-ui.min.js',
108+
file: packageJson.module.replace('.js', '.min.js'),
85109
format: 'es',
86-
plugins: [terser({ output: { preamble: banner } })],
110+
plugins: [
111+
terser({ output: { preamble: banner } })
112+
],
87113
sourcemap: true,
88114
inlineDynamicImports: true,
89115
},
@@ -92,25 +118,31 @@ export default [
92118
}),
93119
bundle({
94120
plugins,
95-
external: ['@/lib/utils'],
121+
external: [],
96122
output: [
97123
{
98124
banner,
99-
file: 'umd/identity-ui.js',
125+
file: packageJson.main.replace('cjs/', 'umd/'),
100126
format: 'umd',
101127
name: 'reach5Widgets',
102128
sourcemap: true,
103129
inlineDynamicImports: true,
104-
globals: { '@reachfive/identity-core': 'reach5', "@/lib/utils": "tw-cl-merge" },
130+
globals: {
131+
'@reachfive/identity-core': 'reach5'
132+
},
105133
},
106134
{
107-
file: 'umd/identity-ui.min.js',
135+
file: packageJson.main.replace('cjs/', 'umd/').replace('.js', '.min.js'),
108136
format: 'umd',
109137
name: 'reach5Widgets',
110-
plugins: [terser({ output: { preamble: banner } })],
138+
plugins: [
139+
terser({ output: { preamble: banner } })
140+
],
111141
sourcemap: true,
112142
inlineDynamicImports: true,
113-
globals: { '@reachfive/identity-core': 'reach5', "@/lib/utils": "tw-cl-merge" },
143+
globals: {
144+
'@reachfive/identity-core': 'reach5'
145+
},
114146
},
115147
],
116148
onwarn: onWarn
@@ -121,7 +153,7 @@ export default [
121153
],
122154
output: {
123155
banner,
124-
file: 'types/identity-ui.d.ts',
156+
file: packageJson.types,
125157
format: 'es',
126158
},
127159
onwarn: onWarn

0 commit comments

Comments
 (0)