Skip to content

Commit

Permalink
Export the MASS_UPDATE_UI_STATE, UPDATE_UI_STATE, and SET_DEFAULT_UI_…
Browse files Browse the repository at this point in the history
…STATE action types from the main library entry point.

Fix a few references to the old package name.
  • Loading branch information
Invader444 committed Jan 27, 2018
1 parent b3ffd22 commit de0bc87
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 13 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# v1.0.2
- Fix a few references to the old package name.
- Export the MASS_UPDATE_UI_STATE, UPDATE_UI_STATE, and SET_DEFAULT_UI_STATE action types from the main library entry point.

# v1.0.1
- Rename package to react-redux-ui-tools

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-redux-ui-tools",
"version": "1.0.1",
"version": "1.0.2",
"description": "UI state management for React with Redux",
"main": "dist/index.js",
"files": [
Expand Down
10 changes: 5 additions & 5 deletions src/action-reducer.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ import { get, getIn, setIn, updateIn, deleteIn, withMutations } from './utils';
// key of the object to update or do transformations within one action in the
// reducer. The latter only triggers one store change event and is more
// performant.
export const MASS_UPDATE_UI_STATE = '@@redux-ui/MASS_UPDATE_UI_STATE';
export const UPDATE_UI_STATE = '@@redux-ui/UPDATE_UI_STATE';
export const SET_DEFAULT_UI_STATE = '@@redux-ui/SET_DEFAULT_UI_STATE';
export const MASS_UPDATE_UI_STATE = '@@react-redux-ui-tools/MASS_UPDATE_UI_STATE';
export const UPDATE_UI_STATE = '@@react-redux-ui-tools/UPDATE_UI_STATE';
export const SET_DEFAULT_UI_STATE = '@@react-redux-ui-tools/SET_DEFAULT_UI_STATE';

// These are private consts used in actions only given to the UI decorator.
const MOUNT_UI_STATE = '@@redux-ui/MOUNT_UI_STATE';
const UNMOUNT_UI_STATE = '@@redux-ui/UNMOUNT_UI_STATE';
const MOUNT_UI_STATE = '@@react-redux-ui-tools/MOUNT_UI_STATE';
const UNMOUNT_UI_STATE = '@@react-redux-ui-tools/UNMOUNT_UI_STATE';

export const defaultState = {
__reducers: {
Expand Down
9 changes: 2 additions & 7 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,2 @@
'use strict';

import ui from './ui';
import reducer from './action-reducer';

export default ui;
export { reducer };
export { default } from './ui'
export { default as reducer, MASS_UPDATE_UI_STATE, UPDATE_UI_STATE, SET_DEFAULT_UI_STATE } from './action-reducer'

0 comments on commit de0bc87

Please sign in to comment.