@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
@@ -154,7 +154,8 @@ export type FeatureType =
154
154
  | 'library'
155
155
  | 'search'
156
156
  | 'wallet'
157
- | 'content-retirement';
157
+ | 'content-retirement'
158
+ | 'my-playlists';
158
159
 
159
160
  export interface InitOptions {
160
161
  /** Mandatory identifier for the embedded feature */
package/dist/README.md CHANGED
@@ -154,7 +154,8 @@ export type FeatureType =
154
154
  | 'library'
155
155
  | 'search'
156
156
  | 'wallet'
157
- | 'content-retirement';
157
+ | 'content-retirement'
158
+ | 'my-playlists';
158
159
 
159
160
  export interface InitOptions {
160
161
  /** Mandatory identifier for the embedded feature */
@@ -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;
@@ -9,4 +9,5 @@ exports.features = [
9
9
  'search',
10
10
  'wallet',
11
11
  'content-retirement',
12
+ 'my-playlists',
12
13
  ];
@@ -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%' }, sandbox: 'allow-popups allow-popups-to-escape-sandbox allow-scripts allow-same-origin allow-forms allow-top-navigation', ...userProps }));
76
+ return (React.createElement("iframe", { id: iframeID, ref: iframeRef, src: iframeURL.toString(), style: { border: 0, width: '100%', height: '100%' }, ...userProps }));
77
77
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@go1/go1-embedding-react-sdk",
3
- "version": "0.0.40",
3
+ "version": "0.0.42",
4
4
  "description": "A React library to embed Go1 content into your website.",
5
5
  "main": "dist/go1-embedding-react-sdk/src/index.js",
6
6
  "files": [