@go1/go1-embedding-react-sdk 0.0.67 → 0.0.69

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
@@ -81,6 +81,8 @@ export type Go1MessageType =
81
81
  | 'inter_feature_navigation'
82
82
  | 'side_drawer_open'
83
83
  | 'side_drawer_close'
84
+ | 'swap_out_open'
85
+ | 'swap_out_close'
84
86
  | 'play_content'
85
87
  | 'go1pay_custom_data';
86
88
 
@@ -143,7 +145,9 @@ export interface FeatureAttributesRetirement extends FeatureAttributeCommon {
143
145
  shouldShowNotificationEmailRegisterSwitch?: boolean;
144
146
  }
145
147
 
146
- export interface FeatureAttributesSearch extends FeatureAttributeCommon {}
148
+ export interface FeatureAttributesSearch extends FeatureAttributeCommon {
149
+ searchTerm?: string; // If the embedding search feature includes a search term, the app will initialize with the pre-filled search term.
150
+ }
147
151
  export interface FeatureAttributesMyPlaylists extends FeatureAttributesPreviewCommon {
148
152
  playlistId?: number; // If embedding my-playlists feature with playlistId, the app will initialise with the specified playlistId page.
149
153
  }
package/dist/README.md CHANGED
@@ -81,6 +81,8 @@ export type Go1MessageType =
81
81
  | 'inter_feature_navigation'
82
82
  | 'side_drawer_open'
83
83
  | 'side_drawer_close'
84
+ | 'swap_out_open'
85
+ | 'swap_out_close'
84
86
  | 'play_content'
85
87
  | 'go1pay_custom_data';
86
88
 
@@ -143,7 +145,9 @@ export interface FeatureAttributesRetirement extends FeatureAttributeCommon {
143
145
  shouldShowNotificationEmailRegisterSwitch?: boolean;
144
146
  }
145
147
 
146
- export interface FeatureAttributesSearch extends FeatureAttributeCommon {}
148
+ export interface FeatureAttributesSearch extends FeatureAttributeCommon {
149
+ searchTerm?: string; // If the embedding search feature includes a search term, the app will initialize with the pre-filled search term.
150
+ }
147
151
  export interface FeatureAttributesMyPlaylists extends FeatureAttributesPreviewCommon {
148
152
  playlistId?: number; // If embedding my-playlists feature with playlistId, the app will initialise with the specified playlistId page.
149
153
  }
@@ -15,7 +15,7 @@ export interface AdditionalInfoMessage {
15
15
  export interface ThemeInformation {
16
16
  accent: string;
17
17
  }
18
- 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' | 'update_experience' | 'inter_feature_navigation' | 'side_drawer_open' | 'side_drawer_close' | 'play_content' | 'go1pay_custom_data';
18
+ 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' | 'update_experience' | 'inter_feature_navigation' | 'side_drawer_open' | 'side_drawer_close' | 'elysium_modal_open' | 'elysium_modal_close' | 'play_content' | 'go1pay_custom_data';
19
19
  export interface Go1Message {
20
20
  type: Go1MessageType;
21
21
  payload?: any;
@@ -66,6 +66,7 @@ export interface FeatureAttributesRetirement extends FeatureAttributesPreviewCom
66
66
  shouldShowNotificationEmailRegisterSwitch?: boolean;
67
67
  }
68
68
  export interface FeatureAttributesSearch extends FeatureAttributesPreviewCommon {
69
+ searchTerm?: string;
69
70
  }
70
71
  export interface FeatureAttributesContentHub extends FeatureAttributesPreviewCommon {
71
72
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@go1/go1-embedding-react-sdk",
3
- "version": "0.0.67",
3
+ "version": "0.0.69",
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": [