@olenbetong/synergi-react 3.1.0 → 3.1.1
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.
|
@@ -2,10 +2,9 @@
|
|
|
2
2
|
height: 100%;
|
|
3
3
|
display: flex;
|
|
4
4
|
flex-direction: column;
|
|
5
|
-
/*
|
|
6
|
-
so
|
|
7
|
-
|
|
8
|
-
background: var(--ds-color-neutral-background-default, #111);
|
|
5
|
+
/* Follow the page color scheme, but keep a neutral gray editor surface in light mode
|
|
6
|
+
so white scanned documents still stand out from the background. */
|
|
7
|
+
background: var(--ds-color-neutral-background-tinted, #f3f3f4);
|
|
9
8
|
color: var(--ds-color-neutral-text-default, white);
|
|
10
9
|
}
|
|
11
10
|
|
|
@@ -26,6 +25,7 @@
|
|
|
26
25
|
justify-content: center;
|
|
27
26
|
position: relative;
|
|
28
27
|
overflow: hidden;
|
|
28
|
+
background: var(--ds-color-neutral-background-tinted, #f3f3f4);
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
.image-editor__replay-overlay {
|
|
@@ -157,7 +157,7 @@
|
|
|
157
157
|
so they're never clipped at the edges. */
|
|
158
158
|
padding: 16px;
|
|
159
159
|
box-sizing: border-box;
|
|
160
|
-
background: var(--ds-color-neutral-background-
|
|
160
|
+
background: var(--ds-color-neutral-background-tinted, #f3f3f4);
|
|
161
161
|
touch-action: none;
|
|
162
162
|
}
|
|
163
163
|
|
|
@@ -73,7 +73,7 @@ export const ImageEditor = forwardRef(function ImageEditor({ imageUrl, onConfirm
|
|
|
73
73
|
}
|
|
74
74
|
let CanvasWrapper = viewPlugin?.CanvasWrapper;
|
|
75
75
|
let TopBarControls = viewPlugin?.TopBarControls;
|
|
76
|
-
let inner = (_jsxs("div", { className: "image-editor",
|
|
76
|
+
let inner = (_jsxs("div", { className: "image-editor", children: [_jsxs("div", { className: "image-editor__topbar", children: [_jsxs("div", { className: "image-editor__toolbar-group", children: [onCancel && (_jsxs(_Fragment, { children: [_jsx(ResponsiveButton, { icon: _jsx(ArrowLeftIcon, { "aria-hidden": true }), label: getLocalizedString("Back"), onClick: onCancel, isSmall: isSmall }), _jsx("span", { className: "image-editor__topbar-divider", "aria-hidden": true })] })), _jsx(ResponsiveButton, { icon: _jsx(ArrowUndoIcon, { "aria-hidden": true }), label: getLocalizedString("Undo"), onClick: history.undo, disabled: disabled || !history.canUndo || !!activePlugin, isSmall: isSmall }), _jsx(ResponsiveButton, { icon: _jsx(ArrowRedoIcon, { "aria-hidden": true }), label: getLocalizedString("Redo"), onClick: history.redo, disabled: disabled || !history.canRedo || !!activePlugin, isSmall: isSmall }), _jsx(ResponsiveButton, { icon: _jsx(ArrowCirclepathIcon, { "aria-hidden": true }), label: getLocalizedString("Reset"), onClick: history.reset, disabled: disabled || !history.canUndo || !!activePlugin, isSmall: isSmall })] }), TopBarControls && (_jsx("div", { className: "image-editor__toolbar-group", children: _jsx(TopBarControls, { disabled: disabled, isSmall: isSmall }) }))] }), _jsxs("div", { className: "image-editor__canvas", children: [CanvasWrapper ? (_jsx(CanvasWrapper, { panEnabled: !activePlugin, children: activePlugin ? (_jsx(ActiveOverlay, { plugin: activePlugin })) : (_jsx("img", { src: history.currentImageUrl, alt: getLocalizedString("Image to edit"), className: "image-editor__img" })) })) : activePlugin ? (_jsx(ActiveOverlay, { plugin: activePlugin })) : (_jsx("img", { src: history.currentImageUrl, alt: getLocalizedString("Image to edit"), className: "image-editor__img" })), !activePlugin && onConfirm && (_jsxs(Button, { className: "image-editor__done", variant: "primary", icon: isSmall, "aria-label": isSmall ? getLocalizedString("Done") : undefined, onClick: confirm, disabled: disabled, children: [_jsx(CheckmarkIcon, { "aria-hidden": true }), !isSmall && getLocalizedString("Done")] })), history.replaying && (_jsx("div", { className: "image-editor__replay-overlay", children: _jsx(Spinner, { "aria-label": getLocalizedString("Loading") }) }))] }), _jsx("div", { className: "image-editor__toolbar", children: activePlugin ? (_jsx(ActiveToolbar, { plugin: activePlugin })) : (_jsx("div", { className: "image-editor__toolbar-group", children: plugins.map((p) => p.type === "tool" ? (_jsx(ToolButton, { plugin: p, busy: disabled, onActivate: () => activateTool(p.id), isSmall: isSmall }, p.id)) : (_jsx(ActionButton, { plugin: p, busy: disabled, onExecute: () => enqueueAction(p), isSmall: isSmall }, p.id))) })) })] }));
|
|
77
77
|
// Wrap with the active tool's provider so Overlay and Toolbar share context.
|
|
78
78
|
if (activePlugin) {
|
|
79
79
|
let ActiveProvider = activePlugin.Provider;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@olenbetong/synergi-react",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.1",
|
|
4
4
|
"description": "Standalone React component for SynergiWeb and Partner Portal",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -52,11 +52,11 @@
|
|
|
52
52
|
"pdf-lib": "^1.17.1",
|
|
53
53
|
"pdfjs-dist": "5.7.284",
|
|
54
54
|
"react-pdf": "^10.4.1",
|
|
55
|
-
"@olenbetong/appframe-
|
|
56
|
-
"@olenbetong/appframe-
|
|
57
|
-
"@olenbetong/appframe-
|
|
58
|
-
"@olenbetong/appframe-react": "2.1.
|
|
59
|
-
"@olenbetong/appframe-mui": "6.6.
|
|
55
|
+
"@olenbetong/appframe-core": "2.13.1",
|
|
56
|
+
"@olenbetong/appframe-ds": "0.9.1",
|
|
57
|
+
"@olenbetong/appframe-data": "1.6.2",
|
|
58
|
+
"@olenbetong/appframe-react": "2.1.2",
|
|
59
|
+
"@olenbetong/appframe-mui": "6.6.3"
|
|
60
60
|
},
|
|
61
61
|
"repository": {
|
|
62
62
|
"type": "git",
|