@matterfact/embed 0.15.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.
- package/README.md +62 -2
- package/dist/chunk-QVNE5FQV.js +2 -0
- package/dist/chunk-QVNE5FQV.js.map +7 -0
- package/dist/deeplink-IBFUWANV.js +104 -0
- package/dist/deeplink-IBFUWANV.js.map +1 -0
- package/dist/deeplink-QW3VRPOY.js +101 -0
- package/dist/deeplink-QW3VRPOY.js.map +1 -0
- package/dist/embed.js +1 -1
- package/dist/embed.js.map +3 -3
- package/dist/index.cjs +131 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +35 -1
- package/dist/index.d.ts +35 -1
- package/dist/index.js +23 -3
- package/dist/index.js.map +1 -1
- package/dist/react.cjs +214 -14
- package/dist/react.cjs.map +1 -1
- package/dist/react.d.cts +44 -8
- package/dist/react.d.ts +44 -8
- package/dist/react.js +102 -11
- package/dist/react.js.map +1 -1
- package/examples/embed-demo/src/App.tsx +6 -0
- package/package.json +1 -1
|
@@ -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.
|
|
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,
|