@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.
Files changed (44) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/__tests__/setup.d.ts +0 -1
  3. package/dist/components/AnimationTimeline.d.ts +0 -1
  4. package/dist/components/DiagramCanvas.d.ts +0 -1
  5. package/dist/components/DiagramCellRenderer.d.ts +0 -1
  6. package/dist/components/DiagramMinimap.d.ts +0 -1
  7. package/dist/components/DiagramPropertyPanel.d.ts +0 -1
  8. package/dist/components/DiagramToolbar.d.ts +0 -1
  9. package/dist/components/NiceDatabaseSchemaViewer.d.ts +0 -1
  10. package/dist/components/NiceDecisionTreeEditor.d.ts +0 -1
  11. package/dist/components/NiceDependencyGraph.d.ts +0 -1
  12. package/dist/components/NiceDiagramEditor.d.ts +0 -1
  13. package/dist/components/NiceDiagramEditor.d.ts.map +1 -1
  14. package/dist/components/NiceDiagramViewer.d.ts +0 -1
  15. package/dist/components/NiceNetworkTopology.d.ts +0 -1
  16. package/dist/components/NiceOrgChartVisualizer.d.ts +0 -1
  17. package/dist/components/NiceProcessMiningDiagram.d.ts +0 -1
  18. package/dist/components/NiceWorkflowVisualizer.d.ts +0 -1
  19. package/dist/components/collaborativeDiagram.d.ts +0 -1
  20. package/dist/components/diagramAdapters.d.ts +0 -1
  21. package/dist/components/diagramTemplates.d.ts +0 -1
  22. package/dist/components/shapeRegistry.d.ts +0 -1
  23. package/dist/components/snapGuides.d.ts +0 -1
  24. package/dist/components/workflowIntegrations.d.ts +0 -1
  25. package/dist/core/DiagramModel.d.ts +0 -1
  26. package/dist/core/animationEngine.d.ts +0 -1
  27. package/dist/core/conditionalStyling.d.ts +0 -1
  28. package/dist/core/dataBinding.d.ts +0 -1
  29. package/dist/core/diagramParticleEngine.d.ts +0 -1
  30. package/dist/core/diagramSearch.d.ts +0 -1
  31. package/dist/core/diagramStylePresets.d.ts +0 -1
  32. package/dist/core/diagramTemplateGallery.d.ts +0 -1
  33. package/dist/core/diagramVersioning.d.ts +0 -1
  34. package/dist/core/exportEngine.d.ts +0 -1
  35. package/dist/core/i18n.d.ts +0 -1
  36. package/dist/core/layoutEngine.d.ts +0 -1
  37. package/dist/core/serialization.d.ts +0 -1
  38. package/dist/core/snapGrid.d.ts +0 -1
  39. package/dist/hooks/useDiagramEditor.d.ts +0 -1
  40. package/dist/index.cjs +3 -3
  41. package/dist/index.d.ts +0 -1
  42. package/dist/index.mjs +1350 -1368
  43. package/dist/ui-diagrams.css +1 -0
  44. 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
@@ -1,2 +1 @@
1
-
2
1
  //# sourceMappingURL=setup.d.ts.map
@@ -1,6 +1,5 @@
1
1
  import { default as React } from 'react';
2
2
  import { DiagramAnimation } from '../types/diagramTypes';
3
-
4
3
  export interface AnimationTimelineProps {
5
4
  animations: readonly DiagramAnimation[];
6
5
  onAdd?: (anim: Omit<DiagramAnimation, 'id'>) => void;
@@ -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 { NiceDiagramDocument, DiagramNode, DiagramEdge } from '../types/diagramTypes';
3
-
4
3
  export interface DiagramCellRendererProps {
5
4
  /** Full diagram document to render. */
6
5
  document?: NiceDiagramDocument;
@@ -1,6 +1,5 @@
1
1
  import { default as React } from 'react';
2
2
  import { DiagramNode, DiagramEdge, DiagramViewport } from '../types/diagramTypes';
3
-
4
3
  export interface DiagramMinimapProps {
5
4
  nodes: readonly DiagramNode[];
6
5
  edges: readonly DiagramEdge[];
@@ -1,6 +1,5 @@
1
1
  import { default as React } from 'react';
2
2
  import { DiagramNode, DiagramEdge } from '../types/diagramTypes';
3
-
4
3
  export interface DiagramPropertyPanelProps {
5
4
  selectedNode?: DiagramNode | null;
6
5
  selectedEdge?: DiagramEdge | null;
@@ -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,5 +1,4 @@
1
1
  import { default as React } from 'react';
2
-
3
2
  export interface DatabaseColumn {
4
3
  name: string;
5
4
  type: string;
@@ -1,5 +1,4 @@
1
1
  import { default as React } from 'react';
2
-
3
2
  export interface DecisionNode {
4
3
  id: string;
5
4
  type: DecisionNodeType;
@@ -1,5 +1,4 @@
1
1
  import { default as React } from 'react';
2
-
3
2
  export interface DependencyNode {
4
3
  id: string;
5
4
  name: string;
@@ -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,EAIL,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,eAA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B,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,6 +1,5 @@
1
1
  import { default as React } from 'react';
2
2
  import { NiceDiagramDocument } from '../types/diagramTypes';
3
-
4
3
  export interface NiceDiagramViewerProps {
5
4
  /** The document to display */
6
5
  document: NiceDiagramDocument;
@@ -1,5 +1,4 @@
1
1
  import { default as React } from 'react';
2
-
3
2
  export interface NetworkDevice {
4
3
  id: string;
5
4
  name: string;
@@ -1,5 +1,4 @@
1
1
  import { default as React } from 'react';
2
-
3
2
  export interface OrgEmployee {
4
3
  id: string;
5
4
  name: string;
@@ -1,5 +1,4 @@
1
1
  import { default as React } from 'react';
2
-
3
2
  export interface ProcessEvent {
4
3
  caseId: string;
5
4
  activity: string;
@@ -1,6 +1,5 @@
1
1
  import { default as React } from 'react';
2
2
  import { NodeShape } from '../types/diagramTypes';
3
-
4
3
  export interface WorkflowStep {
5
4
  id: string;
6
5
  name: string;
@@ -1,6 +1,5 @@
1
1
  import { default as React } from 'react';
2
2
  import { NiceDiagramDocument, DiagramNode, DiagramEdge, DiagramGroup } from '../types/diagramTypes';
3
-
4
3
  export interface YDoc {
5
4
  getMap<T>(name: string): YMap<T>;
6
5
  getArray<T>(name: string): YArray<T>;
@@ -1,5 +1,4 @@
1
1
  import { NiceDiagramDocument, DiagramNode, DiagramEdge, DiagramGroup, DiagramAnimation, DiagramType } from '../types/diagramTypes';
2
-
3
2
  export interface SimpleNode {
4
3
  id: string;
5
4
  label: string;
@@ -1,5 +1,4 @@
1
1
  import { NiceDiagramDocument } from '../types/diagramTypes';
2
-
3
2
  export interface DiagramTemplate {
4
3
  id: string;
5
4
  name: string;
@@ -1,5 +1,4 @@
1
1
  import { default as React } from 'react';
2
-
3
2
  export interface ShapeDefinition {
4
3
  /** Unique shape identifier */
5
4
  id: string;
@@ -1,5 +1,4 @@
1
1
  import { default as React } from 'react';
2
-
3
2
  export interface Point {
4
3
  x: number;
5
4
  y: number;
@@ -1,5 +1,4 @@
1
1
  import { WorkflowData } from './NiceWorkflowVisualizer';
2
-
3
2
  export interface BPMNDefinitions {
4
3
  process?: BPMNProcess | BPMNProcess[];
5
4
  collaboration?: BPMNCollaboration;
@@ -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 { DiagramAnimation, EasingType } from '../types/diagramTypes';
2
-
3
2
  export declare function getEasing(name: EasingType): (t: number) => number;
4
3
  export interface AnimationState {
5
4
  opacity: number;
@@ -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 { DiagramNode, DiagramEdge, DiagramDataBinding, NodeShape } from '../types/diagramTypes';
2
-
3
2
  export interface DataRecord {
4
3
  [key: string]: unknown;
5
4
  }
@@ -1,5 +1,4 @@
1
1
  import { LiquidFlowConfig, Point } from '../types/diagramTypes';
2
-
3
2
  export interface Particle {
4
3
  x: number;
5
4
  y: number;
@@ -1,5 +1,4 @@
1
1
  import { DiagramNode, DiagramEdge, DiagramGroup, NodeShape } from '../types/diagramTypes';
2
-
3
2
  /** Search scope. */
4
3
  export type SearchScope = 'all' | 'nodes' | 'edges' | 'groups' | 'labels' | 'data';
5
4
  /** Match type. */
@@ -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, DiagramType } from '../types/diagramTypes';
2
-
3
2
  export interface DiagramTemplate {
4
3
  id: string;
5
4
  name: 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. */
@@ -1,5 +1,4 @@
1
1
  import { NiceDiagramDocument, DiagramExportOptions } from '../types/diagramTypes';
2
-
3
2
  /**
4
3
  * Export diagram to SVG string.
5
4
  */
@@ -1,5 +1,4 @@
1
1
  import { default as React, ReactNode } from 'react';
2
-
3
2
  export type NiceTranslateFn = (key: string, fallback?: string) => string;
4
3
  interface I18nContextValue {
5
4
  locale: string;
@@ -1,5 +1,4 @@
1
1
  import { DiagramNode as _DiagramNode, DiagramEdge as _DiagramEdge, LayoutOptions, Point as _Point } from '../types/diagramTypes';
2
-
3
2
  export interface LayoutResult {
4
3
  positions: Map<string, _Point>;
5
4
  }
@@ -1,5 +1,4 @@
1
1
  import { NiceDiagramDocument } from '../types/diagramTypes';
2
-
3
2
  export interface ParseResult {
4
3
  ok: boolean;
5
4
  document?: NiceDiagramDocument;
@@ -1,5 +1,4 @@
1
1
  import { Point, Size } from '../types/diagramTypes';
2
-
3
2
  export interface GridConfig {
4
3
  /** Grid cell size in px (default 20) */
5
4
  size: number;
@@ -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>;