changes.js |
In the Redux state, changed CSS rules are grouped by source (stylesheet) and stored in
a single level array, regardless of nesting.
This method returns a nested tree structure of the changed CSS rules so the React
consumer components can traverse it easier when rendering the nested CSS rules view.
Keeping this interface updated allows the Redux state structure to change without
affecting the consumer components.
@param {Object} state
Redux slice for tracked changes.
@param {Object} filter
Object with optional filters to use. Has the following properties:
- sourceIds: {Array}
Use only subtrees of sources matching source ids from this array.
- ruleIds: {Array}
Use only rules matching rule ids from this array. If the array includes ids
of ancestor rules (@media, @supports), their nested rules will be included.
@return {Object}
|
8808 |