@go1/go1-embedding-react-sdk 0.0.38 → 0.0.40

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
@@ -88,6 +88,7 @@ interface FeatureAttributeCommon {
88
88
  shouldSuppressPreview?: boolean;
89
89
  experience?: 'manager' | 'learner';
90
90
  shouldShowGo1FeedbackButton?: boolean;
91
+ shouldShowSaveToPlaylistButton?: boolean;
91
92
  }
92
93
 
93
94
  /**
package/dist/README.md CHANGED
@@ -88,6 +88,7 @@ interface FeatureAttributeCommon {
88
88
  shouldSuppressPreview?: boolean;
89
89
  experience?: 'manager' | 'learner';
90
90
  shouldShowGo1FeedbackButton?: boolean;
91
+ shouldShowSaveToPlaylistButton?: boolean;
91
92
  }
92
93
 
93
94
  /**
@@ -13,7 +13,7 @@ export interface AdditionalInfoMessage {
13
13
  export interface ThemeInformation {
14
14
  accent: string;
15
15
  }
16
- export type Go1MessageType = 'preview_start_content' | 'preview_close' | 'preview_add_content_success' | 'preview_add_content_failure' | 'preview_remove_content_success' | 'preview_remove_content_failure' | 'parent_show_preview' | 'set_additional_embedding_data' | 'go1_app_initialised' | 'ott_required' | 'search_result_selected' | 'search_filter_toggle' | 'search_redirected' | 'pass_ott' | 'logout' | 'sync_content';
16
+ export type Go1MessageType = 'preview_start_content' | 'preview_close' | 'preview_add_content_success' | 'preview_add_content_failure' | 'preview_remove_content_success' | 'preview_remove_content_failure' | 'parent_show_preview' | 'set_additional_embedding_data' | 'go1_app_initialised' | 'ott_required' | 'search_result_selected' | 'search_filter_toggle' | 'search_redirected' | 'pass_ott' | 'logout' | 'sync_content' | 'open_save_to_playlist_modal';
17
17
  export interface Go1Message {
18
18
  type: Go1MessageType;
19
19
  payload?: any;
@@ -22,6 +22,8 @@ export interface FeatureAttributeCommon {
22
22
  shouldSuppressPreview?: boolean;
23
23
  experience?: 'manager' | 'learner';
24
24
  shouldShowGo1FeedbackButton?: boolean;
25
+ shouldShowSaveToPlaylistButton?: boolean;
26
+ featureName?: string;
25
27
  }
26
28
  interface FeatureAttributesPreviewCommon extends FeatureAttributeCommon {
27
29
  startWith1Player?: boolean;
@@ -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', ...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 }));
77
77
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@go1/go1-embedding-react-sdk",
3
- "version": "0.0.38",
3
+ "version": "0.0.40",
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": [