@go1/go1-embedding-react-sdk 0.0.40 → 0.0.42
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
CHANGED
package/dist/README.md
CHANGED
package/dist/common/types.d.ts
CHANGED
|
@@ -64,7 +64,7 @@ export type FeatureAttributes = FeatureAttributesAIChat | FeatureAttributesPrevi
|
|
|
64
64
|
export interface AdditionalUserInfo {
|
|
65
65
|
jobTitle: string;
|
|
66
66
|
}
|
|
67
|
-
export declare const features: readonly ["ai-chat", "content-hub", "preview", "library", "search", "wallet", "content-retirement"];
|
|
67
|
+
export declare const features: readonly ["ai-chat", "content-hub", "preview", "library", "search", "wallet", "content-retirement", "my-playlists"];
|
|
68
68
|
export type FeatureType = (typeof features)[number];
|
|
69
69
|
export interface InitOptions {
|
|
70
70
|
feature: FeatureType;
|
package/dist/common/types.js
CHANGED
|
@@ -19,7 +19,7 @@ function useGo1ContentView(props) {
|
|
|
19
19
|
iframeRef.current?.contentWindow?.postMessage(message, url);
|
|
20
20
|
}, [url]);
|
|
21
21
|
let { iframeURL, iframeID } = (0, react_1.useMemo)(() => {
|
|
22
|
-
let iframeURL = new URL(`${url}/${feature}`);
|
|
22
|
+
let iframeURL = new URL(`${url}/${feature === 'my-playlists' ? 'my-lists/own' : `${feature}`}`);
|
|
23
23
|
if (portalURL) {
|
|
24
24
|
(0, params_1.addPortalURL)(iframeURL, portalURL, env);
|
|
25
25
|
}
|
|
@@ -73,5 +73,5 @@ function useGo1ContentView(props) {
|
|
|
73
73
|
}
|
|
74
74
|
exports.useGo1ContentView = useGo1ContentView;
|
|
75
75
|
function Go1ContentView(iframeRef, iframeURL, iframeID, userProps) {
|
|
76
|
-
return (React.createElement("iframe", { id: iframeID, ref: iframeRef, src: iframeURL.toString(), style: { border: 0, width: '100%', height: '100%' },
|
|
76
|
+
return (React.createElement("iframe", { id: iframeID, ref: iframeRef, src: iframeURL.toString(), style: { border: 0, width: '100%', height: '100%' }, ...userProps }));
|
|
77
77
|
}
|