spytial-core 6.4.1 → 6.5.0

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.
@@ -13,6 +13,8 @@ export interface ErrorMessageContainerProps {
13
13
  * conflicting constraint highlights the referenced nodes in that diagram.
14
14
  */
15
15
  graphElementId?: string;
16
+ /** Whether error details start hidden. Defaults to false (expanded). */
17
+ defaultCollapsed?: boolean;
16
18
  }
17
19
  /**
18
20
  * Container component that manages error message display
@@ -14,6 +14,8 @@ export interface ErrorMessageModalProps {
14
14
  * (via the graph's public `highlightNodes` / `clearNodeHighlights` API).
15
15
  */
16
16
  graphElementId?: string;
17
+ /** Whether error details start hidden. Defaults to false (expanded). */
18
+ defaultCollapsed?: boolean;
17
19
  }
18
20
  /**
19
21
  * Modal component for displaying error messages in a structured format
@@ -215,20 +215,25 @@ export declare function getCurrentCNDSpecFromReact(): string | undefined;
215
215
  * Mount ErrorMessageModal component into specified container
216
216
  *
217
217
  * @param containerId - DOM element ID to mount into (default: 'error-messages')
218
+ * @param graphElementId - Graph element ID for highlighting (default: 'graph-container')
219
+ * @param defaultCollapsed - Whether details start hidden (default: false)
218
220
  * @returns Boolean indicating success
219
221
  *
220
222
  * @example
221
223
  * ```javascript
222
224
  * // Mount into default container
223
- * CnDCore.mountErrorModal();
225
+ * mountErrorMessageModal();
224
226
  *
225
227
  * // Mount into custom container
226
- * CnDCore.mountErrorModal('my-error-container');
228
+ * mountErrorMessageModal('my-error-container');
229
+ *
230
+ * // Start with details collapsed
231
+ * mountErrorMessageModal('my-error-container', 'graph-container', true);
227
232
  * ```
228
233
  *
229
234
  * @public
230
235
  */
231
- export declare function mountErrorMessageModal(containerId?: string, graphElementId?: string): boolean;
236
+ export declare function mountErrorMessageModal(containerId?: string, graphElementId?: string, defaultCollapsed?: boolean): boolean;
232
237
  /**
233
238
  * Mount the EvaluatorRepl component into specified container
234
239
  * @param containerId - DOM element ID to mount into
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "language": "spytial-layout-spec",
3
3
  "languageVersion": "2026-09-18",
4
- "spytialCoreVersion": "6.4.1",
4
+ "spytialCoreVersion": "6.5.0",
5
5
  "versioning": {
6
6
  "note": "`languageVersion` is the date the language last changed (YYYY-MM-DD). If it has not moved since the manifest you generated against, nothing you emit needs revisiting. `spytialCoreVersion` records which release produced this file.",
7
7
  "deprecations": "A deprecated form keeps parsing and keeps its meaning while it is listed in `deprecations`, and each entry names its replacement and the rewrite to apply. Removal is signalled by `languageVersion` moving, not by the `spytialCoreVersion` major: a removed form leaves this manifest and becomes a parse error, so check `languageVersion` before assuming a spec you generated earlier still parses."
@@ -2,9 +2,9 @@
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "urn:spytial:layout-spec-schema:2026-09-18",
4
4
  "title": "Spytial layout specification",
5
- "description": "A Spytial spec: constraints (structural layout) and directives (presentation). Spec language 2026-09-18, from spytial-core 6.4.1. This schema is stricter than the engine parser, which silently ignores anything it does not recognize — validating here is how a misspelled key or an out-of-range value gets caught at all. Fetch it from https://cdn.jsdelivr.net/gh/sidprasad/spytial-core@<tag>/docs/spytial-spec.schema.json; pin a tag, since the @main path is overwritten each release.",
5
+ "description": "A Spytial spec: constraints (structural layout) and directives (presentation). Spec language 2026-09-18, from spytial-core 6.5.0. This schema is stricter than the engine parser, which silently ignores anything it does not recognize — validating here is how a misspelled key or an out-of-range value gets caught at all. Fetch it from https://cdn.jsdelivr.net/gh/sidprasad/spytial-core@<tag>/docs/spytial-spec.schema.json; pin a tag, since the @main path is overwritten each release.",
6
6
  "x-spytial-language-version": "2026-09-18",
7
- "x-spytial-core-version": "6.4.1",
7
+ "x-spytial-core-version": "6.5.0",
8
8
  "type": "object",
9
9
  "properties": {
10
10
  "constraints": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "spytial-core",
3
- "version": "6.4.1",
3
+ "version": "6.5.0",
4
4
  "description": "A fully client-side application for SpyTial.",
5
5
  "main": "./dist/browser/spytial-core-complete.global.js",
6
6
  "types": "./dist/types/index.d.ts",