@mediansh/widget 0.5.0 → 0.6.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/index.d.ts CHANGED
@@ -177,16 +177,20 @@ type MedianSupportOptions = {
177
177
  /** Every open and close, whoever asked for it. */
178
178
  onOpenChange?: (open: boolean) => void;
179
179
  /**
180
- * Take the visitor to a page, when one of your own tools asks for it.
180
+ * Take the visitor to a page, when one of your own tools offers one.
181
181
  *
182
182
  * <MedianSupport apiKey="median_pk_..." onNavigate={router.push} />
183
183
  *
184
+ * A tool that answers with a destination puts a button under the reply
185
+ * that explains it, and this is what the button does. Nothing moves on its
186
+ * own: the visitor presses it, or they stay where they are.
187
+ *
184
188
  * Called with a path on your own site, already checked against this page's
185
189
  * origin. Your router decides what happens: pass `router.push` and the
186
190
  * conversation stays open across the move.
187
191
  *
188
- * Without it a tool that asks to navigate cannot, and says so in the
189
- * console while you are building. Nothing else needs it.
192
+ * Without it there is nowhere for a press to go, so no button is shown and
193
+ * the console says so while you are building. Nothing else needs it.
190
194
  */
191
195
  onNavigate?: (path: string) => void;
192
196
  };