@mediansh/widget 0.8.0 → 0.10.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/README.md CHANGED
@@ -39,9 +39,8 @@ follows the person rather than the browser:
39
39
  <MedianSupport identity="/api/median/identity" />;
40
40
  ```
41
41
 
42
- It costs your first paint 93KB of JavaScript and 12KB of CSS, gzipped. The
43
- markdown renderer is another 199KB and loads when somebody reaches for the
44
- panel, so wrapping this in `dynamic()` only delays the launcher.
42
+ The markdown renderer and the screenshot code load on demand, so do not wrap
43
+ this in `dynamic()`. That only delays the launcher.
45
44
 
46
45
  ## Without React
47
46
 
package/dist/index.d.ts CHANGED
@@ -80,13 +80,11 @@ type MedianSupportOptions = {
80
80
  */
81
81
  telemetry?: boolean;
82
82
  /**
83
- * Whether the agent may take a picture of this page when it asks to see
84
- * it. Drawn from the page itself rather than recorded off the screen, so
85
- * nobody is asked for permission to share anything, and only when the
86
- * agent asks: it says it is taking a look, and the picture lands in the
87
- * thread where the visitor can see what was sent. On by default. Pass
88
- * `false` on a page showing somebody else's data and the agent is told no
89
- * picture is coming.
83
+ * Whether the agent may ask to see the visitor's screen. It asks in the
84
+ * thread, the panel offers a button to share it, and the browser asks the
85
+ * visitor to allow it. The picture lands in the thread where they can see
86
+ * what was sent. On by default. Pass `false` on a page showing somebody
87
+ * else's data and the agent is told no picture is coming.
90
88
  *
91
89
  * Never the panel itself or anything else Median renders.
92
90
  */
@@ -464,6 +462,10 @@ declare const medianSupport: {
464
462
  * Forget this browser's conversation, so the next one starts fresh and
465
463
  * anonymous. Call it when your user signs out: whoever sits down next
466
464
  * should not find somebody else's thread waiting.
465
+ *
466
+ * The user the widget holds right now is signed out with it, even if your
467
+ * own state still passes them for a moment, and an identity route is read
468
+ * again.
467
469
  */
468
470
  reset(): void;
469
471
  };
@@ -971,6 +973,8 @@ type MedianContactControl = {
971
973
  * your inbox exactly as `<MedianContactForm>` and the widget do, and the
972
974
  * reply goes to the email given. No provider, no connection to manage.
973
975
  */
974
- declare function useMedianContact(options: UseMedianContactOptions): MedianContactControl;
976
+ declare function useMedianContact(options: UseMedianContactOptions,
977
+ /** Who to name in the console. `<MedianContactForm>` passes itself. */
978
+ caller?: string): MedianContactControl;
975
979
 
976
- export { type MedianContactControl, type MedianContactField, type MedianContactFieldKind, MedianContactForm, type MedianContactFormInstance, type MedianContactFormMountOptions, type MedianContactFormProps, type MedianContactMessage, type MedianContactOptions, type MedianDiagnostics, type MedianErrorReportOptions, type MedianErrorReportOutcome, MedianFeedback, type MedianFeedbackControl, type MedianFeedbackInstance, type MedianFeedbackProps, MedianSupport, type MedianSupportControl, type MedianSupportInstance, MedianSupportModal, type MedianSupportModalInstance, type MedianSupportModalProps, type MedianSupportProps, type MedianUser, type MedianDiagnostics as PortalDiagnostics, type MedianErrorReportOptions as PortalErrorReportOptions, type MedianErrorReportOutcome as PortalErrorReportOutcome, MedianFeedback as PortalFeedback, type MedianFeedbackControl as PortalFeedbackControl, type MedianFeedbackInstance as PortalFeedbackInstance, type MedianFeedbackProps as PortalFeedbackProps, MedianSupport as PortalSupport, type MedianSupportControl as PortalSupportControl, type MedianSupportInstance as PortalSupportInstance, type MedianSupportProps as PortalSupportProps, type MedianUser as PortalUser, type SupportLauncherKind, type UseMedianContactOptions, medianFeedback, medianSupport, mountMedianContactForm, mountMedianFeedback, mountMedianSupport, mountMedianSupportModal, mountMedianFeedback as mountPortalFeedback, mountMedianSupport as mountPortalSupport, medianFeedback as portalFeedback, medianSupport as portalSupport, reportError, sendMedianContact, useCanReportError, useMedianContact, useMedianFeedback, useMedianSupport, useMedianFeedback as usePortalFeedback, useMedianSupport as usePortalSupport };
980
+ export { type MedianContactControl, type MedianContactField, type MedianContactFieldKind, MedianContactForm, type MedianContactFormInstance, type MedianContactFormMountOptions, type MedianContactFormProps, type MedianContactMessage, type MedianContactOptions, type MedianDiagnostics, type MedianErrorReportOptions, type MedianErrorReportOutcome, MedianFeedback, type MedianFeedbackControl, type MedianFeedbackInstance, type MedianFeedbackMountOptions, type MedianFeedbackProps, MedianSupport, type MedianSupportControl, type MedianSupportInstance, MedianSupportModal, type MedianSupportModalInstance, type MedianSupportModalProps, type MedianSupportProps, type MedianUser, type MedianDiagnostics as PortalDiagnostics, type MedianErrorReportOptions as PortalErrorReportOptions, type MedianErrorReportOutcome as PortalErrorReportOutcome, MedianFeedback as PortalFeedback, type MedianFeedbackControl as PortalFeedbackControl, type MedianFeedbackInstance as PortalFeedbackInstance, type MedianFeedbackProps as PortalFeedbackProps, MedianSupport as PortalSupport, type MedianSupportControl as PortalSupportControl, type MedianSupportInstance as PortalSupportInstance, type MedianSupportProps as PortalSupportProps, type MedianUser as PortalUser, type SupportLauncherKind, type UseMedianContactOptions, medianFeedback, medianSupport, mountMedianContactForm, mountMedianFeedback, mountMedianSupport, mountMedianSupportModal, mountMedianFeedback as mountPortalFeedback, mountMedianSupport as mountPortalSupport, medianFeedback as portalFeedback, medianSupport as portalSupport, reportError, sendMedianContact, useCanReportError, useMedianContact, useMedianFeedback, useMedianSupport, useMedianFeedback as usePortalFeedback, useMedianSupport as usePortalSupport };