@ankhorage/zora 22.0.80 → 22.0.81

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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 22.0.81
4
+
5
+ ### Patch Changes
6
+
7
+ - d3d3741: Preserve public GraphView type exports in standalone web materialization.
8
+
3
9
  ## 22.0.80
4
10
 
5
11
  ### Patch Changes
package/README.md CHANGED
@@ -3,7 +3,7 @@
3
3
 
4
4
  # @ankhorage/zora
5
5
 
6
- ![license: MIT](././paradox/badges/license.svg) ![npm: v22.0.80](././paradox/badges/npm.svg) ![runtime: bun](././paradox/badges/runtime.svg) ![typescript: strict](././paradox/badges/typescript.svg) ![eslint: checked](././paradox/badges/eslint.svg) ![prettier: checked](././paradox/badges/prettier.svg) ![build: checked](././paradox/badges/build.svg) ![tests: checked](././paradox/badges/tests.svg) ![paradox: warnings](././paradox/badges/docs.svg)
6
+ ![license: MIT](././paradox/badges/license.svg) ![npm: v22.0.81](././paradox/badges/npm.svg) ![runtime: bun](././paradox/badges/runtime.svg) ![typescript: strict](././paradox/badges/typescript.svg) ![eslint: checked](././paradox/badges/eslint.svg) ![prettier: checked](././paradox/badges/prettier.svg) ![build: checked](././paradox/badges/build.svg) ![tests: checked](././paradox/badges/tests.svg) ![paradox: warnings](././paradox/badges/docs.svg)
7
7
 
8
8
  Opinionated React Native and React Native Web UI kit built on @ankhorage/surface.
9
9
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ankhorage/zora",
3
3
  "type": "module",
4
- "version": "22.0.80",
4
+ "version": "22.0.81",
5
5
  "description": "Opinionated React Native and React Native Web UI kit built on @ankhorage/surface.",
6
6
  "homepage": "https://github.com/ankhorage/zora#readme",
7
7
  "bugs": {
@@ -124,7 +124,7 @@
124
124
  "version-packages": "ankhorage-changeset version"
125
125
  },
126
126
  "devDependencies": {
127
- "@ankhorage/devtools": "^2.1.2",
127
+ "@ankhorage/devtools": "^2.1.4",
128
128
  "@ankhorage/paradox": "^0.2.27",
129
129
  "@react-native-vector-icons/fontawesome": "^13.1.4",
130
130
  "@react-native-vector-icons/fontawesome5": "^13.1.4",
@@ -1,5 +1,7 @@
1
1
  import React from 'react';
2
- import type { GraphViewProps } from '../../../../../types/graph-view';
2
+
3
+ import type { GraphViewProps } from './GraphView.types-0';
4
+
3
5
  /***
4
6
  * Render a browser graph while one runtime owns Cytoscape layout, viewport, and disposal.
5
7
  * zoomMode Use `fit-relative` to make controller zoom, events and min/max limits relative
@@ -14,4 +16,4 @@ import type { GraphViewProps } from '../../../../../types/graph-view';
14
16
  * cramped layouts but cannot repair non-uniform overlaps.
15
17
  */
16
18
  export declare function GraphView(props: GraphViewProps): React.JSX.Element;
17
- //# sourceMappingURL=GraphView.d.ts.map
19
+ export type { GraphViewCallbacks, GraphViewController, GraphViewEdge, GraphViewElementEvent, GraphViewElementEventType, GraphViewFitOptions, GraphViewLayoutName, GraphViewNode, GraphViewNodeRenderContext, GraphViewPoint, GraphViewProps, GraphViewRenderedNode, GraphViewSize, GraphViewStyleRule, GraphViewViewport } from './GraphView.types-0';
@@ -0,0 +1,98 @@
1
+ import type React from 'react';
2
+ export type GraphViewLayoutName = 'breadthfirst' | 'circle' | 'concentric' | 'elk' | 'grid';
3
+ export type GraphViewElementEventType = 'press' | 'double-press' | 'select' | 'unselect' | 'pointer-enter' | 'pointer-leave';
4
+ export interface GraphViewNode {
5
+ readonly id: string;
6
+ readonly label?: string;
7
+ readonly parentId?: string;
8
+ readonly classes?: string;
9
+ readonly data?: Readonly<Record<string, unknown>>;
10
+ }
11
+ export interface GraphViewEdge {
12
+ readonly id?: string;
13
+ readonly source: string;
14
+ readonly target: string;
15
+ readonly classes?: string;
16
+ readonly data?: Readonly<Record<string, unknown>>;
17
+ }
18
+ export interface GraphViewStyleRule {
19
+ readonly selector: string;
20
+ readonly style: Readonly<Record<string, unknown>>;
21
+ }
22
+ export interface GraphViewPoint {
23
+ readonly x: number;
24
+ readonly y: number;
25
+ }
26
+ export interface GraphViewSize {
27
+ readonly width: number;
28
+ readonly height: number;
29
+ }
30
+ export interface GraphViewNodeRenderContext {
31
+ readonly hovered: boolean;
32
+ readonly node: GraphViewNode;
33
+ readonly selected: boolean;
34
+ readonly zoom: number;
35
+ }
36
+ export interface GraphViewRenderedNode {
37
+ readonly hovered: boolean;
38
+ readonly id: string;
39
+ readonly position: GraphViewPoint;
40
+ readonly selected: boolean;
41
+ readonly zoom: number;
42
+ }
43
+ export interface GraphViewViewport {
44
+ readonly zoom: number;
45
+ readonly pan: GraphViewPoint;
46
+ }
47
+ export interface GraphViewFitOptions {
48
+ /** Optimize existing layout spacing without rerunning its algorithm; whole-graph fits only. */
49
+ readonly optimizeSpacing?: boolean;
50
+ readonly nodeIds?: readonly string[];
51
+ readonly padding?: number;
52
+ }
53
+ export interface GraphViewElementEvent {
54
+ readonly id: string;
55
+ readonly type: GraphViewElementEventType;
56
+ }
57
+ export interface GraphViewController {
58
+ fit(options?: GraphViewFitOptions): void;
59
+ getViewport(): GraphViewViewport;
60
+ getZoomRange(): {
61
+ readonly min: number;
62
+ readonly max: number;
63
+ };
64
+ setPan(pan: GraphViewPoint): void;
65
+ setZoom(zoom: number): void;
66
+ zoomBy(factor: number): void;
67
+ }
68
+ export interface GraphViewProps {
69
+ readonly nodes: readonly GraphViewNode[];
70
+ readonly edges: readonly GraphViewEdge[];
71
+ readonly layout?: GraphViewLayoutName;
72
+ readonly layoutOptions?: Readonly<Record<string, unknown>>;
73
+ readonly spacingFactor?: number;
74
+ readonly styleRules?: readonly GraphViewStyleRule[];
75
+ readonly selectedNodeIds?: readonly string[];
76
+ readonly renderNode?: (context: GraphViewNodeRenderContext) => React.ReactNode;
77
+ readonly getNodeSize?: (node: GraphViewNode) => GraphViewSize | undefined;
78
+ readonly fitPadding?: number;
79
+ readonly minZoom?: number;
80
+ readonly maxZoom?: number;
81
+ readonly minReadableLabelSize?: number;
82
+ readonly maxFitLabelSize?: number;
83
+ /** Zoom values and bounds use the full-node fit as 1 when fit-relative is selected. */
84
+ readonly zoomMode?: 'absolute' | 'fit-relative';
85
+ /** Measure plain labels before layout instead of estimating width from character count. */
86
+ readonly sizeNodesToLabels?: boolean;
87
+ readonly className?: string;
88
+ readonly style?: React.CSSProperties;
89
+ readonly ariaLabel?: string;
90
+ readonly onReady?: (controller: GraphViewController) => void;
91
+ readonly onLayoutComplete?: (controller: GraphViewController) => void;
92
+ readonly onNodeEvent?: (event: GraphViewElementEvent) => void;
93
+ readonly onEdgeEvent?: (event: GraphViewElementEvent) => void;
94
+ readonly onViewportChange?: (viewport: GraphViewViewport) => void;
95
+ readonly onSpacingFactorChange?: (spacingFactor: number) => void;
96
+ }
97
+ export type GraphViewCallbacks = Pick<GraphViewProps, 'onEdgeEvent' | 'onLayoutComplete' | 'onNodeEvent' | 'onReady' | 'onViewportChange' | 'onSpacingFactorChange'>;
98
+ //# sourceMappingURL=graph-view.d.ts.map
@@ -1475,6 +1475,7 @@
1475
1475
  "files": [
1476
1476
  "components/graph-view/GraphView.js",
1477
1477
  "components/graph-view/GraphView.d.ts",
1478
+ "components/graph-view/GraphView.types-0.d.ts",
1478
1479
  "components/graph-view/index.js",
1479
1480
  "components/graph-view/index.d.ts",
1480
1481
  "chunks/Accordion-59pa0677.js",