Skip to content

Commit

Permalink
1.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
MattiasBuelens committed Feb 15, 2024
1 parent 7997aa8 commit b981d3c
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 11 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
> - ๐Ÿ  Internal
> - ๐Ÿ’… Polish
## Unreleased
## v1.7.0 (2024-02-15)

- ๐Ÿš€ Added support for loading in Node for static site generation (SSG) or server-side rendering (SSR). ([#50](https://github.com/THEOplayer/web-ui/pull/50))
- โš ๏ธ Although the Node entry point exports all custom element classes as usual, attempting to actually construct those classes will result in errors. Most dependencies are either replaced with stubs (using [`@lit-labs/ssr-dom-shim`](https://lit.dev/docs/ssr/dom-emulation/)) or removed altogether (such as THEOplayer itself).
Expand Down
12 changes: 6 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@theoplayer/web-ui",
"version": "1.6.0",
"version": "1.7.0",
"description": "UI component library for the THEOplayer Web SDK",
"main": "dist/THEOplayerUI.js",
"module": "dist/THEOplayerUI.mjs",
Expand Down
3 changes: 2 additions & 1 deletion react/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,14 @@
> - ๐Ÿ  Internal
> - ๐Ÿ’… Polish
## Unreleased
## v1.7.0 (2024-02-15)

- ๐Ÿš€ Added support for loading in Node for static site generation (SSG) or server-side rendering (SSR). ([#50](https://github.com/THEOplayer/web-ui/pull/50))
- This allows you to pass React components (such as `<DefaultUI>`, `<UIContainer>` or `<PlayButton>`) to the [Server React DOM APIs](https://react.dev/reference/react-dom/server), or to use them with a framework that supports SSG or SSR (such as Next.js, Remix or Gatsby).
- โš ๏ธ The rendered HTML must still be [hydrated](https://react.dev/reference/react-dom/client/hydrateRoot#hydrating-server-rendered-html) on the client to load the Open Video UI properly. (Usually, this handled automatically by your React framework.)
- ๐Ÿš€ Added utility hooks such as `useCurrentTime()`, `usePaused()` and `useVolume()`. ([#51](https://github.com/THEOplayer/web-ui/pull/51))
- See [the API documentation](https://theoplayer.github.io/web-ui/react-api/) for more information.
- ๐Ÿ  See changes to [Open Video UI for Web v1.7.0](https://github.com/THEOplayer/web-ui/blob/v1.7.0/CHANGELOG.md)

## v1.6.0 (2024-02-08)

Expand Down
4 changes: 2 additions & 2 deletions react/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@theoplayer/react-ui",
"version": "1.6.0",
"version": "1.7.0",
"description": "React component library for the THEOplayer Web SDK",
"main": "dist/THEOplayerReactUI.js",
"module": "dist/THEOplayerReactUI.mjs",
Expand Down Expand Up @@ -50,7 +50,7 @@
},
"dependencies": {
"@lit/react": "^1.0.2",
"@theoplayer/web-ui": "^1.6.0"
"@theoplayer/web-ui": "^1.7.0"
},
"peerDependencies": {
"@types/react": "^16.3.0 || ^17 || ^18",
Expand Down

0 comments on commit b981d3c

Please sign in to comment.