@matterfact/embed 0.16.0 → 0.17.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.
@@ -378,6 +378,11 @@ export function App() {
378
378
  <MatterfactAgent
379
379
  inline
380
380
  surface={config.surface}
381
+ // Share links land back on THIS page: the widget mints them in this
382
+ // format, and the loader opens the shared thread when someone arrives
383
+ // on one. `location.origin` so it follows whatever host the demo is
384
+ // served from.
385
+ shareDeeplinkFormat={`${location.origin}/?mf_share={share_token}`}
381
386
  // Pulled fresh every turn — the whole point of this example.
382
387
  getPageContext={getPageContext}
383
388
  // Host-defined tools + the unified telemetry hook.
@@ -397,6 +402,7 @@ export function App() {
397
402
  {placement === 'corner' && (
398
403
  <MatterfactAgent
399
404
  surface={config.surface}
405
+ shareDeeplinkFormat={`${location.origin}/?mf_share={share_token}`}
400
406
  getPageContext={getPageContext}
401
407
  tools={tools}
402
408
  onEvent={logEvent}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@matterfact/embed",
3
- "version": "0.16.0",
3
+ "version": "0.17.0",
4
4
  "description": "The matterfact embeddable agent: mount the chat in a cross-origin iframe (a <script> loader for any site, or a <MatterfactAgent> React component), give the agent eyes on the host page, and embed matterfact artifacts inline with <MatterfactArtifact>.",
5
5
  "license": "Apache-2.0",
6
6
  "private": false,