@wix/web5-embed 0.1.6 → 0.1.7
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/loader-types.d.ts +9 -0
- package/package.json +2 -2
package/dist/loader-types.d.ts
CHANGED
|
@@ -51,6 +51,15 @@ export type WidgetInit = (ctx: LoaderContext) => Promise<WidgetInstance>;
|
|
|
51
51
|
export interface LoaderRegistry {
|
|
52
52
|
register(widgetId: string, init: WidgetInit): void;
|
|
53
53
|
refresh: () => Promise<void>;
|
|
54
|
+
/**
|
|
55
|
+
* Published by the unified loader's `boot()` (embed-loader/src/main.ts)
|
|
56
|
+
* before any widget script is injected — the SAME authenticated-fetch
|
|
57
|
+
* closure the loader uses for its own calls. Widgets read this instead of
|
|
58
|
+
* minting their own OAuth client, so the whole page shares one token.
|
|
59
|
+
*/
|
|
60
|
+
auth?: {
|
|
61
|
+
fetchWithAuth: typeof fetch;
|
|
62
|
+
};
|
|
54
63
|
}
|
|
55
64
|
declare global {
|
|
56
65
|
interface Window {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/web5-embed",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.7",
|
|
4
4
|
"description": "SDK primitives for embedding Wix Web5 conversational UI into host pages — bootstrap loader, shadow-DOM mount helpers, focus-shortcut coordinator, and design-token loader.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://github.com/wix-private/web5.0-poc/tree/master/packages/web5-embed#readme",
|
|
@@ -50,5 +50,5 @@
|
|
|
50
50
|
"artifactId": "web5-embed"
|
|
51
51
|
}
|
|
52
52
|
},
|
|
53
|
-
"falconPackageHash": "
|
|
53
|
+
"falconPackageHash": "02ab29c3e81325f25f871c56fccfdc514c7261fe1b07d7e30947aaaf"
|
|
54
54
|
}
|