@mediansh/widget 0.8.0 → 0.9.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 +2 -3
- package/dist/index.d.ts +8 -2
- package/dist/index.js +693 -528
- package/dist/index.js.map +1 -1
- package/dist/widget.css +1 -1
- package/package.json +1 -1
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
|
-
|
|
43
|
-
|
|
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
|
@@ -464,6 +464,10 @@ declare const medianSupport: {
|
|
|
464
464
|
* Forget this browser's conversation, so the next one starts fresh and
|
|
465
465
|
* anonymous. Call it when your user signs out: whoever sits down next
|
|
466
466
|
* should not find somebody else's thread waiting.
|
|
467
|
+
*
|
|
468
|
+
* The user the widget holds right now is signed out with it, even if your
|
|
469
|
+
* own state still passes them for a moment, and an identity route is read
|
|
470
|
+
* again.
|
|
467
471
|
*/
|
|
468
472
|
reset(): void;
|
|
469
473
|
};
|
|
@@ -971,6 +975,8 @@ type MedianContactControl = {
|
|
|
971
975
|
* your inbox exactly as `<MedianContactForm>` and the widget do, and the
|
|
972
976
|
* reply goes to the email given. No provider, no connection to manage.
|
|
973
977
|
*/
|
|
974
|
-
declare function useMedianContact(options: UseMedianContactOptions
|
|
978
|
+
declare function useMedianContact(options: UseMedianContactOptions,
|
|
979
|
+
/** Who to name in the console. `<MedianContactForm>` passes itself. */
|
|
980
|
+
caller?: string): MedianContactControl;
|
|
975
981
|
|
|
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 };
|
|
982
|
+
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 };
|