@pushwoosh/rpc-gateway-ai-assistant 0.1.143 → 0.1.144
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 +37 -6
- package/package.json +1 -1
- package/pushwoosh_aibuilder_v1.d.ts +54 -10
package/data.js
CHANGED
|
@@ -58,6 +58,36 @@ export const data = {
|
|
|
58
58
|
"CARD_IMAGE_FIT_FILL"
|
|
59
59
|
]
|
|
60
60
|
},
|
|
61
|
+
"pushwoosh.aibuilder.v1.CardImageSizeUnit": {
|
|
62
|
+
"type": "E",
|
|
63
|
+
"values": [
|
|
64
|
+
"CARD_IMAGE_SIZE_UNIT_UNSPECIFIED",
|
|
65
|
+
"CARD_IMAGE_SIZE_UNIT_PX",
|
|
66
|
+
"CARD_IMAGE_SIZE_UNIT_PERCENT"
|
|
67
|
+
]
|
|
68
|
+
},
|
|
69
|
+
"pushwoosh.aibuilder.v1.CardImageSize": {
|
|
70
|
+
"type": "I",
|
|
71
|
+
"fields": {
|
|
72
|
+
"value": {
|
|
73
|
+
"type": "number"
|
|
74
|
+
},
|
|
75
|
+
"unit": {
|
|
76
|
+
"type": "pushwoosh.aibuilder.v1.CardImageSizeUnit"
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
"pushwoosh.aibuilder.v1.CardImagePosition": {
|
|
81
|
+
"type": "I",
|
|
82
|
+
"fields": {
|
|
83
|
+
"x": {
|
|
84
|
+
"type": "number"
|
|
85
|
+
},
|
|
86
|
+
"y": {
|
|
87
|
+
"type": "number"
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
},
|
|
61
91
|
"pushwoosh.aibuilder.v1.TextVariantStyle": {
|
|
62
92
|
"type": "I",
|
|
63
93
|
"fields": {
|
|
@@ -145,10 +175,6 @@ export const data = {
|
|
|
145
175
|
"pushwoosh.aibuilder.v1.CardStyles": {
|
|
146
176
|
"type": "I",
|
|
147
177
|
"fields": {
|
|
148
|
-
"accentFitPadding": {
|
|
149
|
-
"type": "pushwoosh.aibuilder.v1.EdgeInsets",
|
|
150
|
-
"optional": true
|
|
151
|
-
},
|
|
152
178
|
"contentPadding": {
|
|
153
179
|
"type": "pushwoosh.aibuilder.v1.EdgeInsets",
|
|
154
180
|
"optional": true
|
|
@@ -406,8 +432,13 @@ export const data = {
|
|
|
406
432
|
"imageFit": {
|
|
407
433
|
"type": "pushwoosh.aibuilder.v1.CardImageFit"
|
|
408
434
|
},
|
|
409
|
-
"
|
|
410
|
-
"type": "
|
|
435
|
+
"imageSize": {
|
|
436
|
+
"type": "pushwoosh.aibuilder.v1.CardImageSize",
|
|
437
|
+
"optional": true
|
|
438
|
+
},
|
|
439
|
+
"imagePosition": {
|
|
440
|
+
"type": "pushwoosh.aibuilder.v1.CardImagePosition",
|
|
441
|
+
"optional": true
|
|
411
442
|
}
|
|
412
443
|
}
|
|
413
444
|
},
|
package/package.json
CHANGED
|
@@ -83,8 +83,51 @@ export type CardImageFit = 'CARD_IMAGE_FIT_UNSPECIFIED'
|
|
|
83
83
|
* and other assets that must not be cropped.
|
|
84
84
|
*/
|
|
85
85
|
| 'CARD_IMAGE_FIT_CONTAIN'
|
|
86
|
-
/**
|
|
86
|
+
/**
|
|
87
|
+
* Stretch to fit, distorting aspect ratio. Deprecated — no longer
|
|
88
|
+
* offered in the editor and dropped from the LLM schema; kept only for
|
|
89
|
+
* wire compatibility.
|
|
90
|
+
*/
|
|
87
91
|
| 'CARD_IMAGE_FIT_FILL';
|
|
92
|
+
/** Unit for CardImageSize.value. */
|
|
93
|
+
export type CardImageSizeUnit =
|
|
94
|
+
/** value ignored → client default */
|
|
95
|
+
'CARD_IMAGE_SIZE_UNIT_UNSPECIFIED'
|
|
96
|
+
/** absolute pixels */
|
|
97
|
+
| 'CARD_IMAGE_SIZE_UNIT_PX'
|
|
98
|
+
/** % of the card content-box width */
|
|
99
|
+
| 'CARD_IMAGE_SIZE_UNIT_PERCENT';
|
|
100
|
+
/**
|
|
101
|
+
* CardImageSize sizes the image slot. Which dimension it drives depends on
|
|
102
|
+
* AiBuilderCard.layout:
|
|
103
|
+
* LEFT / RIGHT → width of the image column
|
|
104
|
+
* TOP → height of the image
|
|
105
|
+
* BACKGROUND → height of the card (width is always 100%)
|
|
106
|
+
* NO → no image, ignored
|
|
107
|
+
* PERCENT is always measured against the card content-box WIDTH, so a
|
|
108
|
+
* percentage height yields a stable aspect ratio regardless of card width.
|
|
109
|
+
* Client-managed: the LLM never sets this; the backend round-trips it
|
|
110
|
+
* verbatim. value <= 0 (or unit UNSPECIFIED) is treated as unset → the
|
|
111
|
+
* client falls back to its default.
|
|
112
|
+
*/
|
|
113
|
+
export type CardImageSize = {
|
|
114
|
+
value: number;
|
|
115
|
+
unit: CardImageSizeUnit;
|
|
116
|
+
};
|
|
117
|
+
/**
|
|
118
|
+
* CardImagePosition is the focus / anchor of the image within its slot
|
|
119
|
+
* (CSS object-position). One field serves both UI modes:
|
|
120
|
+
* CONTAIN → "set position" (where the fitted image sits)
|
|
121
|
+
* COVER → "focal point" (which point stays in frame when cropped)
|
|
122
|
+
* Percentages 0..100; (0,0) = top-left, (50,50) = centre. Client-managed:
|
|
123
|
+
* the LLM never sets this; the backend round-trips it verbatim.
|
|
124
|
+
*/
|
|
125
|
+
export type CardImagePosition = {
|
|
126
|
+
/** horizontal, % (left) */
|
|
127
|
+
x: number;
|
|
128
|
+
/** vertical, % (top) */
|
|
129
|
+
y: number;
|
|
130
|
+
};
|
|
88
131
|
export type TextVariantStyle = {
|
|
89
132
|
fontSize: number;
|
|
90
133
|
fontWeight: number;
|
|
@@ -165,11 +208,6 @@ export type ColumnsStyles = {
|
|
|
165
208
|
padding?: EdgeInsets;
|
|
166
209
|
};
|
|
167
210
|
export type CardStyles = {
|
|
168
|
-
/**
|
|
169
|
-
* Padding applied to the image column when accent_fit is enabled on
|
|
170
|
-
* the card (see AiBuilderCard.accent_fit). Ignored otherwise.
|
|
171
|
-
*/
|
|
172
|
-
accentFitPadding?: EdgeInsets;
|
|
173
211
|
/**
|
|
174
212
|
* Padding applied to the card's content (text) area on top of any
|
|
175
213
|
* document-level default. Applies to all layouts that have a content
|
|
@@ -313,11 +351,17 @@ export type AiBuilderCard = {
|
|
|
313
351
|
*/
|
|
314
352
|
imageFit: CardImageFit;
|
|
315
353
|
/**
|
|
316
|
-
*
|
|
317
|
-
*
|
|
318
|
-
*
|
|
354
|
+
* Size of the image slot (width for LEFT/RIGHT, height for TOP, card
|
|
355
|
+
* height for BACKGROUND; ignored for NO). Client-managed: the LLM never
|
|
356
|
+
* sets it, the backend round-trips it. Unset → client default.
|
|
357
|
+
*/
|
|
358
|
+
imageSize?: CardImageSize;
|
|
359
|
+
/**
|
|
360
|
+
* Focus / anchor of the image within its slot (object-position).
|
|
361
|
+
* Client-managed: the LLM never sets it, the backend round-trips it.
|
|
362
|
+
* Unset → centre (50/50). Applies to the image layouts only.
|
|
319
363
|
*/
|
|
320
|
-
|
|
364
|
+
imagePosition?: CardImagePosition;
|
|
321
365
|
};
|
|
322
366
|
export type AiBuilderColumns = {
|
|
323
367
|
columns: AiBuilderColumn[];
|