File tree Expand file tree Collapse file tree 2 files changed +33
-10
lines changed Expand file tree Collapse file tree 2 files changed +33
-10
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,11 @@ import './editor.scss';
19
19
20
20
export const name = 'calendly' ;
21
21
export const title = __ ( 'Calendly' , 'jetpack' ) ;
22
+ const supports = {
23
+ align : true ,
24
+ alignWide : false ,
25
+ html : false ,
26
+ } ;
22
27
export const settings = {
23
28
title,
24
29
description : __ ( 'Embed a calendar for customers to schedule appointments' , 'jetpack' ) ,
@@ -29,11 +34,7 @@ export const settings = {
29
34
__ ( 'schedule' , 'jetpack' ) ,
30
35
__ ( 'appointments' , 'jetpack' ) ,
31
36
] ,
32
- supports : {
33
- align : true ,
34
- alignWide : false ,
35
- html : false ,
36
- } ,
37
+ supports,
37
38
edit,
38
39
save : ( { attributes : { url } } ) => (
39
40
< div >
@@ -61,4 +62,11 @@ export const settings = {
61
62
} ,
62
63
] ,
63
64
} ,
65
+ deprecated : [
66
+ {
67
+ attributes,
68
+ supports,
69
+ save : ( { attributes : { url } } ) => < a href = { url } > { url } </ a > ,
70
+ } ,
71
+ ] ,
64
72
} ;
Original file line number Diff line number Diff line change @@ -20,7 +20,10 @@ import './view.scss';
20
20
export const name = 'opentable' ;
21
21
export const title = __ ( 'OpenTable' , 'jetpack' ) ;
22
22
import { getAttributesFromEmbedCode , restRefRegex , ridRegex } from './utils' ;
23
-
23
+ const supports = {
24
+ align : true ,
25
+ html : false ,
26
+ } ;
24
27
export const settings = {
25
28
title,
26
29
description : __ ( 'Allow visitors to book a reservation with OpenTable' , 'jetpack' ) ,
@@ -31,10 +34,7 @@ export const settings = {
31
34
__ ( 'reservation' , 'jetpack' ) ,
32
35
__ ( 'restaurant' , 'jetpack' ) ,
33
36
] ,
34
- supports : {
35
- align : true ,
36
- html : false ,
37
- } ,
37
+ supports,
38
38
edit,
39
39
save : ( { attributes : { rid } } ) => (
40
40
< div >
@@ -71,4 +71,19 @@ export const settings = {
71
71
} ,
72
72
] ,
73
73
} ,
74
+ deprecated : [
75
+ {
76
+ attributes : defaultAttributes ,
77
+ supports,
78
+ save : ( { attributes : { rid } } ) => (
79
+ < >
80
+ { rid . map ( restaurantId => (
81
+ < a href = { `https://www.opentable.com/restref/client/?rid=${ restaurantId } ` } >
82
+ { `https://www.opentable.com/restref/client/?rid=${ restaurantId } ` }
83
+ </ a >
84
+ ) ) }
85
+ </ >
86
+ ) ,
87
+ } ,
88
+ ] ,
74
89
} ;
You can’t perform that action at this time.
0 commit comments