@nice2dev/ui-diagrams 1.4.1 → 1.4.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/CHANGELOG.md +41 -0
- package/dist/components/NiceDiagramViewer.d.ts +5 -0
- package/dist/index.cjs +3 -3
- package/dist/index.mjs +1191 -1179
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,46 @@
|
|
|
1
1
|
# @nice2dev/ui-diagrams — Changelog
|
|
2
2
|
|
|
3
|
+
## 1.4.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 59c88ca: Controls, showcase feedback round 43.
|
|
8
|
+
|
|
9
|
+
Fixes:
|
|
10
|
+
|
|
11
|
+
- NiceDrawer no longer slides off-screen right after opening: it carries `nice-drawer--open` (and its
|
|
12
|
+
overlay `nice-drawer-overlay--visible`). Top and bottom drawers span the width.
|
|
13
|
+
- NiceDocumentEditor: typing no longer comes out backwards ("Test" → "tseT") — editable blocks are
|
|
14
|
+
uncontrolled, and a toggle keeps its title line when its body is edited.
|
|
15
|
+
- NiceNavShell: on a phone with a `topNav` slot of your own, `api.mobileMenuButton` is a ready
|
|
16
|
+
hamburger that opens the menu (the sidebar's tree) in a drawer; `api.mobileMenuOpen` /
|
|
17
|
+
`api.setMobileMenuOpen` for a button of your own. A narrow window no longer leaves you with no
|
|
18
|
+
way to the menu.
|
|
19
|
+
- NiceSidebarNav: a shortcut scrolls the tree to its row once the row is shown.
|
|
20
|
+
- NiceBottomSheet: the handle drags with a mouse or pen too (pointer events), so the snap points work.
|
|
21
|
+
- NiceMenu `fullWidth` spreads the items over the whole bar.
|
|
22
|
+
- NiceForm: a number field keeps its own width instead of stretching over the column.
|
|
23
|
+
- NiceWindow follows the theme (text, title bar), pads its content and turns see-through while dragged.
|
|
24
|
+
- NiceDateTimePicker / NiceDateRangeBox: inside a NiceThemeProvider the popup keeps the named theme's
|
|
25
|
+
colours (no light/dark class over them).
|
|
26
|
+
- NiceCodeEditor / NiceCodeDiffEditor (`theme="auto"`) follow the app's theme, including a scoped
|
|
27
|
+
NiceThemeProvider; NiceSimpleCodeEditor uses the theme's colours in dark mode.
|
|
28
|
+
- NiceScheduler shows dates as the date pickers do: the app locale, two-digit day and month,
|
|
29
|
+
a four-digit year.
|
|
30
|
+
- NicePieChart labels 50% larger; NicePolarChart's title gets a band of its own; NiceLinearGauge's
|
|
31
|
+
label sits lower.
|
|
32
|
+
- NiceChatWindow / NiceChannelView: the hover actions sit next to the message.
|
|
33
|
+
- NiceMessenger / NiceChatWindow use NiceAvatar with a larger presence dot.
|
|
34
|
+
- NiceGenericPlayer: theme colours for text, toggles and sliders, the stage tinted by the theme;
|
|
35
|
+
the progress updates ten times a second.
|
|
36
|
+
- NiceDiagramViewer: `autoFit` (default `true`) fits the whole diagram; without `showWorkspace` the
|
|
37
|
+
diagram sits on the page's background.
|
|
38
|
+
- NiceDesktop's taskbar uses the theme's surface.
|
|
39
|
+
|
|
40
|
+
New:
|
|
41
|
+
|
|
42
|
+
- NiceAvatar `badge` + `badgePosition` — a presence dot, count or icon on the avatar's edge.
|
|
43
|
+
|
|
3
44
|
## 1.4.1
|
|
4
45
|
|
|
5
46
|
No changes in this release.
|
|
@@ -18,6 +18,11 @@ export interface NiceDiagramViewerProps {
|
|
|
18
18
|
* unless explicitly overridden.
|
|
19
19
|
*/
|
|
20
20
|
showWorkspace?: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Fit the whole diagram to the viewer — at mount, on resize and for a new document, until the
|
|
23
|
+
* user zooms or pans (default `true`, 1.4.2). `false` keeps the document's own viewport.
|
|
24
|
+
*/
|
|
25
|
+
autoFit?: boolean;
|
|
21
26
|
className?: string;
|
|
22
27
|
style?: React.CSSProperties;
|
|
23
28
|
}
|