@nice2dev/ui-api 1.0.29 → 1.1.6
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 +110 -0
- package/dist/NiceAPIDesigner.d.ts +1 -4
- package/dist/NiceAPITester.d.ts +0 -1
- package/dist/NiceDocumentViewer-B-uEPZAf-B0NNeCm7.js +674 -0
- package/dist/NiceDocumentViewer-B-uEPZAf-CoM-K49P.js +674 -0
- package/dist/NiceDocumentViewer-B-uEPZAf-DpbzLkDD.cjs +180 -0
- package/dist/NiceDocumentViewer-B-uEPZAf-DqSjaSJp.cjs +180 -0
- package/dist/NiceIntegrationBuilder.d.ts +0 -1
- package/dist/NiceWebhookTester.d.ts +0 -1
- package/dist/index-CRiA7qAY.cjs +6673 -0
- package/dist/index-Cl4jRNGa.cjs +6673 -0
- package/dist/index-DVh0InIq.js +96058 -0
- package/dist/index-HyLjDY_p.js +96070 -0
- package/dist/index.cjs +1 -30
- package/dist/index.mjs +5 -3916
- package/dist/types.d.ts +0 -1
- package/dist/ui-api.css +1 -0
- package/package.json +15 -14
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,115 @@
|
|
|
1
1
|
# @nice2dev/ui-api
|
|
2
2
|
|
|
3
|
+
## 1.1.6
|
|
4
|
+
|
|
5
|
+
No changes in this release.
|
|
6
|
+
|
|
7
|
+
## 1.1.5
|
|
8
|
+
|
|
9
|
+
No changes in this release.
|
|
10
|
+
|
|
11
|
+
## 1.0.30
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Round-24 showcase-feedback fixes.
|
|
16
|
+
|
|
17
|
+
**@nice2dev/ui**
|
|
18
|
+
|
|
19
|
+
- **NiceDateRangeBox / NiceDateTimePicker.** Fix a real day/month transposition: the
|
|
20
|
+
keyboard `t`/Today shortcut (`writeDate`) built digits in ISO order but they were
|
|
21
|
+
interpreted in display order, so for a localized mask (`dd.MM.yyyy`) Today produced a
|
|
22
|
+
transposed value that then drove the other picker's greyed range. `writeDate` now builds
|
|
23
|
+
an ISO string and routes through the ISO-safe `applyIso`. The popup **Today/Now** buttons
|
|
24
|
+
are also disabled when today is outside `[min, max]`, instead of silently clamping to `min`.
|
|
25
|
+
- **NiceDateTimePicker (clock mode).** The highlight now rides the selected **hour number**
|
|
26
|
+
on the ring (not the hand tip); **both** hands are always drawn (active in the accent
|
|
27
|
+
colour, the other muted); and `minuteStep` (5/10/15/20/30) draws snap markers + labels and
|
|
28
|
+
clicks snap to them.
|
|
29
|
+
- **NiceTreeView.** New optional `header` prop rendered above the search box / tree.
|
|
30
|
+
- **NiceKanbanBoard.** New `collapseDirection: 'vertical' | 'horizontal'` prop (a short
|
|
31
|
+
horizontal bar as an alternative to the slim vertical rail); the collapsed count renders as
|
|
32
|
+
a one-line diagonal fraction (`2/3`).
|
|
33
|
+
- **NicePivotGridFieldChooser.** Working HTML5 drag-and-drop, `name (type)` field bars (new
|
|
34
|
+
`NicePivotField.dataType`), the per-field area buttons replaced by a `NiceSelect` gated
|
|
35
|
+
behind a new `showAreaSelect` prop, and a single-column layout so Filters no longer wraps.
|
|
36
|
+
- **NiceTabs.** New `countLocation: 'right' | 'bottom'` prop — `'bottom'` stacks a tab's
|
|
37
|
+
badge/count under the icon as a heavily-rounded pill.
|
|
38
|
+
|
|
39
|
+
**@nice2dev/icons** — geometry fixes across all variants: NtdBank (roof/columns lowered ~20%
|
|
40
|
+
and centred), NtdMusic (note heads meet stems flush), NtdHome (square floor + lower walls),
|
|
41
|
+
NtdPlanet (ring uses the secondary colour in solid/outline), NtdPizza (arc crust, not a
|
|
42
|
+
triangle), NtdDroplet (slimmer profiled sides), NtdHexagon & NtdSend (sharp, not rounded).
|
|
43
|
+
|
|
44
|
+
**@nice2dev/events** — NiceEventPlanning grows from 6 to 10 tabs (Schedule, Tasks, Vendors,
|
|
45
|
+
Documents), each optional tab hideable via a `show*` boolean prop, plus a `countLocation`
|
|
46
|
+
prop (`'bottom'` default | `'right'`) forwarded to NiceTabs.
|
|
47
|
+
|
|
48
|
+
**@nice2dev/ui-api** — NiceAPIDesigner rebuilt on Nice controls with real, editable Paths /
|
|
49
|
+
Schemas / Security editors and a seeded Pet-Store example so it opens populated.
|
|
50
|
+
|
|
51
|
+
**@nice2dev/ui-graphics** — NicePixelEditor: the right settings panel folds into collapsible
|
|
52
|
+
NiceCollapse sections, the top menu into NiceMenu dropdowns, and the active tool now has a
|
|
53
|
+
clearly-visible highlight.
|
|
54
|
+
|
|
55
|
+
- Round-27 showcase-feedback fixes.
|
|
56
|
+
|
|
57
|
+
**@nice2dev/icons**
|
|
58
|
+
|
|
59
|
+
- **New `wireframe` variant** (10th). Like `sharp` and `rounded` it has no per-icon path
|
|
60
|
+
data — it is a mechanical re-draw of `paths.solid`, which carries the _whole_
|
|
61
|
+
construction, so every shape (creases, inner discs, duotone underlays) comes through as
|
|
62
|
+
a thin unfilled stroke in the primary colour. Per-shape `opacity` is cleared so a faint
|
|
63
|
+
duotone wash cannot survive as a ghost line. Both render paths (`createIcon` and the RSC
|
|
64
|
+
twin) share the pass, and the variant is registered in the design tokens and the Figma
|
|
65
|
+
export set.
|
|
66
|
+
- **`NtdUndo` / `NtdRedo` duotone** no longer draw a secondary disc behind the curve (it
|
|
67
|
+
read as "a ball in the middle"). The two tones now follow the icon's own parts:
|
|
68
|
+
arrowhead in `primaryColor`, tail in `secondaryColor`, both at full strength.
|
|
69
|
+
- **`NtdSend`** — `outline` drops the diagonal crease and shows the silhouette only;
|
|
70
|
+
`duotone` splits the solid plane along that crease instead of stacking a wash under a
|
|
71
|
+
stroke, giving an upper wing in `primaryColor` and a lower wing in `secondaryColor`.
|
|
72
|
+
- **`NtdDroplet`** reshaped in all five path variants: the sides now leave the tip almost
|
|
73
|
+
vertically and only flare low down, and the bulb is an ellipse (rx 5.6 / ry 6.2) rather
|
|
74
|
+
than an r=8 circle — a pinched waist and an oval silhouette instead of a round, fat one.
|
|
75
|
+
|
|
76
|
+
**@nice2dev/ui**
|
|
77
|
+
|
|
78
|
+
- **`NicePivotGrid`** — new `headerText` prop rendered at the left of the toolbar, with the
|
|
79
|
+
actions pushed flush right on the same row. The field-chooser button is icon-only now
|
|
80
|
+
(tooltip + `aria-label` keep the name), and CSV export became a download menu offering
|
|
81
|
+
**CSV and XLSX**; the XLSX goes through the library's own dependency-free writer
|
|
82
|
+
(`downloadXLSX`), so no new runtime dependency. Both formats are built from one shared
|
|
83
|
+
table model and therefore cannot drift apart.
|
|
84
|
+
- **`NiceDateTimePicker`** — opening the popup or switching to `spinners` no longer reels
|
|
85
|
+
the wheels round to the value. The columns carried a CSS `scroll-behavior: smooth`, which
|
|
86
|
+
hijacked the `behavior: 'auto'` jump the wheel asks for on mount; the rule is gone and the
|
|
87
|
+
wheel now says `'instant'` explicitly. Small steps still animate, and reduced-motion is
|
|
88
|
+
honoured in JS (a media query cannot override an explicit `scrollTo` behavior).
|
|
89
|
+
- **`NiceDateRangeBox`** — the `singleField` box was sized off a flat worst-case
|
|
90
|
+
`26ch`/`36ch`, leaving ~100 px of dead space between a locale-formatted range and the
|
|
91
|
+
clear button. It is now measured from a sample range rendered in the same locale and
|
|
92
|
+
preset, so the field stays snug (~20 px of slack) and does not resize as you pick.
|
|
93
|
+
- **`NiceKanbanBoard`** — collapsing a column horizontally shortens it instead of narrowing
|
|
94
|
+
it: the collapsed metrics mirror an expanded column in both the scroll and responsive
|
|
95
|
+
layouts. The `2/3` limit counter sits on one baseline (the staggered ±0.12em offsets read
|
|
96
|
+
as a crooked figure).
|
|
97
|
+
- **`NiceDropDownButton`** now applies the `title` from `NiceBaseProps` and, for an
|
|
98
|
+
icon-only trigger, uses it as the accessible name — it used to be dropped silently.
|
|
99
|
+
|
|
100
|
+
**@nice2dev/ui-api** — `NiceAPIDesigner` follows the theme. The stylesheet stood on
|
|
101
|
+
`--nice-*` colour aliases that are declared in `@nice2dev/ui`, not here (and four of which
|
|
102
|
+
— `--nice-hover`, `--nice-selected`, `--nice-bg-code`, `--nice-grid` — are declared nowhere
|
|
103
|
+
at all), so a consumer loading only this package's CSS got hard-coded light values. All of
|
|
104
|
+
them moved to the canonical theme tokens, `color: white` became `--text-on-primary` and the
|
|
105
|
+
two paper-white panels became `--bg-elevated`. The endpoints/schemas sidebar now runs the
|
|
106
|
+
full height of the editor pane with a sticky header and scrolls inside itself, and the view
|
|
107
|
+
switcher wraps instead of forcing a sideways scroll.
|
|
108
|
+
|
|
109
|
+
**@nice2dev/ui-graphics** — `NiceVectorEditor`'s `initialIcon.variant` accepts
|
|
110
|
+
`'wireframe'`; a snippet exported while it is selected lands in `solid`, since `wireframe`
|
|
111
|
+
is derived and never authored as its own layer.
|
|
112
|
+
|
|
3
113
|
## 1.0.29
|
|
4
114
|
|
|
5
115
|
### Patch Changes
|
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { NiceAPIDesignerProps } from './types';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* NiceAPIDesigner - Visual OpenAPI Editor
|
|
6
|
-
*/
|
|
3
|
+
/** NiceAPIDesigner — visual OpenAPI editor. */
|
|
7
4
|
export declare function NiceAPIDesigner({ schema: initialSchema, onChange, onSave, readOnly, className, tutorial, }: NiceAPIDesignerProps): React.ReactElement;
|
|
8
5
|
export default NiceAPIDesigner;
|