@nice2dev/ui-diagrams 1.0.28 → 1.1.5
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 +18 -0
- package/dist/__tests__/setup.d.ts +0 -1
- package/dist/components/AnimationTimeline.d.ts +0 -1
- package/dist/components/DiagramCanvas.d.ts +0 -1
- package/dist/components/DiagramCellRenderer.d.ts +0 -1
- package/dist/components/DiagramMinimap.d.ts +0 -1
- package/dist/components/DiagramPropertyPanel.d.ts +0 -1
- package/dist/components/DiagramToolbar.d.ts +0 -1
- package/dist/components/NiceDatabaseSchemaViewer.d.ts +0 -1
- package/dist/components/NiceDecisionTreeEditor.d.ts +0 -1
- package/dist/components/NiceDependencyGraph.d.ts +0 -1
- package/dist/components/NiceDiagramEditor.d.ts +0 -1
- package/dist/components/NiceDiagramEditor.d.ts.map +1 -1
- package/dist/components/NiceDiagramViewer.d.ts +0 -1
- package/dist/components/NiceNetworkTopology.d.ts +0 -1
- package/dist/components/NiceOrgChartVisualizer.d.ts +0 -1
- package/dist/components/NiceProcessMiningDiagram.d.ts +0 -1
- package/dist/components/NiceWorkflowVisualizer.d.ts +0 -1
- package/dist/components/collaborativeDiagram.d.ts +0 -1
- package/dist/components/diagramAdapters.d.ts +0 -1
- package/dist/components/diagramTemplates.d.ts +0 -1
- package/dist/components/shapeRegistry.d.ts +0 -1
- package/dist/components/snapGuides.d.ts +0 -1
- package/dist/components/workflowIntegrations.d.ts +0 -1
- package/dist/core/DiagramModel.d.ts +0 -1
- package/dist/core/animationEngine.d.ts +0 -1
- package/dist/core/conditionalStyling.d.ts +0 -1
- package/dist/core/dataBinding.d.ts +0 -1
- package/dist/core/diagramParticleEngine.d.ts +0 -1
- package/dist/core/diagramSearch.d.ts +0 -1
- package/dist/core/diagramStylePresets.d.ts +0 -1
- package/dist/core/diagramTemplateGallery.d.ts +0 -1
- package/dist/core/diagramVersioning.d.ts +0 -1
- package/dist/core/exportEngine.d.ts +0 -1
- package/dist/core/i18n.d.ts +0 -1
- package/dist/core/layoutEngine.d.ts +0 -1
- package/dist/core/serialization.d.ts +0 -1
- package/dist/core/snapGrid.d.ts +0 -1
- package/dist/hooks/useDiagramEditor.d.ts +0 -1
- package/dist/index.cjs +3 -3
- package/dist/index.d.ts +0 -1
- package/dist/index.mjs +1350 -1368
- package/dist/ui-diagrams.css +1 -0
- package/package.json +14 -12
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @nice2dev/ui-diagrams — Changelog
|
|
2
2
|
|
|
3
|
+
## 1.1.5
|
|
4
|
+
|
|
5
|
+
No changes in this release.
|
|
6
|
+
|
|
7
|
+
## 1.0.29
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Library-wide consistency pass + showcase overhaul.
|
|
12
|
+
- **Universal app shell:** every genuine multi-panel editor/studio/designer/builder/workspace standardized onto `NiceAppShell` (slots + `flush`), incl. `NiceTeamsWorkspace` and `NiceAPIDesigner`. No public API changes — internal layout only.
|
|
13
|
+
- **Icons:** foreign icons (emoji, raw unicode glyphs, inline `<svg>`, FontAwesome) replaced with `@nice2dev/icons` / `NiceIcon` built-ins across the packages; ~110 built-in icon paths added to `NiceIcon`.
|
|
14
|
+
- **Control sizing:** every basic control now honours the full `xs · sm · md · lg · xl` size scale with working CSS — fixed `NiceCard`, `NiceAlert`, `NiceSkeleton`, `NiceDivider`, `NiceSearchInput`, `NiceCallout`, `NiceStatistic`, `NiceSegmentedControl`, `NiceCheckbox`, `NiceParagraph`, and a `NiceSpinner` CSS-shadow regression (`md` baseline unchanged). `NiceNumericInput` gained a `size` prop.
|
|
15
|
+
- **NiceKioskShell:** the `style` prop now overrides the default full-screen `position: fixed` (so it can be embedded contained).
|
|
16
|
+
- **Input devices + spatial navigation:** `NiceGamepad` / `NiceMicrophone` / `NiceDeviceManager` / `NiceDeviceTile` and `NavShell` spatial-navigation support.
|
|
17
|
+
- **Audio:** AudioVerse → `@nice2dev/ui-audio` parity (15 controls; optional `recharts` visualizers).
|
|
18
|
+
- **Display atoms + forms:** standardized atoms (`NiceBadge`/`NiceTag`/`NiceAvatarGroup`/`NiceProgress`/…), removed the deprecated `NiceStatusBadge` (migrated to `NiceBadge` variants), entity validation builder, selectable `NiceCard`.
|
|
19
|
+
- **Editors inside satellites** (`ui-ai`/`ui-api`/`ui-bi`/`ui-math`/`ui-video`/`ui-audio`/`events`) now declare `@nice2dev/ui` (and where used `@nice2dev/icons` / `@nice2dev/ui-core`) as peer dependencies.
|
|
20
|
+
|
|
3
21
|
All notable changes to the diagram editor package.
|
|
4
22
|
|
|
5
23
|
## [0.2.0] — 2026-03-25
|
|
@@ -2,7 +2,6 @@ import { default as React } from 'react';
|
|
|
2
2
|
import { AnimationState } from '../core/animationEngine';
|
|
3
3
|
import { ParticleEngineState } from '../core/diagramParticleEngine';
|
|
4
4
|
import { DiagramNode, DiagramEdge, DiagramGroup, DiagramViewport, DiagramThemeOverrides, DiagramViewMode, Point, Size } from '../types/diagramTypes';
|
|
5
|
-
|
|
6
5
|
export interface DiagramCanvasProps {
|
|
7
6
|
nodes: readonly DiagramNode[];
|
|
8
7
|
edges: readonly DiagramEdge[];
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { LayoutAlgorithm, NodeShape, DiagramType, DiagramViewMode } from '../types/diagramTypes';
|
|
3
|
-
|
|
4
3
|
export type DiagramTool = 'select' | 'addNode' | 'addEdge' | 'pan' | 'delete' | 'text' | 'freehand';
|
|
5
4
|
export interface DiagramToolbarProps {
|
|
6
5
|
activeTool: DiagramTool;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { NiceComponentTutorial } from '@nice2dev/ui';
|
|
2
2
|
import { default as React } from 'react';
|
|
3
3
|
import { NiceDiagramDocument, DiagramType } from '../types/diagramTypes';
|
|
4
|
-
|
|
5
4
|
export interface NiceDiagramEditorProps {
|
|
6
5
|
/** Initial document (optional — empty diagram created if omitted) */
|
|
7
6
|
initialDocument?: NiceDiagramDocument;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NiceDiagramEditor.d.ts","sourceRoot":"","sources":["../../src/components/NiceDiagramEditor.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,
|
|
1
|
+
{"version":3,"file":"NiceDiagramEditor.d.ts","sourceRoot":"","sources":["../../src/components/NiceDiagramEditor.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAKL,KAAK,qBAAqB,EAE3B,MAAM,cAAc,CAAC;AACtB,OAAO,KAA4D,MAAM,OAAO,CAAC;AAqBjF,OAAO,KAAK,EACV,mBAAmB,EACnB,WAAW,EAKZ,MAAM,uBAAuB,CAAC;AAU/B,MAAM,WAAW,sBAAsB;IACrC,qEAAqE;IACrE,eAAe,CAAC,EAAE,mBAAmB,CAAC;IACtC,4DAA4D;IAC5D,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,qCAAqC;IACrC,QAAQ,CAAC,EAAE,CAAC,GAAG,EAAE,QAAQ,CAAC,mBAAmB,CAAC,KAAK,IAAI,CAAC;IACxD,6DAA6D;IAC7D,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IACrD,6BAA6B;IAC7B,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IAEnB,uBAAuB;IACvB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,YAAY,CAAC,EAAE,OAAO,CAAC;IAEvB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,+EAA+E;IAC/E,QAAQ,CAAC,EAAE,qBAAqB,CAAC;CAClC;AAID,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,sBAAsB,CA8Z9D,CAAC"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { NiceDiagramDocument, DiagramNode, DiagramEdge, DiagramGroup, DiagramAnimation, DiagramAnimationMode, DiagramViewport, DiagramViewMode, DiagramPlayerConfig, DiagramStylePresetConfig, DiagramType, Point, Size, NodeShape } from '../types/diagramTypes';
|
|
2
|
-
|
|
3
2
|
export declare class DiagramModel {
|
|
4
3
|
private doc;
|
|
5
4
|
private undoStack;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { DiagramNode, DiagramEdge, NodeStyle, EdgeStyle, NodeShape } from '../types/diagramTypes';
|
|
2
|
-
|
|
3
2
|
/** Condition operator for style rules. */
|
|
4
3
|
export type StyleConditionOperator = 'equals' | 'not_equals' | 'greater_than' | 'greater_than_or_equals' | 'less_than' | 'less_than_or_equals' | 'contains' | 'not_contains' | 'starts_with' | 'ends_with' | 'regex' | 'is_null' | 'is_not_null' | 'is_empty' | 'is_not_empty' | 'in' | 'not_in' | 'between';
|
|
5
4
|
/** A single condition. */
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { DiagramStylePreset, DiagramStylePresetConfig, DiagramStylePresetCategory, NodeStyle, EdgeStyle, DiagramThemeOverrides } from '../types/diagramTypes';
|
|
2
|
-
|
|
3
2
|
export declare const DIAGRAM_STYLE_PRESETS: DiagramStylePreset[];
|
|
4
3
|
export interface NodeStyleCatalogEntry {
|
|
5
4
|
id: string;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { NiceDiagramDocument } from '../types/diagramTypes';
|
|
2
|
-
|
|
3
2
|
/** Type of change in a version. */
|
|
4
3
|
export type DiagramChangeType = 'node-added' | 'node-removed' | 'node-moved' | 'node-resized' | 'node-restyled' | 'node-relabeled' | 'edge-added' | 'edge-removed' | 'edge-restyled' | 'edge-rerouted' | 'group-added' | 'group-removed' | 'group-modified' | 'viewport-changed' | 'metadata-changed' | 'animation-added' | 'animation-removed' | 'animation-modified' | 'theme-changed' | 'title-changed';
|
|
5
4
|
/** A single change in a diff. */
|
package/dist/core/i18n.d.ts
CHANGED
package/dist/core/snapGrid.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { DiagramModel } from '../core/DiagramModel';
|
|
2
2
|
import { NiceDiagramDocument, DiagramNode, DiagramEdge, DiagramGroup, DiagramAnimation, DiagramAnimationMode, DiagramViewport, DiagramViewMode, DiagramPlayerConfig, DiagramStylePresetConfig, LayoutOptions, NodeShape, Point, Size } from '../types/diagramTypes';
|
|
3
|
-
|
|
4
3
|
export interface UseDiagramEditorReturn {
|
|
5
4
|
/** Current document (read-only) */
|
|
6
5
|
document: Readonly<NiceDiagramDocument>;
|