UNPKG
@atlaskit/editor-plugin-history
Version:
latest (10.1.0)
10.1.0
10.0.0
9.0.0
8.0.2
8.0.1
8.0.0
7.0.0
6.1.2
6.1.1
6.1.0
6.0.0
5.0.0
4.0.0
3.1.1
3.1.0
3.0.0
2.0.7
2.0.6
2.0.5
2.0.4
2.0.3
2.0.2
2.0.1
2.0.0
1.5.0
1.4.0
1.3.15
1.3.14
1.3.13
1.3.12
1.3.11
1.3.10
1.3.9
1.3.8
1.3.7
1.3.6
1.3.5
1.3.4
1.3.3
1.3.2
1.3.1
1.3.0
1.2.1
1.2.0
1.1.9
1.1.8
1.1.7
1.1.6
1.1.5
1.1.4
1.1.3
1.1.2
1.1.1
1.1.0
1.0.1
1.0.0
0.1.2
0.1.1
0.1.0
History plugin for @atlaskit/editor-core
bitbucket.org/atlassian/atlassian-frontend-mirror
@atlaskit/editor-plugin-history
/
dist
/
es2019
/
editor-actions
/
reducer.js
12 lines
•
281 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
import
{
HistoryActionTypes
}
from
'./actions'
;
const
reducer
= (
state, action
) => {
switch
(action.
type
) {
case
HistoryActionTypes
.
UPDATE
:
return
{
canUndo
: action.
canUndo
,
canRedo
: action.
canRedo
}; }
return
state; };
export
default
reducer;