Skip to content

Commit

Permalink
Merge pull request #78 from Metatavu/feature-77-server-side-render-de…
Browse files Browse the repository at this point in the history
…precated

Server side render deprecated
  • Loading branch information
platonovsimeon committed Aug 9, 2023
2 parents 888d38c + 502e2dd commit 669224c
Show file tree
Hide file tree
Showing 6 changed files with 112 additions and 32 deletions.
2 changes: 1 addition & 1 deletion gutenberg/blocks/js/linkedevents-blocks.js

Large diffs are not rendered by default.

134 changes: 108 additions & 26 deletions gutenberg/blocks/ts/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 gutenberg/blocks/ts/src/components/event-list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class EventList extends React.Component<Props, State> {
public render() {
return (
<div>
<wp.components.ServerSideRender block="linkedevents/list-block"
<wp.serverSideRender block="linkedevents/list-block"
attributes={ this.props.attributes }
urlQueryArgs={{ preview: true }} />
</div>
Expand Down
3 changes: 1 addition & 2 deletions gutenberg/blocks/ts/src/types/wp.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ declare module "wp" {
}

export interface WPEditor {
ServerSideRender: any,
AutosaveMonitor: any,
DocumentOutline: any,
DocumentOutlineCheck: any,
Expand Down Expand Up @@ -241,7 +240,6 @@ declare module "wp" {
ResponsiveWrapper: any,
SandBox: any,
Spinner: any,
ServerSideRender: any,
TabPanel: any,
TextareaControl: any,
ToggleControl: any,
Expand Down Expand Up @@ -301,6 +299,7 @@ declare module "wp" {
compose: WPCompose;
i18n: WPI18n,
apiFetch: any;
serverSideRender: any;
}


Expand Down
1 change: 0 additions & 1 deletion 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 wordpress-linkedevents.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Created on Aug 22, 2018
* Plugin Name: Linked Events
* Description: Wordpress plugin to manage Linked Events API
* Version: 2.2.1
* Version: 2.2.2
* Author: Metatavu Oy
*/

Expand Down

0 comments on commit 669224c

Please sign in to comment.