Skip to content

Commit f0b9679

Browse files
committed
chore: bump Usercentrics script example version to latest
1 parent 3eaa6ef commit f0b9679

3 files changed

Lines changed: 10 additions & 10 deletions

File tree

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ ReactDOM.render(
3535
<MyApplication /** You can interact with Usercentrics inside the provider */ />
3636
</UsercentricsProvider>
3737
</>,
38-
document.body
38+
document.body,
3939
)
4040
```
4141

@@ -93,7 +93,7 @@ interface UsercentricsScriptProps
9393
* The specific version of Usercentrics UI to load instead of "latest", as a string value
9494
*
9595
* @default "latest"
96-
* @example "3.21.1"
96+
* @example "3.24.0"
9797
* @see https://releases.usercentrics.com/en?category=browser+ui&role=cmpv1%3Bcmpv2%3B
9898
*/
9999
uiVersion?: string
@@ -112,7 +112,7 @@ interface UsercentricsScriptProps
112112
;() => <UsercentricsScript settingsId="1234" version="preview" />
113113

114114
/* Fixed UI version instead of latest */
115-
;() => <UsercentricsScript settingsId="1234" uiVersion="3.21.1" />
115+
;() => <UsercentricsScript settingsId="1234" uiVersion="3.24.0" />
116116
```
117117

118118
#### `UsercentricsProvider`

src/components/UsercentricsScript.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ interface UsercentricsScriptProps
88
* The specific version of Usercentrics UI to load instead of "latest", as a string value
99
*
1010
* @default "latest"
11-
* @example "3.21.1"
11+
* @example "3.24.0"
1212
* @see https://releases.usercentrics.com/en?category=browser+ui&role=cmpv1%3Bcmpv2%3B
1313
*/
1414
uiVersion?: string
@@ -30,7 +30,7 @@ interface UsercentricsScriptProps
3030
* () => <UsercentricsScript settingsId="1234" version="preview" />
3131
*
3232
* @example <caption>Fixed UI version instead of latest</caption>
33-
* () => <UsercentricsScript settingsId="1234" uiVersion="3.21.1" />
33+
* () => <UsercentricsScript settingsId="1234" uiVersion="3.24.0" />
3434
*/
3535
export const UsercentricsScript: FC<UsercentricsScriptProps> = ({
3636
id = 'usercentrics-cmp',

tests/components/UsercentricsScript.test.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,26 +33,26 @@ describe('Usercentrics', () => {
3333
})
3434

3535
it('should allow specifying UI version', () => {
36-
const { container } = render(<UsercentricsScript settingsId="1234" uiVersion="3.21.1" />)
36+
const { container } = render(<UsercentricsScript settingsId="1234" uiVersion="3.24.0" />)
3737

3838
expect(container.firstChild).toHaveAttribute(
3939
'src',
40-
'https://app.usercentrics.eu/browser-ui/3.21.1/loader.js',
40+
'https://app.usercentrics.eu/browser-ui/3.24.0/loader.js',
4141
)
4242
})
4343

4444
it('should allow passing integrity prop', () => {
4545
const { container } = render(
4646
<UsercentricsScript
4747
settingsId="1234"
48-
uiVersion="3.21.1"
49-
integrity="sha384-PMBjS7JXD1R1uiHpU+QuCVc4KxgMdBegmc52UyT+uWQ2+BlptesLtmCBdPXxusIP"
48+
uiVersion="3.24.0"
49+
integrity="sha384-WRloNuM/QNkzJ4GkUAZgJ5CWgTFhVjsLKVQbACSHGOifUvw2WJk1QaY9mphkn96U"
5050
/>,
5151
)
5252

5353
expect(container.firstChild).toHaveAttribute(
5454
'integrity',
55-
'sha384-PMBjS7JXD1R1uiHpU+QuCVc4KxgMdBegmc52UyT+uWQ2+BlptesLtmCBdPXxusIP',
55+
'sha384-WRloNuM/QNkzJ4GkUAZgJ5CWgTFhVjsLKVQbACSHGOifUvw2WJk1QaY9mphkn96U',
5656
)
5757
})
5858

0 commit comments

Comments
 (0)