@pushwoosh/rpc-v2-http-api-data 0.2.168 → 0.2.170

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.
package/data.js CHANGED
@@ -2730,6 +2730,14 @@ export const data = {
2730
2730
  "hideOnDesktop": {
2731
2731
  "type": "boolean",
2732
2732
  "optional": true
2733
+ },
2734
+ "backgroundImageFit": {
2735
+ "type": "pushwoosh.aibuilder.v1.CardImageFit",
2736
+ "optional": true
2737
+ },
2738
+ "backgroundImagePosition": {
2739
+ "type": "pushwoosh.aibuilder.v1.CardImagePosition",
2740
+ "optional": true
2733
2741
  }
2734
2742
  }
2735
2743
  },
@@ -2803,6 +2811,10 @@ export const data = {
2803
2811
  "borderRadius": {
2804
2812
  "type": "number",
2805
2813
  "optional": true
2814
+ },
2815
+ "borderRadiusCss": {
2816
+ "type": "string",
2817
+ "optional": true
2806
2818
  }
2807
2819
  }
2808
2820
  },
@@ -2872,6 +2884,14 @@ export const data = {
2872
2884
  "borderRadius": {
2873
2885
  "type": "number",
2874
2886
  "optional": true
2887
+ },
2888
+ "backgroundImageFit": {
2889
+ "type": "pushwoosh.aibuilder.v1.CardImageFit",
2890
+ "optional": true
2891
+ },
2892
+ "backgroundImagePosition": {
2893
+ "type": "pushwoosh.aibuilder.v1.CardImagePosition",
2894
+ "optional": true
2875
2895
  }
2876
2896
  }
2877
2897
  },
@@ -3503,6 +3523,22 @@ export const data = {
3503
3523
  "imageRatio": {
3504
3524
  "type": "number",
3505
3525
  "optional": true
3526
+ },
3527
+ "mobileHeight": {
3528
+ "type": "string",
3529
+ "optional": true
3530
+ },
3531
+ "mobileImageFit": {
3532
+ "type": "pushwoosh.aibuilder.v1.CardImageFit",
3533
+ "optional": true
3534
+ },
3535
+ "mobileImageRatio": {
3536
+ "type": "number",
3537
+ "optional": true
3538
+ },
3539
+ "borderRadiusCss": {
3540
+ "type": "string",
3541
+ "optional": true
3506
3542
  }
3507
3543
  }
3508
3544
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-v2-http-api-data",
3
- "version": "0.2.168",
3
+ "version": "0.2.170",
4
4
  "description": "RPC V2 HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
@@ -246,8 +246,8 @@ export type BlockStyles = {
246
246
  borderRadius?: number;
247
247
  /**
248
248
  * CSS border-radius shorthand for per-corner rounding ("20px 20px 0px
249
- * 0px"). Written by Unlayer conversion; clients render border_radius
250
- * when set (user-edited uniform value wins), else this.
249
+ * 0px"). Written by Unlayer conversion and by the editor's corner-radius
250
+ * field, which clears border_radius so this one applies.
251
251
  */
252
252
  borderRadiusCss?: string;
253
253
  /**
@@ -263,6 +263,12 @@ export type BlockStyles = {
263
263
  */
264
264
  hideOnMobile?: boolean;
265
265
  hideOnDesktop?: boolean;
266
+ /**
267
+ * How background_image sits in the block. Unset renders exactly as before —
268
+ * cover/center — so a document written without these fields never moves.
269
+ */
270
+ backgroundImageFit?: CardImageFit;
271
+ backgroundImagePosition?: CardImagePosition;
266
272
  };
267
273
  /** Two-stop CSS linear gradient: `linear-gradient(<angle>deg, from, to)`. */
268
274
  export type BackgroundGradient = {
@@ -313,6 +319,8 @@ export type CardStyles = {
313
319
  export type ImageStyles = {
314
320
  /** Corner rounding, px. Unset (or 0) = square. */
315
321
  borderRadius?: number;
322
+ /** Per-corner shorthand ("20px 20px 0px 0px"); border_radius wins when both are set. */
323
+ borderRadiusCss?: string;
316
324
  };
317
325
  export type DefaultStyles = {
318
326
  common: BlockStyles;
@@ -372,6 +380,12 @@ export type DocumentSettings = {
372
380
  * Client-managed render-only chrome, like show_shadow.
373
381
  */
374
382
  borderRadius?: number;
383
+ /**
384
+ * How background_image sits behind the document; same unset contract as the
385
+ * BlockStyles pair. Client-managed.
386
+ */
387
+ backgroundImageFit?: CardImageFit;
388
+ backgroundImagePosition?: CardImagePosition;
375
389
  };
376
390
  export type TextBlock = {
377
391
  variant: string;
@@ -860,6 +874,22 @@ export type Image = {
860
874
  imagePosition?: CardImagePosition;
861
875
  /** Crop box: image height as a percentage of the rendered width. Unset = natural. */
862
876
  imageRatio?: number;
877
+ /**
878
+ * Phone-side overrides of the geometry above; unset = inherit the desktop
879
+ * value. Client-managed, same contract as mobile_width.
880
+ */
881
+ mobileHeight?: string;
882
+ mobileImageFit?: CardImageFit;
883
+ /**
884
+ * Honoured only where image_ratio already crops: switching a crop on or off
885
+ * swaps markup, which a media query cannot do.
886
+ */
887
+ mobileImageRatio?: number;
888
+ /**
889
+ * Per-corner rounding as a CSS shorthand ("20px 20px 0px 0px"). Set by the
890
+ * editor instead of border_radius, which wins whenever both are present.
891
+ */
892
+ borderRadiusCss?: string;
863
893
  };
864
894
  export type AiBuilderCard = {
865
895
  layout: CardLayout;