@pushwoosh/rpc-gateway-ai-assistant 0.1.195 → 0.1.196
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 +87 -1
- package/package.json +1 -1
- package/pushwoosh_aibuilder_v1.d.ts +51 -1
package/data.js
CHANGED
|
@@ -529,6 +529,84 @@ export const data = {
|
|
|
529
529
|
}
|
|
530
530
|
}
|
|
531
531
|
},
|
|
532
|
+
"pushwoosh.aibuilder.v1.RawHtml": {
|
|
533
|
+
"type": "I",
|
|
534
|
+
"fields": {
|
|
535
|
+
"html": {
|
|
536
|
+
"type": "string"
|
|
537
|
+
},
|
|
538
|
+
"translations": {
|
|
539
|
+
"type": "string",
|
|
540
|
+
"mapKeyType": "string"
|
|
541
|
+
}
|
|
542
|
+
}
|
|
543
|
+
},
|
|
544
|
+
"pushwoosh.aibuilder.v1.MenuItem": {
|
|
545
|
+
"type": "I",
|
|
546
|
+
"fields": {
|
|
547
|
+
"text": {
|
|
548
|
+
"type": "string"
|
|
549
|
+
},
|
|
550
|
+
"url": {
|
|
551
|
+
"type": "string"
|
|
552
|
+
},
|
|
553
|
+
"target": {
|
|
554
|
+
"type": "string"
|
|
555
|
+
},
|
|
556
|
+
"translations": {
|
|
557
|
+
"type": "string",
|
|
558
|
+
"mapKeyType": "string"
|
|
559
|
+
}
|
|
560
|
+
}
|
|
561
|
+
},
|
|
562
|
+
"pushwoosh.aibuilder.v1.MenuLayout": {
|
|
563
|
+
"type": "E",
|
|
564
|
+
"values": [
|
|
565
|
+
"MENU_LAYOUT_UNSPECIFIED",
|
|
566
|
+
"MENU_LAYOUT_HORIZONTAL",
|
|
567
|
+
"MENU_LAYOUT_VERTICAL"
|
|
568
|
+
]
|
|
569
|
+
},
|
|
570
|
+
"pushwoosh.aibuilder.v1.Menu": {
|
|
571
|
+
"type": "I",
|
|
572
|
+
"fields": {
|
|
573
|
+
"items": {
|
|
574
|
+
"type": "pushwoosh.aibuilder.v1.MenuItem",
|
|
575
|
+
"array": true
|
|
576
|
+
},
|
|
577
|
+
"linkColor": {
|
|
578
|
+
"type": "string"
|
|
579
|
+
},
|
|
580
|
+
"textColor": {
|
|
581
|
+
"type": "string"
|
|
582
|
+
},
|
|
583
|
+
"fontFamily": {
|
|
584
|
+
"type": "string"
|
|
585
|
+
},
|
|
586
|
+
"fontWeight": {
|
|
587
|
+
"type": "number"
|
|
588
|
+
},
|
|
589
|
+
"fontSize": {
|
|
590
|
+
"type": "number"
|
|
591
|
+
},
|
|
592
|
+
"letterSpacing": {
|
|
593
|
+
"type": "number"
|
|
594
|
+
},
|
|
595
|
+
"layout": {
|
|
596
|
+
"type": "pushwoosh.aibuilder.v1.MenuLayout"
|
|
597
|
+
},
|
|
598
|
+
"align": {
|
|
599
|
+
"type": "pushwoosh.aibuilder.v1.TextAlign"
|
|
600
|
+
},
|
|
601
|
+
"separator": {
|
|
602
|
+
"type": "string"
|
|
603
|
+
},
|
|
604
|
+
"itemPadding": {
|
|
605
|
+
"type": "pushwoosh.aibuilder.v1.EdgeInsets",
|
|
606
|
+
"optional": true
|
|
607
|
+
}
|
|
608
|
+
}
|
|
609
|
+
},
|
|
532
610
|
"pushwoosh.aibuilder.v1.ContentItem": {
|
|
533
611
|
"type": "I",
|
|
534
612
|
"fields": {
|
|
@@ -550,6 +628,12 @@ export const data = {
|
|
|
550
628
|
"timer": {
|
|
551
629
|
"type": "pushwoosh.aibuilder.v1.Timer"
|
|
552
630
|
},
|
|
631
|
+
"rawHtml": {
|
|
632
|
+
"type": "pushwoosh.aibuilder.v1.RawHtml"
|
|
633
|
+
},
|
|
634
|
+
"menu": {
|
|
635
|
+
"type": "pushwoosh.aibuilder.v1.Menu"
|
|
636
|
+
},
|
|
553
637
|
"padding": {
|
|
554
638
|
"type": "pushwoosh.aibuilder.v1.EdgeInsets",
|
|
555
639
|
"optional": true
|
|
@@ -563,7 +647,9 @@ export const data = {
|
|
|
563
647
|
"list",
|
|
564
648
|
"image",
|
|
565
649
|
"form",
|
|
566
|
-
"timer"
|
|
650
|
+
"timer",
|
|
651
|
+
"rawHtml",
|
|
652
|
+
"menu"
|
|
567
653
|
]
|
|
568
654
|
}
|
|
569
655
|
}
|
package/package.json
CHANGED
|
@@ -462,6 +462,48 @@ export type Timer = {
|
|
|
462
462
|
digitFontFamily: string;
|
|
463
463
|
labelFontFamily: string;
|
|
464
464
|
};
|
|
465
|
+
/**
|
|
466
|
+
* An Unlayer HTML widget. The markup is deliberately kept verbatim: unlike
|
|
467
|
+
* TextBlock.text this is a complete, user-authored HTML fragment and flattening
|
|
468
|
+
* or sanitising it would change the email. The editor previews it in a sandbox;
|
|
469
|
+
* the final email renderer emits it as-is.
|
|
470
|
+
*/
|
|
471
|
+
export type RawHtml = {
|
|
472
|
+
html: string;
|
|
473
|
+
/**
|
|
474
|
+
* Per-language overrides of `html`; same client-managed contract as
|
|
475
|
+
* TextBlock.translations.
|
|
476
|
+
*/
|
|
477
|
+
translations: Record<string, string>;
|
|
478
|
+
};
|
|
479
|
+
export type MenuItem = {
|
|
480
|
+
text: string;
|
|
481
|
+
url: string;
|
|
482
|
+
/** Unlayer stores browser targets as "_self" / "_blank". */
|
|
483
|
+
target: string;
|
|
484
|
+
translations: Record<string, string>;
|
|
485
|
+
};
|
|
486
|
+
export type MenuLayout =
|
|
487
|
+
/** renders as HORIZONTAL */
|
|
488
|
+
'MENU_LAYOUT_UNSPECIFIED' | 'MENU_LAYOUT_HORIZONTAL' | 'MENU_LAYOUT_VERTICAL';
|
|
489
|
+
/**
|
|
490
|
+
* Unlayer's stock Menu widget. These are the presentation fields exported by
|
|
491
|
+
* Unlayer itself; keeping them together avoids approximating a menu as a text
|
|
492
|
+
* run and preserves each link as a distinct editable item.
|
|
493
|
+
*/
|
|
494
|
+
export type Menu = {
|
|
495
|
+
items: MenuItem[];
|
|
496
|
+
linkColor: string;
|
|
497
|
+
textColor: string;
|
|
498
|
+
fontFamily: string;
|
|
499
|
+
fontWeight: number;
|
|
500
|
+
fontSize: number;
|
|
501
|
+
letterSpacing: number;
|
|
502
|
+
layout: MenuLayout;
|
|
503
|
+
align: TextAlign;
|
|
504
|
+
separator: string;
|
|
505
|
+
itemPadding?: EdgeInsets;
|
|
506
|
+
};
|
|
465
507
|
export type ContentItem_item_text = {
|
|
466
508
|
type: 'text';
|
|
467
509
|
data: TextBlock;
|
|
@@ -486,7 +528,15 @@ export type ContentItem_item_timer = {
|
|
|
486
528
|
type: 'timer';
|
|
487
529
|
data: Timer;
|
|
488
530
|
};
|
|
489
|
-
export type
|
|
531
|
+
export type ContentItem_item_rawHtml = {
|
|
532
|
+
type: 'rawHtml';
|
|
533
|
+
data: RawHtml;
|
|
534
|
+
};
|
|
535
|
+
export type ContentItem_item_menu = {
|
|
536
|
+
type: 'menu';
|
|
537
|
+
data: Menu;
|
|
538
|
+
};
|
|
539
|
+
export type ContentItem_item = ContentItem_item_text | ContentItem_item_buttonGroup | ContentItem_item_list | ContentItem_item_image | ContentItem_item_form | ContentItem_item_timer | ContentItem_item_rawHtml | ContentItem_item_menu;
|
|
490
540
|
export type ContentItem = {
|
|
491
541
|
/**
|
|
492
542
|
* Container padding of the item. Unset = client's default inter-item gap;
|