Skip to content

Commit

Permalink
Merge pull request #22 from ProjectMirador/updates
Browse files Browse the repository at this point in the history
Updates needed for integration externally
  • Loading branch information
jkeck authored Jun 17, 2019
2 parents c0706fd + f531801 commit 5f1fc54
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion __tests__/miradorSharePlugin.test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import { shallow } from 'enzyme';
import miradorSharePlugin from '../src';
import miradorSharePlugin from '../src/miradorSharePlugin';

function createWrapper(props) {
return shallow(
Expand Down
2 changes: 1 addition & 1 deletion demo/src/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Mirador from 'mirador/dist/es/src/index';
import miradorSharePlugin from '../../src';
import miradorSharePlugin from '../../src/miradorSharePlugin';
import miradorShareDialogPlugin from '../../src/MiradorShareDialog';

const config = {
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": "mirador-share-plugin",
"version": "0.3.0",
"version": "0.4.0",
"description": "mirador-share-plugin React component",
"main": "lib/index.js",
"module": "es/index.js",
Expand Down
1 change: 1 addition & 0 deletions src/MiradorShareDialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,7 @@ const styles = theme => ({
export default {
target: 'Window',
mode: 'add',
name: 'MiradorShareDialog',
component: withStyles(styles)(MiradorShareDialog),
mapDispatchToProps,
mapStateToProps,
Expand Down
6 changes: 5 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
import miradorSharePlugin from './miradorSharePlugin';
import miradorShareDialog from './MiradorShareDialog';

export default miradorSharePlugin;
export default {
miradorSharePlugin,
miradorShareDialog,
};
1 change: 1 addition & 0 deletions src/miradorSharePlugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ MiradorShare.propTypes = {
export default {
target: 'WindowTopMenu',
mode: 'add',
name: 'MiradorSharePlugin',
component: MiradorShare,
mapDispatchToProps,
mapStateToProps,
Expand Down

0 comments on commit 5f1fc54

Please sign in to comment.