@xyd-js/core 0.0.0-build-ba549ac-20251203173500 → 0.0.0-build-83b15db-20251213220910
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 +1 -1
- package/dist/index.d.ts +7 -8
- package/package.json +1 -1
- package/src/types/settings.ts +8 -8
package/CHANGELOG.md
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -815,7 +815,7 @@ interface AppearanceBanner {
|
|
|
815
815
|
}
|
|
816
816
|
/**
|
|
817
817
|
* Configuration type for head elements that can be added to the HTML head.
|
|
818
|
-
* Format: [tagName, attributes]
|
|
818
|
+
* Format: [tagName, attributes, content]
|
|
819
819
|
*
|
|
820
820
|
* @example: ['script', { src: 'https://example.com/script.js', defer: true }]
|
|
821
821
|
*/
|
|
@@ -1220,9 +1220,6 @@ interface Integrations {
|
|
|
1220
1220
|
abtesting?: IntegrationABTesting;
|
|
1221
1221
|
/**
|
|
1222
1222
|
* Diagrams configuration
|
|
1223
|
-
* - `true`: Enable all diagram types with default settings
|
|
1224
|
-
* - `['mermaid', 'graphviz']`: Enable specific diagram types with defaults
|
|
1225
|
-
* - `{ mermaid: { strategy: 'img-svg' }, graphviz: true }`: Per-type configuration
|
|
1226
1223
|
*/
|
|
1227
1224
|
diagrams?: boolean | DiagramType[] | DiagramsConfig;
|
|
1228
1225
|
/**
|
|
@@ -1374,10 +1371,6 @@ type MermaidStrategy = 'img-png' | 'img-svg' | 'inline-svg' | 'pre-mermaid';
|
|
|
1374
1371
|
interface DiagramMermaidConfig {
|
|
1375
1372
|
/**
|
|
1376
1373
|
* Rendering strategy for Mermaid diagrams
|
|
1377
|
-
* - `img-png`: Render as PNG image
|
|
1378
|
-
* - `img-svg`: Render as SVG image
|
|
1379
|
-
* - `inline-svg`: Inline SVG in HTML
|
|
1380
|
-
* - `pre-mermaid`: Keep as pre-formatted Mermaid code
|
|
1381
1374
|
*/
|
|
1382
1375
|
strategy?: MermaidStrategy;
|
|
1383
1376
|
}
|
|
@@ -1402,6 +1395,12 @@ interface DiagramsConfig {
|
|
|
1402
1395
|
* - `{ engine: 'neato' }`: Enable with custom settings
|
|
1403
1396
|
*/
|
|
1404
1397
|
graphviz?: boolean | DiagramGraphvizConfig;
|
|
1398
|
+
/**
|
|
1399
|
+
* Detailed diagram config, useful for e.g setting diagram's interactive.
|
|
1400
|
+
*/
|
|
1401
|
+
[".config"]?: {
|
|
1402
|
+
interactive?: boolean;
|
|
1403
|
+
};
|
|
1405
1404
|
}
|
|
1406
1405
|
interface AppsDirectory {
|
|
1407
1406
|
/**
|
package/package.json
CHANGED
package/src/types/settings.ts
CHANGED
|
@@ -415,7 +415,7 @@ export interface AppearanceBanner {
|
|
|
415
415
|
|
|
416
416
|
/**
|
|
417
417
|
* Configuration type for head elements that can be added to the HTML head.
|
|
418
|
-
* Format: [tagName, attributes]
|
|
418
|
+
* Format: [tagName, attributes, content]
|
|
419
419
|
*
|
|
420
420
|
* @example: ['script', { src: 'https://example.com/script.js', defer: true }]
|
|
421
421
|
*/
|
|
@@ -966,9 +966,6 @@ export interface Integrations {
|
|
|
966
966
|
|
|
967
967
|
/**
|
|
968
968
|
* Diagrams configuration
|
|
969
|
-
* - `true`: Enable all diagram types with default settings
|
|
970
|
-
* - `['mermaid', 'graphviz']`: Enable specific diagram types with defaults
|
|
971
|
-
* - `{ mermaid: { strategy: 'img-svg' }, graphviz: true }`: Per-type configuration
|
|
972
969
|
*/
|
|
973
970
|
diagrams?: boolean | DiagramType[] | DiagramsConfig;
|
|
974
971
|
|
|
@@ -1156,10 +1153,6 @@ export type MermaidStrategy = 'img-png' | 'img-svg' | 'inline-svg' | 'pre-mermai
|
|
|
1156
1153
|
export interface DiagramMermaidConfig {
|
|
1157
1154
|
/**
|
|
1158
1155
|
* Rendering strategy for Mermaid diagrams
|
|
1159
|
-
* - `img-png`: Render as PNG image
|
|
1160
|
-
* - `img-svg`: Render as SVG image
|
|
1161
|
-
* - `inline-svg`: Inline SVG in HTML
|
|
1162
|
-
* - `pre-mermaid`: Keep as pre-formatted Mermaid code
|
|
1163
1156
|
*/
|
|
1164
1157
|
strategy?: MermaidStrategy;
|
|
1165
1158
|
}
|
|
@@ -1188,6 +1181,13 @@ export interface DiagramsConfig {
|
|
|
1188
1181
|
* - `{ engine: 'neato' }`: Enable with custom settings
|
|
1189
1182
|
*/
|
|
1190
1183
|
graphviz?: boolean | DiagramGraphvizConfig;
|
|
1184
|
+
|
|
1185
|
+
/**
|
|
1186
|
+
* Detailed diagram config, useful for e.g setting diagram's interactive.
|
|
1187
|
+
*/
|
|
1188
|
+
[".config"]?: {
|
|
1189
|
+
interactive?: boolean
|
|
1190
|
+
}
|
|
1191
1191
|
}
|
|
1192
1192
|
|
|
1193
1193
|
export interface AppsDirectory {
|