@xapp/form-widget 1.96.2 → 1.98.0
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/components/FormDisplay/FormDisplay.d.ts +0 -0
- package/dist/components/FormDisplay/model.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 +42 -42
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +44 -44
- 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/utils/useExternalWidget.d.ts +0 -0
- package/dist/utils/useExternalWidget.test.d.ts +1 -0
- package/dist/xapp-form-widget.css +89 -0
- package/dist/xapp-form-widget.js +10 -10
- package/package.json +8 -10
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Demo mode: the widget renders and behaves like production but cannot create
|
|
3
|
+
* anything — no lead, no notification, no tracked event.
|
|
4
|
+
*
|
|
5
|
+
* Not "makes no requests": the form's step structure arrives on the
|
|
6
|
+
* INTENT_REQUEST response, so reads are deliberately allowed and there are
|
|
7
|
+
* tests in both directions — writes stay blocked, and the read path stays open
|
|
8
|
+
* so nobody tightens it shut and ships an empty form.
|
|
9
|
+
*
|
|
10
|
+
* These tests exist because the guarantee is a product promise, not an
|
|
11
|
+
* implementation detail — get.xapp.ai shows a prospect their own booking page
|
|
12
|
+
* and lets them click through it. A regression here is invisible in the UI and
|
|
13
|
+
* only discovered when someone gets a phone call about a booking that never
|
|
14
|
+
* happened.
|
|
15
|
+
*
|
|
16
|
+
* Assertions are about `fetch` never being called, rather than any internal.
|
|
17
|
+
*/
|
|
18
|
+
export {};
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
Binary file
|
|
Binary file
|