@manuscripts/style-guide 0.30.27 → 0.31.2
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.
- package/dist/cjs/components/FileManager/FileManager.js +14 -2
- package/dist/cjs/components/FileManager/FileSectionItem/DesignationActions.js +15 -3
- package/dist/cjs/components/FileManager/FileSectionItem/FileInfo.js +1 -4
- package/dist/cjs/components/FileManager/InlineFilesSection.js +1 -3
- package/dist/cjs/components/Resizer/Resizer.js +109 -0
- package/dist/cjs/components/Resizer/ResizerButton.js +30 -0
- package/dist/cjs/components/Resizer/ResizerButtonInner.js +169 -0
- package/dist/cjs/components/Resizer/ResizerInner.js +74 -0
- package/dist/cjs/components/Resizer/index.js +16 -0
- package/dist/cjs/components/Resizer/types.js +2 -0
- package/dist/cjs/components/icons/index.js +3 -1
- package/dist/cjs/components/icons/missing-image.js +12 -0
- package/dist/cjs/index.js +4 -1
- package/dist/cjs/lib/inlineFiles.js +65 -41
- package/dist/es/components/FileManager/FileManager.js +15 -3
- package/dist/es/components/FileManager/FileSectionItem/DesignationActions.js +15 -3
- package/dist/es/components/FileManager/FileSectionItem/FileInfo.js +1 -4
- package/dist/es/components/FileManager/InlineFilesSection.js +3 -5
- package/dist/es/components/Resizer/Resizer.js +102 -0
- package/dist/es/components/Resizer/ResizerButton.js +23 -0
- package/dist/es/components/Resizer/ResizerButtonInner.js +163 -0
- package/dist/es/components/Resizer/ResizerInner.js +68 -0
- package/dist/es/components/Resizer/index.js +2 -0
- package/dist/es/components/Resizer/types.js +1 -0
- package/dist/es/components/icons/index.js +1 -0
- package/dist/es/components/icons/missing-image.js +7 -0
- package/dist/es/index.js +2 -0
- package/dist/es/lib/inlineFiles.js +66 -42
- package/dist/types/components/FileManager/FileSectionItem/DesignationActions.d.ts +2 -0
- package/dist/types/components/FileManager/InlineFilesSection.d.ts +8 -3
- package/dist/types/components/Form.d.ts +1 -1
- package/dist/types/components/Resizer/Resizer.d.ts +36 -0
- package/dist/types/components/Resizer/ResizerButton.d.ts +18 -0
- package/dist/types/components/Resizer/ResizerButtonInner.d.ts +8 -0
- package/dist/types/components/Resizer/ResizerInner.d.ts +4 -0
- package/dist/types/components/Resizer/index.d.ts +2 -0
- package/dist/types/components/Resizer/types.d.ts +2 -0
- package/dist/types/components/icons/index.d.ts +1 -0
- package/dist/types/components/icons/missing-image.d.ts +3 -0
- package/dist/types/index.d.ts +2 -0
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { hasObjectType } from '@manuscripts/manuscript-transform';
|
|
2
2
|
import { ObjectTypes, } from '@manuscripts/manuscripts-json-schema';
|
|
3
3
|
import { FileType } from '../components/FileManager/util';
|
|
4
4
|
const getCaptionText = (caption) => caption &&
|
|
@@ -35,49 +35,73 @@ const getFigureData = (element, modelMap, attachmentsMap) => {
|
|
|
35
35
|
export default (modelMap, attachments) => {
|
|
36
36
|
const files = [];
|
|
37
37
|
const attachmentsMap = new Map(attachments.map((attachment) => [attachment.id, attachment]));
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
break;
|
|
61
|
-
}
|
|
62
|
-
case ObjectTypes.TableElement: {
|
|
63
|
-
const tableElement = element;
|
|
64
|
-
const table = modelMap.get(tableElement.containedObjectID);
|
|
65
|
-
const externalFileReference = (_a = table.externalFileReferences) === null || _a === void 0 ? void 0 : _a.find((file) => file.kind === 'dataset' && file.ref);
|
|
66
|
-
const attachment = getAttachment(externalFileReference, attachmentsMap);
|
|
67
|
-
if (attachment) {
|
|
68
|
-
files.push({
|
|
69
|
-
id: element._id,
|
|
70
|
-
label: `Table`,
|
|
71
|
-
type: FileType.SheetsWorkbooks,
|
|
72
|
-
attachments: [attachment],
|
|
73
|
-
caption: getCaptionText(tableElement.caption),
|
|
74
|
-
});
|
|
75
|
-
}
|
|
76
|
-
break;
|
|
77
|
-
}
|
|
78
|
-
}
|
|
38
|
+
const { graphicalAbstractFigureId, figureElement, tableElement } = getAuxiliaryObjects(modelMap);
|
|
39
|
+
if (graphicalAbstractFigureId) {
|
|
40
|
+
const element = modelMap.get(graphicalAbstractFigureId);
|
|
41
|
+
files.unshift(Object.assign(Object.assign({}, getFigureData(element, modelMap, attachmentsMap)), { label: `Graphical Abstract`, type: FileType.GraphicalAbstract }));
|
|
42
|
+
}
|
|
43
|
+
figureElement.map((id, index) => {
|
|
44
|
+
const element = modelMap.get(id);
|
|
45
|
+
files.push(Object.assign(Object.assign({}, getFigureData(element, modelMap, attachmentsMap)), { label: `Figure ${index + 1}`, type: FileType.Figure }));
|
|
46
|
+
});
|
|
47
|
+
tableElement.map((id) => {
|
|
48
|
+
var _a;
|
|
49
|
+
const tableElement = modelMap.get(id);
|
|
50
|
+
const table = modelMap.get(tableElement.containedObjectID);
|
|
51
|
+
const externalFileReference = (_a = table === null || table === void 0 ? void 0 : table.externalFileReferences) === null || _a === void 0 ? void 0 : _a.find((file) => file.kind === 'dataset' && file.ref);
|
|
52
|
+
const attachment = getAttachment(externalFileReference, attachmentsMap);
|
|
53
|
+
if (attachment) {
|
|
54
|
+
files.push({
|
|
55
|
+
id: tableElement._id,
|
|
56
|
+
label: `Table`,
|
|
57
|
+
type: FileType.SheetsWorkbooks,
|
|
58
|
+
attachments: [attachment],
|
|
59
|
+
caption: getCaptionText(tableElement.caption),
|
|
79
60
|
});
|
|
80
61
|
}
|
|
81
62
|
});
|
|
82
63
|
return files;
|
|
83
64
|
};
|
|
65
|
+
const getAuxiliaryObjects = (modelMap) => {
|
|
66
|
+
var _a;
|
|
67
|
+
let graphicalAbstractFigureId, figureElementIds = [];
|
|
68
|
+
const tableElementIds = [], orderObjects = {};
|
|
69
|
+
for (const model of modelMap.values()) {
|
|
70
|
+
switch (model.objectType) {
|
|
71
|
+
case ObjectTypes.Section: {
|
|
72
|
+
const section = model;
|
|
73
|
+
if (section.category === 'MPSectionCategory:abstract-graphical') {
|
|
74
|
+
graphicalAbstractFigureId = (_a = section.elementIDs) === null || _a === void 0 ? void 0 : _a.find((id) => {
|
|
75
|
+
const obj = modelMap.get(id);
|
|
76
|
+
return obj && hasObjectType(ObjectTypes.FigureElement)(obj);
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
break;
|
|
80
|
+
}
|
|
81
|
+
case ObjectTypes.FigureElement:
|
|
82
|
+
case ObjectTypes.MultiGraphicFigureElement:
|
|
83
|
+
figureElementIds.push(model._id);
|
|
84
|
+
break;
|
|
85
|
+
case ObjectTypes.TableElement:
|
|
86
|
+
tableElementIds.push(model._id);
|
|
87
|
+
break;
|
|
88
|
+
case ObjectTypes.ElementsOrder: {
|
|
89
|
+
const elementsOrder = model;
|
|
90
|
+
orderObjects[elementsOrder.elementType] = elementsOrder;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
figureElementIds = figureElementIds.filter((id) => id !== graphicalAbstractFigureId);
|
|
95
|
+
return {
|
|
96
|
+
graphicalAbstractFigureId,
|
|
97
|
+
figureElement: orderObjects[ObjectTypes.FigureElement]
|
|
98
|
+
? sortAuxiliaryObject(orderObjects[ObjectTypes.FigureElement], figureElementIds)
|
|
99
|
+
: figureElementIds,
|
|
100
|
+
tableElement: orderObjects[ObjectTypes.TableElement]
|
|
101
|
+
? sortAuxiliaryObject(orderObjects[ObjectTypes.TableElement], tableElementIds)
|
|
102
|
+
: tableElementIds,
|
|
103
|
+
};
|
|
104
|
+
};
|
|
105
|
+
const sortAuxiliaryObject = (orderObject, auxiliaryObjectIds) => {
|
|
106
|
+
return auxiliaryObjectIds.sort((a, b) => orderObject.elements.indexOf(a) - orderObject.elements.indexOf(b));
|
|
107
|
+
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React, { Dispatch } from 'react';
|
|
2
|
+
import { Capabilities } from '../../../lib/capabilities';
|
|
2
3
|
import { Action } from '../FileSectionState';
|
|
3
4
|
import { Designation } from '../util';
|
|
4
5
|
export declare const DesignationActions: React.FC<{
|
|
@@ -8,5 +9,6 @@ export declare const DesignationActions: React.FC<{
|
|
|
8
9
|
handleChangeDesignation?: (submissionId: string, attachmentId: string, typeId: string, name: string) => Promise<boolean>;
|
|
9
10
|
submissionId: string;
|
|
10
11
|
fileName: string;
|
|
12
|
+
can: Capabilities | null;
|
|
11
13
|
dispatch?: Dispatch<Action>;
|
|
12
14
|
}>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Model } from '@manuscripts/manuscripts-json-schema';
|
|
2
1
|
import React, { Dispatch } from 'react';
|
|
3
2
|
import { SubmissionAttachment } from './FileSectionItem/FileSectionItem';
|
|
4
3
|
import { Action } from './FileSectionState';
|
|
4
|
+
import { FileType } from './util';
|
|
5
5
|
export interface ExternalFileRef {
|
|
6
6
|
url: string;
|
|
7
7
|
kind?: string;
|
|
@@ -9,8 +9,13 @@ export interface ExternalFileRef {
|
|
|
9
9
|
}
|
|
10
10
|
export declare const InlineFilesSection: React.FC<{
|
|
11
11
|
submissionId: string;
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
inlineFiles: {
|
|
13
|
+
id: string;
|
|
14
|
+
label: string;
|
|
15
|
+
type: FileType;
|
|
16
|
+
caption?: string;
|
|
17
|
+
attachments?: SubmissionAttachment[];
|
|
18
|
+
}[];
|
|
14
19
|
handleReplace: (submissionId: string, attachmentId: string, name: string, file: File, typeId: string) => Promise<boolean>;
|
|
15
20
|
handleDownload: (url: string) => void;
|
|
16
21
|
isEditor: boolean;
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
/// <reference types="react" />
|
|
17
|
-
export declare const CenteredForm: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<Pick<import("react").DetailedHTMLProps<import("react").FormHTMLAttributes<HTMLFormElement>, HTMLFormElement>, "title" | "role" | "name" | "placeholder" | "slot" | "style" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "
|
|
17
|
+
export declare const CenteredForm: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<Pick<import("react").DetailedHTMLProps<import("react").FormHTMLAttributes<HTMLFormElement>, HTMLFormElement>, "title" | "role" | "name" | "id" | "placeholder" | "slot" | "style" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "lang" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "autoComplete" | "method" | "target" | "acceptCharset" | "action" | "encType" | "noValidate"> & import("react").RefAttributes<HTMLFormElement>>, import("styled-components").DefaultTheme, {}, never>;
|
|
18
18
|
export declare const FormHeader: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
19
19
|
export declare const FormActions: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
20
20
|
export declare const FormError: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ResizerButtonInnerProps } from './ResizerButtonInner';
|
|
3
|
+
import { ResizerDirection, ResizerSide } from './types';
|
|
4
|
+
interface Props {
|
|
5
|
+
collapsed: boolean;
|
|
6
|
+
direction: ResizerDirection;
|
|
7
|
+
onResize: (resizeDelta: number) => void;
|
|
8
|
+
onResizeButton: () => void;
|
|
9
|
+
onResizeEnd: (resizeDelta: number) => void;
|
|
10
|
+
side: ResizerSide;
|
|
11
|
+
buttonInner?: React.ComponentType<ResizerButtonInnerProps>;
|
|
12
|
+
}
|
|
13
|
+
interface State {
|
|
14
|
+
isHovering: boolean;
|
|
15
|
+
isResizing: boolean;
|
|
16
|
+
startPosition: number;
|
|
17
|
+
}
|
|
18
|
+
export declare class Resizer extends React.Component<Props, State> {
|
|
19
|
+
resizerRef: React.RefObject<HTMLDivElement>;
|
|
20
|
+
state: {
|
|
21
|
+
isHovering: boolean;
|
|
22
|
+
isResizing: boolean;
|
|
23
|
+
startPosition: number;
|
|
24
|
+
};
|
|
25
|
+
render(): JSX.Element;
|
|
26
|
+
private scheduleResize;
|
|
27
|
+
private mouseDownHandler;
|
|
28
|
+
private mouseUpHandler;
|
|
29
|
+
private mouseMoveHandler;
|
|
30
|
+
private mouseEnterHandler;
|
|
31
|
+
private mouseLeaveHandler;
|
|
32
|
+
private handleOutofBounds;
|
|
33
|
+
private getDelta;
|
|
34
|
+
private getPosition;
|
|
35
|
+
}
|
|
36
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ResizerButtonInnerProps } from './ResizerButtonInner';
|
|
3
|
+
import { ResizerDirection, ResizerSide } from './types';
|
|
4
|
+
interface Props extends React.HTMLProps<HTMLButtonElement> {
|
|
5
|
+
direction: ResizerDirection;
|
|
6
|
+
isCollapsed: boolean;
|
|
7
|
+
isVisible: boolean;
|
|
8
|
+
side: ResizerSide;
|
|
9
|
+
buttonInner?: React.ComponentType<ResizerButtonInnerProps>;
|
|
10
|
+
}
|
|
11
|
+
export declare class ResizerButton extends React.PureComponent<Props> {
|
|
12
|
+
static defaultProps: {
|
|
13
|
+
isCollapsed: boolean;
|
|
14
|
+
isVisible: boolean;
|
|
15
|
+
};
|
|
16
|
+
render(): JSX.Element;
|
|
17
|
+
}
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export interface ResizerButtonInnerProps {
|
|
2
|
+
isCollapsed: boolean;
|
|
3
|
+
isVisible: boolean;
|
|
4
|
+
}
|
|
5
|
+
export declare const HorizontalEndResizerButtonInner: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, ResizerButtonInnerProps, never>;
|
|
6
|
+
export declare const HorizontalStartResizerButtonInner: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, ResizerButtonInnerProps, never>;
|
|
7
|
+
export declare const VerticalEndResizerButtonInner: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, ResizerButtonInnerProps, never>;
|
|
8
|
+
export declare const VerticalStartResizerButtonInner: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, ResizerButtonInnerProps, never>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const HorizontalStartResizerInner: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
2
|
+
export declare const HorizontalEndResizerInner: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
3
|
+
export declare const VerticalStartResizerInner: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
4
|
+
export declare const VerticalEndResizerInner: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
@@ -34,3 +34,4 @@ export { default as TaskStepDoneIcon } from './task-step-done';
|
|
|
34
34
|
export { default as TaskStepNextIcon } from './task-step-next';
|
|
35
35
|
export { default as AttachIcon } from './attach';
|
|
36
36
|
export { default as UploadIcon } from './upload';
|
|
37
|
+
export { default as MissingImage } from './missing-image';
|
package/dist/types/index.d.ts
CHANGED
|
@@ -33,6 +33,7 @@ export * from './components/Form';
|
|
|
33
33
|
export * from './components/FileManager';
|
|
34
34
|
export * from './components/FileManager/util';
|
|
35
35
|
export * from './components/FileManager/FileSectionItem/FileSectionItem';
|
|
36
|
+
export * from './components/Resizer';
|
|
36
37
|
export * from './components/SaveStatus';
|
|
37
38
|
export * from './components/SimpleModal';
|
|
38
39
|
export * from './components/StyledModal';
|
|
@@ -44,6 +45,7 @@ export * from './components/Tip';
|
|
|
44
45
|
export * from './components/icons';
|
|
45
46
|
export * from './components/Inspector';
|
|
46
47
|
export * from './components/InspectorSection';
|
|
48
|
+
export { default as inlineFiles } from './lib/inlineFiles';
|
|
47
49
|
export { default as PdfPreview } from './components/PdfPreview';
|
|
48
50
|
export * from './components/SubmissionInspector';
|
|
49
51
|
export * from './components/Dropdown';
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@manuscripts/style-guide",
|
|
3
3
|
"description": "Shared components for Manuscripts applications",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.31.2",
|
|
5
5
|
"repository": "gitlab:atypon-opensource/manuscripts-style-guide",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"main": "dist/cjs",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"@manuscripts/data": "^0.1.0",
|
|
65
65
|
"@manuscripts/examples": "^0.0.7",
|
|
66
66
|
"@manuscripts/manuscript-transform": "^0.48.16",
|
|
67
|
-
"@manuscripts/manuscripts-json-schema": "^1.49.
|
|
67
|
+
"@manuscripts/manuscripts-json-schema": "^1.49.11",
|
|
68
68
|
"@manuscripts/publish": "^0.2.2",
|
|
69
69
|
"@storybook/addon-actions": "^5.3.14",
|
|
70
70
|
"@storybook/addons": "^5.3.14",
|