@sqlrooms/cosmos 0.26.0-rc.2 → 0.26.0-rc.4

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.
@@ -65,145 +65,21 @@ import { z } from 'zod';
65
65
  */
66
66
  export declare const CosmosSliceConfig: z.ZodObject<{
67
67
  cosmos: z.ZodObject<{
68
- /**
69
- * Scale factor for point (node) sizes in the graph.
70
- * Values > 1 make nodes larger, values < 1 make them smaller.
71
- * @default 1.1
72
- */
73
68
  pointSizeScale: z.ZodNumber;
74
- /**
75
- * When true, nodes will dynamically resize based on the current zoom level.
76
- * This helps maintain visual clarity at different zoom levels.
77
- * @default true
78
- */
79
69
  scalePointsOnZoom: z.ZodBoolean;
80
- /**
81
- * Controls whether links (edges) between nodes are displayed.
82
- * @default true
83
- */
84
70
  renderLinks: z.ZodBoolean;
85
- /**
86
- * Scale factor for link (edge) width.
87
- * Values > 1 make links thicker, values < 1 make them thinner.
88
- * @default 1
89
- */
90
71
  linkWidthScale: z.ZodNumber;
91
- /**
92
- * Scale factor for the size of directional arrows on links.
93
- * Only applies when linkArrows is true.
94
- * @default 1
95
- */
96
72
  linkArrowsSizeScale: z.ZodNumber;
97
- /**
98
- * When true, displays arrows indicating link direction.
99
- * Useful for directed graphs.
100
- * @default false
101
- */
102
73
  linkArrows: z.ZodBoolean;
103
- /**
104
- * When true, links are rendered as curved Bezier paths.
105
- * When false, links are straight lines.
106
- * @default false
107
- */
108
74
  curvedLinks: z.ZodBoolean;
109
- /**
110
- * Controls the strength of the central gravitational force.
111
- * Higher values pull nodes more strongly toward the center.
112
- * @default 0.25
113
- */
114
75
  simulationGravity: z.ZodNumber;
115
- /**
116
- * Controls how strongly nodes repel each other.
117
- * Higher values create more space between unconnected nodes.
118
- * @default 1.0
119
- */
120
76
  simulationRepulsion: z.ZodNumber;
121
- /**
122
- * Controls the strength of the spring force between linked nodes.
123
- * Higher values pull connected nodes more tightly together.
124
- * @default 1.0
125
- */
126
77
  simulationLinkSpring: z.ZodNumber;
127
- /**
128
- * The natural or resting length of links between nodes.
129
- * Higher values create more spacing between connected nodes.
130
- * @default 10
131
- */
132
78
  simulationLinkDistance: z.ZodNumber;
133
- /**
134
- * Controls how quickly node movement decays.
135
- * Higher values (closer to 1) create more damped movement.
136
- * @default 0.85
137
- */
138
79
  simulationFriction: z.ZodNumber;
139
- /**
140
- * Controls how quickly the simulation stabilizes.
141
- * Lower values result in longer, smoother transitions.
142
- * @default 1000
143
- */
144
80
  simulationDecay: z.ZodNumber;
145
- }, "strip", z.ZodTypeAny, {
146
- pointSizeScale: number;
147
- renderLinks: boolean;
148
- linkWidthScale: number;
149
- curvedLinks: boolean;
150
- linkArrows: boolean;
151
- linkArrowsSizeScale: number;
152
- simulationDecay: number;
153
- simulationGravity: number;
154
- simulationRepulsion: number;
155
- simulationLinkSpring: number;
156
- simulationLinkDistance: number;
157
- simulationFriction: number;
158
- scalePointsOnZoom: boolean;
159
- }, {
160
- pointSizeScale: number;
161
- renderLinks: boolean;
162
- linkWidthScale: number;
163
- curvedLinks: boolean;
164
- linkArrows: boolean;
165
- linkArrowsSizeScale: number;
166
- simulationDecay: number;
167
- simulationGravity: number;
168
- simulationRepulsion: number;
169
- simulationLinkSpring: number;
170
- simulationLinkDistance: number;
171
- simulationFriction: number;
172
- scalePointsOnZoom: boolean;
173
- }>;
174
- }, "strip", z.ZodTypeAny, {
175
- cosmos: {
176
- pointSizeScale: number;
177
- renderLinks: boolean;
178
- linkWidthScale: number;
179
- curvedLinks: boolean;
180
- linkArrows: boolean;
181
- linkArrowsSizeScale: number;
182
- simulationDecay: number;
183
- simulationGravity: number;
184
- simulationRepulsion: number;
185
- simulationLinkSpring: number;
186
- simulationLinkDistance: number;
187
- simulationFriction: number;
188
- scalePointsOnZoom: boolean;
189
- };
190
- }, {
191
- cosmos: {
192
- pointSizeScale: number;
193
- renderLinks: boolean;
194
- linkWidthScale: number;
195
- curvedLinks: boolean;
196
- linkArrows: boolean;
197
- linkArrowsSizeScale: number;
198
- simulationDecay: number;
199
- simulationGravity: number;
200
- simulationRepulsion: number;
201
- simulationLinkSpring: number;
202
- simulationLinkDistance: number;
203
- simulationFriction: number;
204
- scalePointsOnZoom: boolean;
205
- };
206
- }>;
81
+ }, z.core.$strip>;
82
+ }, z.core.$strip>;
207
83
  export type CosmosSliceConfig = z.infer<typeof CosmosSliceConfig>;
208
84
  export declare function createDefaultCosmosConfig(): CosmosSliceConfig;
209
85
  //# sourceMappingURL=CosmosSliceConfig.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"CosmosSliceConfig.d.ts","sourceRoot":"","sources":["../src/CosmosSliceConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAuBtB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+DG;AACH,eAAO,MAAM,iBAAiB;;QAE1B;;;;WAIG;;QAGH;;;;WAIG;;QAKH;;;WAGG;;QAGH;;;;WAIG;;QAGH;;;;WAIG;;QAKH;;;;WAIG;;QAKH;;;;WAIG;;QAOH;;;;WAIG;;QAGH;;;;WAIG;;QAGH;;;;WAIG;;QAKH;;;;WAIG;;QAKH;;;;WAIG;;QAKH;;;;WAIG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAOL,CAAC;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAElE,wBAAgB,yBAAyB,IAAI,iBAAiB,CAI7D"}
1
+ {"version":3,"file":"CosmosSliceConfig.d.ts","sourceRoot":"","sources":["../src/CosmosSliceConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAuBtB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+DG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;iBAgH5B,CAAC;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAElE,wBAAgB,yBAAyB,IAAI,iBAAiB,CAI7D"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sqlrooms/cosmos",
3
- "version": "0.26.0-rc.2",
3
+ "version": "0.26.0-rc.4",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "module": "dist/index.js",
@@ -19,12 +19,12 @@
19
19
  },
20
20
  "dependencies": {
21
21
  "@cosmograph/cosmos": "2.0.0-beta.22",
22
- "@sqlrooms/room-config": "0.26.0-rc.2",
23
- "@sqlrooms/room-shell": "0.26.0-rc.2",
24
- "@sqlrooms/ui": "0.26.0-rc.2",
22
+ "@sqlrooms/room-config": "0.26.0-rc.4",
23
+ "@sqlrooms/room-shell": "0.26.0-rc.4",
24
+ "@sqlrooms/ui": "0.26.0-rc.4",
25
25
  "immer": "^10.1.3",
26
26
  "lucide-react": "^0.544.0",
27
- "zod": "^3.25.76",
27
+ "zod": "^4.1.8",
28
28
  "zustand": "^5.0.8"
29
29
  },
30
30
  "peerDependencies": {
@@ -38,5 +38,5 @@
38
38
  "typecheck": "tsc --noEmit",
39
39
  "typedoc": "typedoc"
40
40
  },
41
- "gitHead": "86e1f2915278944e6bec6b19ab8ac16dc094cbb9"
41
+ "gitHead": "9e23926085d8852178792d6d98d8091e9a5f71d5"
42
42
  }