react-datocms 4.0.4 → 4.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/useQuerySubscription/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,EACL,gBAAgB,GAKjB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,2BAA2B,IAAI,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAyB9F,MAAM,UAAU,oBAAoB,CAGlC,OAA0D;IAClD,IAAA,OAAO,GAA4B,OAAO,QAAnC,EAAE,WAAW,GAAe,OAAO,YAAtB,EAAK,KAAK,UAAK,OAAO,EAA5C,0BAAkC,CAAF,CAAa;IAE7C,IAAA,KAAoB,QAAQ,CAA0B,IAAI,CAAC,EAA1D,KAAK,QAAA,EAAE,QAAQ,QAA2C,CAAC;IAC5D,IAAA,KAAkB,QAAQ,CAAqB,IAAI,CAAC,EAAnD,IAAI,QAAA,EAAE,OAAO,QAAsC,CAAC;IACrD,IAAA,KAAsB,QAAQ,CAClC,OAAO,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,QAAQ,CAClC,EAFM,MAAM,QAAA,EAAE,SAAS,QAEvB,CAAC;IAEF,IAAM,uBAAuB,GAAG,KAG/B,CAAC;IAEF,oBAAoB,CAAC;QACnB,IAAI,OAAO,KAAK,KAAK,EAAE;YACrB,SAAS,CAAC,QAAQ,CAAC,CAAC;YAEpB,OAAO;gBACL,yCAAyC;YAC3C,CAAC,CAAC;SACH;QAED,IAAI,WAAiC,CAAC;QAEtC,SAAe,SAAS;;;;gCACR,qBAAM,gBAAgB,uBAC/B,uBAAuB,KAC1B,cAAc,EAAE,UAAC,MAAM;oCACrB,SAAS,CAAC,MAAM,CAAC,CAAC;gCACpB,CAAC,EACD,QAAQ,EAAE,UAAC,UAAU;oCACnB,QAAQ,CAAC,IAAI,CAAC,CAAC;oCACf,OAAO,CAAC,UAAU,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;gCACpC,CAAC,EACD,cAAc,EAAE,UAAC,SAAS;oCACxB,OAAO,CAAC,IAAI,CAAC,CAAC;oCACd,QAAQ,CAAC,SAAS,CAAC,CAAC;gCACtB,CAAC,IACD,EAAA;;4BAbF,WAAW,GAAG,SAaZ,CAAC;;;;;SACJ;QAED,SAAS,EAAE,CAAC;QAEZ,OAAO;YACL,IAAI,WAAW,EAAE;gBACf,WAAW,EAAE,CAAC;aACf;QACH,CAAC,CAAC;IACJ,CAAC,EAAE,CAAC,uBAAuB,CAAC,CAAC,CAAC;IAE9B,OAAO,EAAE,KAAK,OAAA,EAAE,MAAM,QAAA,EAAE,IAAI,EAAE,IAAI,IAAI,WAAW,EAAE,CAAC;AACtD,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/useQuerySubscription/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,EACL,gBAAgB,GAKjB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,2BAA2B,IAAI,oBAAoB,GACpD,MAAM,yBAAyB,CAAC;AAyBjC,MAAM,UAAU,oBAAoB,CAGlC,OAA0D;IAClD,IAAA,OAAO,GAA4B,OAAO,QAAnC,EAAE,WAAW,GAAe,OAAO,YAAtB,EAAK,KAAK,UAAK,OAAO,EAA5C,0BAAkC,CAAF,CAAa;IAE7C,IAAA,KAAoB,QAAQ,CAA0B,IAAI,CAAC,EAA1D,KAAK,QAAA,EAAE,QAAQ,QAA2C,CAAC;IAC5D,IAAA,KAAkB,QAAQ,CAAqB,IAAI,CAAC,EAAnD,IAAI,QAAA,EAAE,OAAO,QAAsC,CAAC;IACrD,IAAA,KAAsB,QAAQ,CAClC,OAAO,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,QAAQ,CAClC,EAFM,MAAM,QAAA,EAAE,SAAS,QAEvB,CAAC;IAEF,IAAM,uBAAuB,GAAG,KAG/B,CAAC;IAEF,oBAAoB,CAAC;QACnB,IAAI,OAAO,KAAK,KAAK,EAAE;YACrB,SAAS,CAAC,QAAQ,CAAC,CAAC;YAEpB,OAAO;gBACL,yCAAyC;YAC3C,CAAC,CAAC;SACH;QAED,IAAI,WAAiC,CAAC;QAEtC,SAAe,SAAS;;;;gCACR,qBAAM,gBAAgB,uBAC/B,uBAAuB,KAC1B,cAAc,EAAE,UAAC,MAAM;oCACrB,SAAS,CAAC,MAAM,CAAC,CAAC;gCACpB,CAAC,EACD,QAAQ,EAAE,UAAC,UAAU;oCACnB,QAAQ,CAAC,IAAI,CAAC,CAAC;oCACf,OAAO,CAAC,UAAU,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;gCACpC,CAAC,EACD,cAAc,EAAE,UAAC,SAAS;oCACxB,OAAO,CAAC,IAAI,CAAC,CAAC;oCACd,QAAQ,CAAC,SAAS,CAAC,CAAC;gCACtB,CAAC,IACD,EAAA;;4BAbF,WAAW,GAAG,SAaZ,CAAC;;;;;SACJ;QAED,SAAS,EAAE,CAAC;QAEZ,OAAO;YACL,IAAI,WAAW,EAAE;gBACf,WAAW,EAAE,CAAC;aACf;QACH,CAAC,CAAC;IACJ,CAAC,EAAE,CAAC,uBAAuB,CAAC,CAAC,CAAC;IAE9B,OAAO,EAAE,KAAK,OAAA,EAAE,MAAM,QAAA,EAAE,IAAI,EAAE,IAAI,IAAI,WAAW,EAAE,CAAC;AACtD,CAAC"}
@@ -31,6 +31,8 @@ export declare type ImagePropTypes = {
31
31
  className?: string;
32
32
  /** Additional CSS class for the image inside the `<picture />` tag */
33
33
  pictureClassName?: string;
34
+ /** Additional CSS class for the placeholder image */
35
+ placeholderClassName?: string;
34
36
  /** Duration (in ms) of the fade-in transition effect upoad image loading */
35
37
  fadeInDuration?: number;
36
38
  /** @deprecated Use the intersectionThreshold prop */
@@ -45,6 +47,8 @@ export declare type ImagePropTypes = {
45
47
  style?: React.CSSProperties;
46
48
  /** Additional CSS rules to add to the image inside the `<picture />` tag */
47
49
  pictureStyle?: React.CSSProperties;
50
+ /** Additional CSS rules to add to the placeholder image */
51
+ placeholderStyle?: React.CSSProperties;
48
52
  /**
49
53
  * The layout behavior of the image as the viewport changes size
50
54
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-datocms",
3
- "version": "4.0.4",
3
+ "version": "4.0.6",
4
4
  "types": "dist/types/index.d.ts",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -35,11 +35,13 @@
35
35
  "react": "^17.0.2",
36
36
  "react-dom": "^17.0.2",
37
37
  "rimraf": "^3.0.2",
38
+ "rome": "^10.0.1",
38
39
  "ts-jest": "^26.5.5",
39
40
  "typescript": "^4.5.5"
40
41
  },
41
42
  "scripts": {
42
43
  "build": "rimraf dist && tsc && tsc --project ./tsconfig.esnext.json",
44
+ "format": "rome format --write src",
43
45
  "watch": "rimraf dist && tsc --watch",
44
46
  "prepare": "npm run test && npm run build",
45
47
  "test": "jest --coverage",
@@ -23,6 +23,8 @@ exports[`Image layout=fill not visible renders the blur-up thumb 1`] = `
23
23
  Object {
24
24
  "height": "100%",
25
25
  "left": 0,
26
+ "maxHeight": "none",
27
+ "maxWidth": "none",
26
28
  "overflow": "hidden",
27
29
  "position": "absolute",
28
30
  "top": 0,
@@ -40,6 +42,8 @@ exports[`Image layout=fill not visible renders the blur-up thumb 1`] = `
40
42
  "backgroundColor": undefined,
41
43
  "height": "110%",
42
44
  "left": "-5%",
45
+ "maxHeight": "none",
46
+ "maxWidth": "none",
43
47
  "objectFit": undefined,
44
48
  "objectPosition": undefined,
45
49
  "opacity": 1,
@@ -80,6 +84,8 @@ exports[`Image layout=fill visible image loaded shows the image 1`] = `
80
84
  Object {
81
85
  "height": "100%",
82
86
  "left": 0,
87
+ "maxHeight": "none",
88
+ "maxWidth": "none",
83
89
  "overflow": "hidden",
84
90
  "position": "absolute",
85
91
  "top": 0,
@@ -97,6 +103,8 @@ exports[`Image layout=fill visible image loaded shows the image 1`] = `
97
103
  "backgroundColor": undefined,
98
104
  "height": "110%",
99
105
  "left": "-5%",
106
+ "maxHeight": "none",
107
+ "maxWidth": "none",
100
108
  "objectFit": undefined,
101
109
  "objectPosition": undefined,
102
110
  "opacity": 0,
@@ -120,6 +128,8 @@ exports[`Image layout=fill visible image loaded shows the image 1`] = `
120
128
  Object {
121
129
  "height": "100%",
122
130
  "left": 0,
131
+ "maxHeight": "none",
132
+ "maxWidth": "none",
123
133
  "objectFit": undefined,
124
134
  "objectPosition": undefined,
125
135
  "opacity": 1,
@@ -157,6 +167,8 @@ exports[`Image layout=fill visible renders the image (minimal data) 1`] = `
157
167
  Object {
158
168
  "height": "100%",
159
169
  "left": 0,
170
+ "maxHeight": "none",
171
+ "maxWidth": "none",
160
172
  "overflow": "hidden",
161
173
  "position": "absolute",
162
174
  "top": 0,
@@ -174,6 +186,8 @@ exports[`Image layout=fill visible renders the image (minimal data) 1`] = `
174
186
  "backgroundColor": undefined,
175
187
  "height": "110%",
176
188
  "left": "-5%",
189
+ "maxHeight": "none",
190
+ "maxWidth": "none",
177
191
  "objectFit": undefined,
178
192
  "objectPosition": undefined,
179
193
  "opacity": 1,
@@ -196,6 +210,8 @@ exports[`Image layout=fill visible renders the image (minimal data) 1`] = `
196
210
  Object {
197
211
  "height": "100%",
198
212
  "left": 0,
213
+ "maxHeight": "none",
214
+ "maxWidth": "none",
199
215
  "objectFit": undefined,
200
216
  "objectPosition": undefined,
201
217
  "opacity": 0,
@@ -237,6 +253,8 @@ exports[`Image layout=fill visible renders the image 1`] = `
237
253
  Object {
238
254
  "height": "100%",
239
255
  "left": 0,
256
+ "maxHeight": "none",
257
+ "maxWidth": "none",
240
258
  "overflow": "hidden",
241
259
  "position": "absolute",
242
260
  "top": 0,
@@ -254,6 +272,8 @@ exports[`Image layout=fill visible renders the image 1`] = `
254
272
  "backgroundColor": undefined,
255
273
  "height": "110%",
256
274
  "left": "-5%",
275
+ "maxHeight": "none",
276
+ "maxWidth": "none",
257
277
  "objectFit": undefined,
258
278
  "objectPosition": undefined,
259
279
  "opacity": 1,
@@ -277,6 +297,8 @@ exports[`Image layout=fill visible renders the image 1`] = `
277
297
  Object {
278
298
  "height": "100%",
279
299
  "left": 0,
300
+ "maxHeight": "none",
301
+ "maxWidth": "none",
280
302
  "objectFit": undefined,
281
303
  "objectPosition": undefined,
282
304
  "opacity": 0,
@@ -344,6 +366,8 @@ exports[`Image layout=fixed not visible renders the blur-up thumb 1`] = `
344
366
  "backgroundColor": undefined,
345
367
  "height": "110%",
346
368
  "left": "-5%",
369
+ "maxHeight": "none",
370
+ "maxWidth": "none",
347
371
  "objectFit": undefined,
348
372
  "objectPosition": undefined,
349
373
  "opacity": 1,
@@ -409,6 +433,8 @@ exports[`Image layout=fixed visible image loaded shows the image 1`] = `
409
433
  "backgroundColor": undefined,
410
434
  "height": "110%",
411
435
  "left": "-5%",
436
+ "maxHeight": "none",
437
+ "maxWidth": "none",
412
438
  "objectFit": undefined,
413
439
  "objectPosition": undefined,
414
440
  "opacity": 0,
@@ -432,6 +458,8 @@ exports[`Image layout=fixed visible image loaded shows the image 1`] = `
432
458
  Object {
433
459
  "height": "100%",
434
460
  "left": 0,
461
+ "maxHeight": "none",
462
+ "maxWidth": "none",
435
463
  "objectFit": undefined,
436
464
  "objectPosition": undefined,
437
465
  "opacity": 1,
@@ -494,6 +522,8 @@ exports[`Image layout=fixed visible renders the image (minimal data) 1`] = `
494
522
  "backgroundColor": undefined,
495
523
  "height": "110%",
496
524
  "left": "-5%",
525
+ "maxHeight": "none",
526
+ "maxWidth": "none",
497
527
  "objectFit": undefined,
498
528
  "objectPosition": undefined,
499
529
  "opacity": 1,
@@ -516,6 +546,8 @@ exports[`Image layout=fixed visible renders the image (minimal data) 1`] = `
516
546
  Object {
517
547
  "height": "100%",
518
548
  "left": 0,
549
+ "maxHeight": "none",
550
+ "maxWidth": "none",
519
551
  "objectFit": undefined,
520
552
  "objectPosition": undefined,
521
553
  "opacity": 0,
@@ -582,6 +614,8 @@ exports[`Image layout=fixed visible renders the image 1`] = `
582
614
  "backgroundColor": undefined,
583
615
  "height": "110%",
584
616
  "left": "-5%",
617
+ "maxHeight": "none",
618
+ "maxWidth": "none",
585
619
  "objectFit": undefined,
586
620
  "objectPosition": undefined,
587
621
  "opacity": 1,
@@ -605,6 +639,8 @@ exports[`Image layout=fixed visible renders the image 1`] = `
605
639
  Object {
606
640
  "height": "100%",
607
641
  "left": 0,
642
+ "maxHeight": "none",
643
+ "maxWidth": "none",
608
644
  "objectFit": undefined,
609
645
  "objectPosition": undefined,
610
646
  "opacity": 0,
@@ -673,6 +709,8 @@ exports[`Image layout=intrinsic not visible renders the blur-up thumb 1`] = `
673
709
  "backgroundColor": undefined,
674
710
  "height": "110%",
675
711
  "left": "-5%",
712
+ "maxHeight": "none",
713
+ "maxWidth": "none",
676
714
  "objectFit": undefined,
677
715
  "objectPosition": undefined,
678
716
  "opacity": 1,
@@ -739,6 +777,8 @@ exports[`Image layout=intrinsic visible image loaded shows the image 1`] = `
739
777
  "backgroundColor": undefined,
740
778
  "height": "110%",
741
779
  "left": "-5%",
780
+ "maxHeight": "none",
781
+ "maxWidth": "none",
742
782
  "objectFit": undefined,
743
783
  "objectPosition": undefined,
744
784
  "opacity": 0,
@@ -762,6 +802,8 @@ exports[`Image layout=intrinsic visible image loaded shows the image 1`] = `
762
802
  Object {
763
803
  "height": "100%",
764
804
  "left": 0,
805
+ "maxHeight": "none",
806
+ "maxWidth": "none",
765
807
  "objectFit": undefined,
766
808
  "objectPosition": undefined,
767
809
  "opacity": 1,
@@ -825,6 +867,8 @@ exports[`Image layout=intrinsic visible renders the image (minimal data) 1`] = `
825
867
  "backgroundColor": undefined,
826
868
  "height": "110%",
827
869
  "left": "-5%",
870
+ "maxHeight": "none",
871
+ "maxWidth": "none",
828
872
  "objectFit": undefined,
829
873
  "objectPosition": undefined,
830
874
  "opacity": 1,
@@ -847,6 +891,8 @@ exports[`Image layout=intrinsic visible renders the image (minimal data) 1`] = `
847
891
  Object {
848
892
  "height": "100%",
849
893
  "left": 0,
894
+ "maxHeight": "none",
895
+ "maxWidth": "none",
850
896
  "objectFit": undefined,
851
897
  "objectPosition": undefined,
852
898
  "opacity": 0,
@@ -914,6 +960,8 @@ exports[`Image layout=intrinsic visible renders the image 1`] = `
914
960
  "backgroundColor": undefined,
915
961
  "height": "110%",
916
962
  "left": "-5%",
963
+ "maxHeight": "none",
964
+ "maxWidth": "none",
917
965
  "objectFit": undefined,
918
966
  "objectPosition": undefined,
919
967
  "opacity": 1,
@@ -937,6 +985,8 @@ exports[`Image layout=intrinsic visible renders the image 1`] = `
937
985
  Object {
938
986
  "height": "100%",
939
987
  "left": 0,
988
+ "maxHeight": "none",
989
+ "maxWidth": "none",
940
990
  "objectFit": undefined,
941
991
  "objectPosition": undefined,
942
992
  "opacity": 0,
@@ -1004,6 +1054,8 @@ exports[`Image layout=responsive not visible renders the blur-up thumb 1`] = `
1004
1054
  "backgroundColor": undefined,
1005
1055
  "height": "110%",
1006
1056
  "left": "-5%",
1057
+ "maxHeight": "none",
1058
+ "maxWidth": "none",
1007
1059
  "objectFit": undefined,
1008
1060
  "objectPosition": undefined,
1009
1061
  "opacity": 1,
@@ -1069,6 +1121,8 @@ exports[`Image layout=responsive visible image loaded shows the image 1`] = `
1069
1121
  "backgroundColor": undefined,
1070
1122
  "height": "110%",
1071
1123
  "left": "-5%",
1124
+ "maxHeight": "none",
1125
+ "maxWidth": "none",
1072
1126
  "objectFit": undefined,
1073
1127
  "objectPosition": undefined,
1074
1128
  "opacity": 0,
@@ -1092,6 +1146,8 @@ exports[`Image layout=responsive visible image loaded shows the image 1`] = `
1092
1146
  Object {
1093
1147
  "height": "100%",
1094
1148
  "left": 0,
1149
+ "maxHeight": "none",
1150
+ "maxWidth": "none",
1095
1151
  "objectFit": undefined,
1096
1152
  "objectPosition": undefined,
1097
1153
  "opacity": 1,
@@ -1154,6 +1210,8 @@ exports[`Image layout=responsive visible renders the image (minimal data) 1`] =
1154
1210
  "backgroundColor": undefined,
1155
1211
  "height": "110%",
1156
1212
  "left": "-5%",
1213
+ "maxHeight": "none",
1214
+ "maxWidth": "none",
1157
1215
  "objectFit": undefined,
1158
1216
  "objectPosition": undefined,
1159
1217
  "opacity": 1,
@@ -1176,6 +1234,8 @@ exports[`Image layout=responsive visible renders the image (minimal data) 1`] =
1176
1234
  Object {
1177
1235
  "height": "100%",
1178
1236
  "left": 0,
1237
+ "maxHeight": "none",
1238
+ "maxWidth": "none",
1179
1239
  "objectFit": undefined,
1180
1240
  "objectPosition": undefined,
1181
1241
  "opacity": 0,
@@ -1242,6 +1302,8 @@ exports[`Image layout=responsive visible renders the image 1`] = `
1242
1302
  "backgroundColor": undefined,
1243
1303
  "height": "110%",
1244
1304
  "left": "-5%",
1305
+ "maxHeight": "none",
1306
+ "maxWidth": "none",
1245
1307
  "objectFit": undefined,
1246
1308
  "objectPosition": undefined,
1247
1309
  "opacity": 1,
@@ -1265,6 +1327,8 @@ exports[`Image layout=responsive visible renders the image 1`] = `
1265
1327
  Object {
1266
1328
  "height": "100%",
1267
1329
  "left": 0,
1330
+ "maxHeight": "none",
1331
+ "maxWidth": "none",
1268
1332
  "objectFit": undefined,
1269
1333
  "objectPosition": undefined,
1270
1334
  "opacity": 0,
@@ -49,6 +49,8 @@ export type ImagePropTypes = {
49
49
  className?: string;
50
50
  /** Additional CSS class for the image inside the `<picture />` tag */
51
51
  pictureClassName?: string;
52
+ /** Additional CSS class for the placeholder image */
53
+ placeholderClassName?: string;
52
54
  /** Duration (in ms) of the fade-in transition effect upoad image loading */
53
55
  fadeInDuration?: number;
54
56
  /** @deprecated Use the intersectionThreshold prop */
@@ -63,6 +65,8 @@ export type ImagePropTypes = {
63
65
  style?: React.CSSProperties;
64
66
  /** Additional CSS rules to add to the image inside the `<picture />` tag */
65
67
  pictureStyle?: React.CSSProperties;
68
+ /** Additional CSS rules to add to the placeholder image */
69
+ placeholderStyle?: React.CSSProperties;
66
70
  /**
67
71
  * The layout behavior of the image as the viewport changes size
68
72
  *
@@ -147,7 +151,7 @@ const buildSrcSet = (
147
151
  width: number | undefined,
148
152
  candidateMultipliers: number[],
149
153
  ) => {
150
- if (!src || !width) {
154
+ if (!(src && width)) {
151
155
  return undefined;
152
156
  }
153
157
 
@@ -206,6 +210,8 @@ export const Image = forwardRef<HTMLDivElement, ImagePropTypes>(
206
210
  priority = false,
207
211
  sizes,
208
212
  srcSetCandidates = [0.25, 0.5, 0.75, 1, 1.5, 2, 3, 4],
213
+ placeholderClassName,
214
+ placeholderStyle,
209
215
  },
210
216
  ref,
211
217
  ) => {
@@ -241,7 +247,9 @@ export const Image = forwardRef<HTMLDivElement, ImagePropTypes>(
241
247
  const callbackRef = useCallback(
242
248
  (_ref: HTMLDivElement) => {
243
249
  viewRef(_ref);
244
- if (ref) (ref as React.MutableRefObject<HTMLDivElement>).current = _ref;
250
+ if (ref) {
251
+ (ref as React.MutableRefObject<HTMLDivElement>).current = _ref;
252
+ }
245
253
  },
246
254
  [viewRef],
247
255
  );
@@ -252,6 +260,8 @@ export const Image = forwardRef<HTMLDivElement, ImagePropTypes>(
252
260
  top: 0,
253
261
  width: '100%',
254
262
  height: '100%',
263
+ maxWidth: 'none',
264
+ maxHeight: 'none',
255
265
  };
256
266
 
257
267
  const addImage = imageAddStrategy({
@@ -292,6 +302,7 @@ export const Image = forwardRef<HTMLDivElement, ImagePropTypes>(
292
302
  aria-hidden="true"
293
303
  alt=""
294
304
  src={data.base64 ?? undefined}
305
+ className={placeholderClassName}
295
306
  style={{
296
307
  backgroundColor: data.bgColor ?? undefined,
297
308
  objectFit,
@@ -307,6 +318,9 @@ export const Image = forwardRef<HTMLDivElement, ImagePropTypes>(
307
318
  top: '-5%',
308
319
  width: '110%',
309
320
  height: '110%',
321
+ maxWidth: 'none',
322
+ maxHeight: 'none',
323
+ ...placeholderStyle,
310
324
  }}
311
325
  />
312
326
  ) : null;