All files / ima/page/state PageStateManager.js

100% Statements 2/2
100% Branches 0/0
25% Functions 1/4
100% Lines 2/2
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42    8x                                                                           8x  
import ns from '../../namespace';
 
ns.namespace('ima.page.state');
 
/**
 * Manager of the current page state and state history.
 */
export default class PageStateManager {
  /**
	 * Clears the state history.
	 */
  clear() {}
 
  /**
	 * Sets a new page state by applying the provided patch to the current
	 * state.
	 *
	 * @param {Object<string, *>} statePatch The patch of the current state.
	 */
  setState(statePatch) {}
 
  /**
	 * Returns the current page state.
	 *
	 * @return {Object<string, *>} The current page state.
	 */
  getState() {}
 
  /**
	 * Returns the recorded history of page states. The states will be
	 * chronologically sorted from the oldest to the newest.
	 *
	 * Note that the implementation may limit the size of the recorded history,
	 * therefore the complete history may not be available.
	 *
	 * @return {Object<string, *>[]} The recorded history of page states.
	 */
  getAllStates() {}
}
 
ns.ima.page.state.PageStateManager = PageStateManager;