@harvard-lts/mirador-pdf-plugin 0.0.1 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/es/index.js +15 -3
  2. package/package.json +1 -1
package/dist/es/index.js CHANGED
@@ -1,6 +1,9 @@
1
1
  import { useState, useEffect } from 'react';
2
2
  import MenuItem from '@material-ui/core/MenuItem';
3
+ import ListItemIcon from '@material-ui/core/ListItemIcon';
4
+ import ListItemText from '@material-ui/core/ListItemText';
3
5
  import { getManifestoInstance } from 'mirador/dist/es/src/state/selectors/manifests';
6
+ import PDFIcon from '@material-ui/icons/PictureAsPdf';
4
7
  import { jsx, jsxs } from 'react/jsx-runtime';
5
8
  import { withStyles } from '@material-ui/core/styles';
6
9
  import Button from '@material-ui/core/Button';
@@ -149,9 +152,18 @@ var MiradorPdfMenuItem = function MiradorPdfMenuItem(_ref3) {
149
152
  openDialog();
150
153
  handleClose();
151
154
  };
152
- return /*#__PURE__*/jsx(MenuItem, {
153
- onClick: handleClick,
154
- children: "Download PDF"
155
+ return /*#__PURE__*/jsx("div", {
156
+ children: /*#__PURE__*/jsxs(MenuItem, {
157
+ onClick: handleClick,
158
+ children: [/*#__PURE__*/jsx(ListItemIcon, {
159
+ children: /*#__PURE__*/jsx(PDFIcon, {})
160
+ }), /*#__PURE__*/jsx(ListItemText, {
161
+ primaryTypographyProps: {
162
+ variant: "body1"
163
+ },
164
+ children: "Download PDF"
165
+ })]
166
+ })
155
167
  });
156
168
  };
157
169
  MiradorPdfMenuItem.defaultProps = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harvard-lts/mirador-pdf-plugin",
3
- "version": "0.0.1",
3
+ "version": "0.0.3",
4
4
  "description": "A Mirador 3 plugin that interacts with MPS PDF Download Service ",
5
5
  "module": "dist/es/index.js",
6
6
  "files": [