digirati-annotation-redux
Advanced tools
Comparing version 0.1.29 to 0.1.30
@@ -37,3 +37,3 @@ export var ELUCIDATE_SET_SERVER = 'ELUCIDATE_SET_SERVER'; | ||
export function addAnnotation(annotation) { | ||
export function addElucidateAnnotation(annotation) { | ||
return { type: ELUCIDATE_ADD_ANNOTATION, payload: { id: annotation.id, annotation: annotation } }; | ||
@@ -47,5 +47,5 @@ } | ||
return sendAnnotationToServer(collection, body, target).then(function (annotation) { | ||
return dispatch(addAnnotation(annotation)); | ||
return dispatch(addElucidateAnnotation(annotation)); | ||
}); | ||
}; | ||
} |
import { connect } from 'react-redux'; | ||
import { asyncPublishDraft, createDraft, deselectDraft, previewDraft, publishDraft, selectDraft, unpreviewDraft, updateDraft } from './actions/drafts'; | ||
import { addAnnotation } from './actions/annotations'; | ||
import { chooseSelector, commitToCurrentDraft, setAvailableSelectors, updateSelector } from './actions/selectors'; | ||
import { addAnnotation, createCollection, sendAnnotation, setCollection, setServer, setResource } from './actions/elucidate'; | ||
import { addElucidateAnnotation, createCollection, sendAnnotation, setCollection, setServer, setResource } from './actions/elucidate'; | ||
import { getCurrentDraft } from './query/draftQuery'; | ||
@@ -36,2 +37,3 @@ import { getCurrentResourceTemplate, getForm } from './query/resourceTemplateQuery'; | ||
sendAnnotation: sendAnnotation, | ||
addElucidateAnnotation: addElucidateAnnotation, | ||
addAnnotation: addAnnotation, | ||
@@ -38,0 +40,0 @@ publishDraft: publishDraft, |
@@ -9,3 +9,3 @@ 'use strict'; | ||
exports.setCollection = setCollection; | ||
exports.addAnnotation = addAnnotation; | ||
exports.addElucidateAnnotation = addElucidateAnnotation; | ||
exports.sendAnnotation = sendAnnotation; | ||
@@ -50,3 +50,3 @@ | ||
function addAnnotation(annotation) { | ||
function addElucidateAnnotation(annotation) { | ||
return { type: ELUCIDATE_ADD_ANNOTATION, payload: { id: annotation.id, annotation: annotation } }; | ||
@@ -60,5 +60,5 @@ } | ||
return (0, _elucidate.sendAnnotationToServer)(collection, body, target).then(function (annotation) { | ||
return dispatch(addAnnotation(annotation)); | ||
return dispatch(addElucidateAnnotation(annotation)); | ||
}); | ||
}; | ||
} |
@@ -9,2 +9,4 @@ 'use strict'; | ||
var _annotations = require('./actions/annotations'); | ||
var _selectors = require('./actions/selectors'); | ||
@@ -46,3 +48,4 @@ | ||
sendAnnotation: _elucidate.sendAnnotation, | ||
addAnnotation: _elucidate.addAnnotation, | ||
addElucidateAnnotation: _elucidate.addElucidateAnnotation, | ||
addAnnotation: _annotations.addAnnotation, | ||
publishDraft: _drafts.publishDraft, | ||
@@ -49,0 +52,0 @@ asyncPublishDraft: _drafts.asyncPublishDraft, |
{ | ||
"name": "digirati-annotation-redux", | ||
"version": "0.1.29", | ||
"version": "0.1.30", | ||
"description": "Describe annotation-redux here", | ||
@@ -5,0 +5,0 @@ "main": "es/index.js", |
53965
1291