diff --git a/projects/packages/search/changelog/fix-jetpack_search_customberg-events b/projects/packages/search/changelog/fix-jetpack_search_customberg-events new file mode 100644 index 0000000000000..c5267a874fa5a --- /dev/null +++ b/projects/packages/search/changelog/fix-jetpack_search_customberg-events @@ -0,0 +1,5 @@ +Significance: patch +Type: fixed +Comment: This commit fixes the property of a Tracks event that was being sent as a JSON, which is not a valid Tracks value. + + diff --git a/projects/packages/search/package.json b/projects/packages/search/package.json index ae664f62b2c7c..e8089450aad85 100644 --- a/projects/packages/search/package.json +++ b/projects/packages/search/package.json @@ -1,6 +1,6 @@ { "name": "jetpack-search", - "version": "0.44.12", + "version": "0.44.13-alpha", "description": "Package for Jetpack Search products", "main": "main.js", "directories": { diff --git a/projects/packages/search/src/class-package.php b/projects/packages/search/src/class-package.php index 23f1e7b800a88..abb41f7635aac 100644 --- a/projects/packages/search/src/class-package.php +++ b/projects/packages/search/src/class-package.php @@ -11,7 +11,7 @@ * Search package general information */ class Package { - const VERSION = '0.44.12'; + const VERSION = '0.44.13-alpha'; const SLUG = 'search'; /** diff --git a/projects/packages/search/src/customberg/components/save-button/index.jsx b/projects/packages/search/src/customberg/components/save-button/index.jsx index f7738338f2d1b..97f42027077ce 100644 --- a/projects/packages/search/src/customberg/components/save-button/index.jsx +++ b/projects/packages/search/src/customberg/components/save-button/index.jsx @@ -1,7 +1,6 @@ import { Button } from '@wordpress/components'; import { __ } from '@wordpress/i18n'; import useEntityRecordState from 'hooks/use-entity-record-state'; -import { SERVER_OBJECT_NAME } from 'instant-search/lib/constants'; import { eventPrefix, recordEvent } from 'lib/analytics'; import './styles.scss'; @@ -11,22 +10,13 @@ import './styles.scss'; * @returns {Element} component instance */ export default function SaveButton() { - const { - editedEntities: editedSettings, - isSaving, - hasUnsavedEdits, - saveRecords, - } = useEntityRecordState(); + const { isSaving, hasUnsavedEdits, saveRecords } = useEntityRecordState(); const onClick = ( ...args ) => { if ( isSaving ) { return; } - recordEvent( `${ eventPrefix }_save_button_click`, { - initialSettings: JSON.stringify( window[ SERVER_OBJECT_NAME ].overlayOptions ), - changedSettings: JSON.stringify( editedSettings ), - changedSettingNames: Object.keys( editedSettings ).join( ',' ), - } ); + recordEvent( `${ eventPrefix }_save_button_click` ); saveRecords( ...args ); };