@xapp/form-widget 1.97.0 → 1.98.1
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/dist/api/__test__/demo-mode.test.d.ts +18 -0
- package/dist/api/__test__/stentor-api.test.d.ts +1 -9
- package/dist/api/index.d.ts +0 -0
- package/dist/api/stentor-api.d.ts +0 -0
- package/dist/components/FormDisplay/FormDisplay.d.ts +0 -0
- package/dist/components/FormResponse/FormResponse.d.ts +0 -0
- package/dist/components/FormStepDisplay/FormStepDisplay.d.ts +0 -0
- package/dist/components/FormWidget/demoModeWiring.test.d.ts +1 -0
- package/dist/components/ResponseDisplay/ResponseDisplay.d.ts +0 -0
- package/dist/config/form-widget-config.d.ts +0 -0
- package/dist/index.es.js +55 -55
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +54 -54
- package/dist/services/EventTrackingService.d.ts +0 -0
- package/dist/types/events.d.ts +0 -0
- package/dist/utils/templating.test.d.ts +1 -0
- package/dist/xapp-form-widget.css +67 -0
- package/dist/xapp-form-widget.js +26 -26
- package/package.json +1 -3
|
Binary file
|
package/dist/types/events.d.ts
CHANGED
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -592,6 +592,13 @@ body.ModalDialog-module_xapp_search_opened__jgDSX {
|
|
|
592
592
|
font-family: var(--xapp-form-widget-font-family, RobotoRegular, serif);
|
|
593
593
|
}
|
|
594
594
|
|
|
595
|
+
.FormStepDisplay-module_xapp_submit_error__Zbqdj {
|
|
596
|
+
padding: 12px 20px;
|
|
597
|
+
text-align: center;
|
|
598
|
+
font-family: var(--xapp-form-widget-font-family, RobotoRegular, serif);
|
|
599
|
+
color: #b3261e;
|
|
600
|
+
}
|
|
601
|
+
|
|
595
602
|
.FormStepDisplay-module_xapp_formfield__hRmVx {
|
|
596
603
|
display: none;
|
|
597
604
|
font-family: inherit !important;
|
|
@@ -694,6 +701,66 @@ body.ModalDialog-module_xapp_search_opened__jgDSX {
|
|
|
694
701
|
border-radius: var(--xapp-form-widget-border-radius-md, 12px) !important;
|
|
695
702
|
cursor: not-allowed !important;
|
|
696
703
|
}
|
|
704
|
+
/**
|
|
705
|
+
* CostGuide / Contractor Appointments booking-embed style overrides.
|
|
706
|
+
*
|
|
707
|
+
* The partner renders its form into #airo-anchor in the light DOM with stable, semantic
|
|
708
|
+
* class names (spike: chat-widget#1514). This is a plain (non-module) stylesheet on purpose
|
|
709
|
+
* so the selectors below emit literally rather than being scoped -- they target the partner's
|
|
710
|
+
* own markup, not ours.
|
|
711
|
+
*
|
|
712
|
+
* Two hard constraints from the spike:
|
|
713
|
+
* 1. Their rules are scoped `#airo-anchor #step-<name> .<class>` (two ids + a class), so a
|
|
714
|
+
* plain `#airo-anchor .btn-next` measurably loses. Overrides must carry `#airo-anchor`
|
|
715
|
+
* specificity AND `!important` to win.
|
|
716
|
+
* 2. Most of their text inherits the container font, but `input` is explicitly Arial, so the
|
|
717
|
+
* font must be re-applied to inputs directly.
|
|
718
|
+
*
|
|
719
|
+
* Every value maps to a `--xapp-form-widget-*` theme variable (with a fallback matching
|
|
720
|
+
* `styles/_variables.scss`), so a Studio-themed widget restyles the partner's form too --
|
|
721
|
+
* nothing here is a hard-coded color, font, or radius.
|
|
722
|
+
*
|
|
723
|
+
* Partner selectors verified: 2026-08-04. Re-verify against their markup per chat-widget#1516.
|
|
724
|
+
*/
|
|
725
|
+
/* Primary action buttons: btn-next / btn-orange */
|
|
726
|
+
#airo-anchor .btn-next,
|
|
727
|
+
#airo-anchor .btn-orange {
|
|
728
|
+
background-color: var(--xapp-form-widget-primary-button-color, #ea6539) !important;
|
|
729
|
+
color: var(--xapp-form-widget-primary-button-text-color, #b7c5d1) !important;
|
|
730
|
+
border-radius: var(--xapp-form-widget-border-radius-md, 12px) !important;
|
|
731
|
+
font-family: var(--xapp-form-widget-font-family, RobotoRegular, serif) !important;
|
|
732
|
+
}
|
|
733
|
+
|
|
734
|
+
/* Secondary / back button: btn-back */
|
|
735
|
+
#airo-anchor .btn-back {
|
|
736
|
+
background-color: var(--xapp-form-widget-secondary-button-color, #d24cc7) !important;
|
|
737
|
+
color: var(--xapp-form-widget-secondary-button-text-color, #b7c5d1) !important;
|
|
738
|
+
border-radius: var(--xapp-form-widget-border-radius-md, 12px) !important;
|
|
739
|
+
}
|
|
740
|
+
|
|
741
|
+
/* Headings and body text: stepwrap / ms-title / ms-subtitle / page-title / label-item */
|
|
742
|
+
#airo-anchor .stepwrap,
|
|
743
|
+
#airo-anchor .ms-title,
|
|
744
|
+
#airo-anchor .ms-subtitle,
|
|
745
|
+
#airo-anchor .page-title,
|
|
746
|
+
#airo-anchor .label-item {
|
|
747
|
+
color: var(--xapp-form-widget-text-color, rgba(0, 0, 0, 0.87)) !important;
|
|
748
|
+
font-family: var(--xapp-form-widget-font-family, RobotoRegular, serif) !important;
|
|
749
|
+
}
|
|
750
|
+
|
|
751
|
+
/* Inputs are explicitly Arial in their sheet, so the inherited container font never reaches
|
|
752
|
+
them -- re-apply directly (spike finding). radio-item grouped for the same reason. */
|
|
753
|
+
#airo-anchor input,
|
|
754
|
+
#airo-anchor .radio-item {
|
|
755
|
+
font-family: var(--xapp-form-widget-font-family, RobotoRegular, serif) !important;
|
|
756
|
+
}
|
|
757
|
+
|
|
758
|
+
/* Focus rings consistent with ours rather than their default orange. */
|
|
759
|
+
#airo-anchor input:focus,
|
|
760
|
+
#airo-anchor .btn-next:focus,
|
|
761
|
+
#airo-anchor .btn-back:focus {
|
|
762
|
+
outline-color: var(--xapp-form-widget-focus-ring-color, #012b54) !important;
|
|
763
|
+
}
|
|
697
764
|
.SimpleNavigationHeader-module_xapp_navigation_header__YhCD1 {
|
|
698
765
|
background-color: inherit !important;
|
|
699
766
|
}
|