v5.34.1

webiny/webiny-jsv5.34.1Feb 1, 2023by adrians5j

AI Summary

Introduces the `[@ps]` cache directive for GraphQL, switches to Apollo for form data loading, and adds customizable sort fields and reference population in Headless CMS.

Key Highlights

  • Introduce `[@ps]` cache directive for GraphQL
  • Use Apollo client to load form data
  • Enable customizable sort fields and reference population
  • Make MainContent and Layout composable

New Features

  • GraphQL caching directive
  • Composable providers and routes
  • Customizable sort fields

Full Release Notes

## [5.34.1](https://github.com/webiny/webiny-js/compare/v5.34.0...v5.34.1) (2023-02-01)


### Bug Fixes

* **api-headless-cms:** customizable sort fields ([#2986](https://github.com/webiny/webiny-js/issues/2986)) ([85ed92e](https://github.com/webiny/webiny-js/commit/85ed92e45de9545bad41204447589e10e3e0a74f))
* **api-headless-cms:** move modelId field to original gql type ([#2991](https://github.com/webiny/webiny-js/issues/2991)) ([1c42b48](https://github.com/webiny/webiny-js/commit/1c42b484ba8a7934640f1946e5fe7bf8abb7116c))
* **api-headless-cms:** populate reference field ([#2987](https://github.com/webiny/webiny-js/issues/2987)) ([32f9170](https://github.com/webiny/webiny-js/commit/32f9170237b0987e2b480beb467ae8a416371cf2))
* **api-headless-cms:** search with dash in term ([#2989](https://github.com/webiny/webiny-js/issues/2989)) ([2651244](https://github.com/webiny/webiny-js/commit/265124495c4c60822e169ec540dadbf138aabd86))
* **api-headless-cms-ddb:** remove hasOwnProperty check on where object ([#2995](https://github.com/webiny/webiny-js/issues/2995)) ([d34f660](https://github.com/webiny/webiny-js/commit/d34f66009bfc56ec8b458541eb3405328503f135))
* **app:** add react-composition TS references to app package ([7f7a70f](https://github.com/webiny/webiny-js/commit/7f7a70faf1ab1a717e947c20bfe824dcc8d803de))
* **app:** make debounceRender time configurable ([4b6967c](https://github.com/webiny/webiny-js/commit/4b6967c517c138ea6fcca2eafc0fb228ad9e9db7))
* **app-apw:** wrong graphql calls ([#2970](https://github.com/webiny/webiny-js/issues/2970)) ([db57e9c](https://github.com/webiny/webiny-js/commit/db57e9cea8c67ff475fd61abc5f8c1b34e570208))
* **app-mailer:** component did not reload on state change ([#2994](https://github.com/webiny/webiny-js/issues/2994)) ([29b0835](https://github.com/webiny/webiny-js/commit/29b0835bc90440f6463ab03419a68e7fbead6044))
* **app-mailer:** move module to app-serverless-cms ([#2988](https://github.com/webiny/webiny-js/issues/2988)) ([aa840a1](https://github.com/webiny/webiny-js/commit/aa840a1665dfa8aa61fa9b9786ffee5764d31bdf))
* **app-page-builder:** improve context hooks and add loadThemeFromPlugins ([844ed1c](https://github.com/webiny/webiny-js/commit/844ed1cdc2ad4e87d0a8401d03f64d33c43145a8))
* **app-page-builder-elements:** add theme object to callback dependencies ([efbf031](https://github.com/webiny/webiny-js/commit/efbf031625dca93cd2d7f6adc5dff126c481b2ce))
* **app-page-builder-elements:** improve PageContext types ([9fd4b18](https://github.com/webiny/webiny-js/commit/9fd4b1869ae14883f80322d3612253c2baded1b1))
* **app-theme-manager:** use loadThemeFromPlugins to load theme in PB provider ([bfcf97f](https://github.com/webiny/webiny-js/commit/bfcf97f9f9e280b47f28bb8ec17b7b75cf44bac9))
* **app-theme-manager:** wrap theme loader into a website plugin ([31fb40b](https://github.com/webiny/webiny-js/commit/31fb40b8f5f64ef3d79d9e8947c3613b366c1e8b))
* **app-website:** expose providers and routes props ([d59e089](https://github.com/webiny/webiny-js/commit/d59e0899ff13867cfa122460790e9f94a28f2984))
* **app-website:** make main rendering components composable ([84a8a9b](https://github.com/webiny/webiny-js/commit/84a8a9bbbedfc8bad5906a15270e8ac1f1f4b7b2))
* **app-website:** make MainContent and Layout composable ([d39772d](https://github.com/webiny/webiny-js/commit/d39772d0e120e7df0125acfd439b36f31d506811))
* **app-website:** mount PB provider before user-provided providers ([74b4711](https://github.com/webiny/webiny-js/commit/74b471171e136bde9baedfac72ba92c4b0adb3d3))
* adjust default paragraph `line-height` ([#2990](https://github.com/webiny/webiny-js/issues/2990)) ([fcc4d9e](https://github.com/webiny/webiny-js/commit/fcc4d9e5b89861b1c3eada29b33ffb9237e1b5c9))
* **app-website:** remove theme loader ([4c7f051](https://github.com/webiny/webiny-js/commit/4c7f05137e15c2aeb6b7fb7713b262128866950f))
* **handler:** correct order of reply output ([#2972](https://github.com/webiny/webiny-js/issues/2972)) ([15a72be](https://github.com/webiny/webiny-js/commit/15a72be4c88ec194732770508f64413e22b9702e))
* add missing `formId` property ([fbdce1b](https://github.com/webiny/webiny-js/commit/fbdce1b9c834f8c448c896838fd4df42c43ecd84))
* cache `FbGetPublishedForm` operation too ([82c506d](https://github.com/webiny/webiny-js/commit/82c506dbe86b952b56b61e437626b54ee86681db))
* do not include parentheses when inspecting import paths ([121a990](https://github.com/webiny/webiny-js/commit/121a990e61fc4b08c6c617c0dc46baa10c3dde40))
* ensure form's `ps-tag` contains the parent ID ([f020250](https://github.com/webiny/webiny-js/commit/f020250bb480fc0e9b9efd463fe4f236ec0463b0))
* ensure no double `p` tags are used ([4819e81](https://github.com/webiny/webiny-js/commit/4819e819e6cc30a858bbae0f5f7ea3fac1983869))
* immediately assign `FormData` if possible (without `useEffect`) ([f45b279](https://github.com/webiny/webiny-js/commit/f45b279a9fb8fccc14236ee70ada45f0d4ddb575))
* move GQL queries into a separate file ([039736b](https://github.com/webiny/webiny-js/commit/039736b7bc65573664e0fb9987fa0e0586999009))
* remove `@types/lodash` dependency ([286660c](https://github.com/webiny/webiny-js/commit/286660c9bb5bdf618a74ad570c4eb5bfdf6ce5cb))
* remove `@types/lodash` dependency ([03a04ed](https://github.com/webiny/webiny-js/commit/03a04ed474927035c14dd8e76026c9ee28edfd6e))
* remove old `parent` property ([fb0a0ab](https://github.com/webiny/webiny-js/commit/fb0a0ab0b5afe76ff6b24f2626dad7c352319ab3))
* remove old and redundant folders ([5dc4876](https://github.com/webiny/webiny-js/commit/5dc487656e4a5d8104974403f5c9e2571143d956))
* remove old and redundant folders ([95fe763](https://github.com/webiny/webiny-js/commit/95fe7638f0436a4a1679aa71aaaff9c71c41aba7))
* remove redundant `console.log` call ([e453e46](https://github.com/webiny/webiny-js/commit/e453e4671929ba267ccc5486e292931cc285d6e9))
* reorder colors and make comments nicer ([31225ea](https://github.com/webiny/webiny-js/commit/31225ea770f7f7a9e5a679963e93787a26fa09b0))
* reorder colors and make comments nicer ([32832ad](https://github.com/webiny/webiny-js/commit/32832ad6845b2a693a70331cfd577e6ee5f8073f))
* revert the plugins-loading setup ([2ea8792](https://github.com/webiny/webiny-js/commit/2ea8792834380b3f0bc1c39a4381f1bb42d1dcf2))
* send renderers via a getter fn ([4e7cbda](https://github.com/webiny/webiny-js/commit/4e7cbdaf1a48c4af02e36278aee36e37e878b70e))
* trim every item in the folders list ([26087d3](https://github.com/webiny/webiny-js/commit/26087d3994d2755caa68744371a39cea434479cf))
* unify `ps-tag` declarations and move them into root `types.ts` file ([870d28b](https://github.com/webiny/webiny-js/commit/870d28b7a276db8d5d0be6dfb72130a085843a55))
* unify `ps-tag` declarations and move them into root `types.ts` file ([a299f04](https://github.com/webiny/webiny-js/commit/a299f0414512ddc85cc68fde93763f946a2cf7ee))
* use `[@ps](https://github.com/ps)(cache: true)` directive ([cfdbfb5](https://github.com/webiny/webiny-js/commit/cfdbfb5deedca89c0a7606b2a58f3d1a1bd71d54))
* use `FbGetPublishedForm` name ([85467e5](https://github.com/webiny/webiny-js/commit/85467e5c941c6b7f4747b0911bdda7009c543a84))
* use `FbGetPublishedForm` name ([6b2ea08](https://github.com/webiny/webiny-js/commit/6b2ea08594064fc8905aaeebccd59d4797c28c47))
* use Apollo to load form data ([1eef929](https://github.com/webiny/webiny-js/commit/1eef92993f436c5b82433118f3aaf8c4a4ce61d4))
* user `formId` instead of `parent` ([fd00b87](https://github.com/webiny/webiny-js/commit/fd00b87ab3628303573bc89f944b3152319f65db))
* **api-i18n:** variable keeps old tenant after switch between tenants ([#2960](https://github.com/webiny/webiny-js/issues/2960)) ([b574941](https://github.com/webiny/webiny-js/commit/b5749414f535387a603626dbcaebc0bb367d3c5f))
* **ui:** use flex-end rule on list subheaders ([25f5168](https://github.com/webiny/webiny-js/commit/25f5168ee4eb362c3fefe4402eea031ae64e095b))


### Features

* `GetFormDataLoader` can return `FormData` too ([71704f1](https://github.com/webiny/webiny-js/commit/71704f104ba7770c1225883c86d0d2cdc4916d7f))
* add ability to pass renderers as a getter fn ([fab85e9](https://github.com/webiny/webiny-js/commit/fab85e95b1371de9f02c40e1fa5bdd559dbf288f))
* add ability to specify a list of apps ([29bd055](https://github.com/webiny/webiny-js/commit/29bd05514575e1ea7996acfd2ba7c2968f1006ba))
* introduce `[@ps](https://github.com/ps)` directive ([4997475](https://github.com/webiny/webiny-js/commit/499747589813c8254f88eee581b3cdb7ef17efee))
* use `[@ps](https://github.com/ps)` GQL directive to determine if the data needs to be cached or not ([60486f9](https://github.com/webiny/webiny-js/commit/60486f9f03bf899a492c3ea19822476c3471a055))