@xyd-js/core 0.0.0-build-c7bdbdb-20251129215505 → 0.0.0-build-11974d8-20251130234931
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 +48 -4
- package/package.json +1 -1
- package/src/types/settings.ts +54 -1
package/CHANGELOG.md
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -1220,10 +1220,11 @@ 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
|
|
1223
1226
|
*/
|
|
1224
|
-
diagrams?: boolean |
|
|
1225
|
-
strategy?: 'img-png' | 'img-svg' | 'inline-svg' | 'pre-mermaid';
|
|
1226
|
-
};
|
|
1227
|
+
diagrams?: boolean | DiagramType[] | DiagramsConfig;
|
|
1227
1228
|
/**
|
|
1228
1229
|
* Edit link configuration
|
|
1229
1230
|
*/
|
|
@@ -1359,6 +1360,49 @@ interface IntegrationABTestingLaunchDarkly {
|
|
|
1359
1360
|
*/
|
|
1360
1361
|
env: string;
|
|
1361
1362
|
}
|
|
1363
|
+
/**
|
|
1364
|
+
* Supported diagram types
|
|
1365
|
+
*/
|
|
1366
|
+
type DiagramType = 'mermaid' | 'graphviz';
|
|
1367
|
+
/**
|
|
1368
|
+
* Mermaid diagram rendering strategy
|
|
1369
|
+
*/
|
|
1370
|
+
type MermaidStrategy = 'img-png' | 'img-svg' | 'inline-svg' | 'pre-mermaid';
|
|
1371
|
+
/**
|
|
1372
|
+
* Mermaid diagram configuration
|
|
1373
|
+
*/
|
|
1374
|
+
interface DiagramMermaidConfig {
|
|
1375
|
+
/**
|
|
1376
|
+
* 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
|
+
*/
|
|
1382
|
+
strategy?: MermaidStrategy;
|
|
1383
|
+
}
|
|
1384
|
+
/**
|
|
1385
|
+
* Graphviz diagram configuration
|
|
1386
|
+
*/
|
|
1387
|
+
interface DiagramGraphvizConfig {
|
|
1388
|
+
}
|
|
1389
|
+
/**
|
|
1390
|
+
* Diagrams configuration object
|
|
1391
|
+
*/
|
|
1392
|
+
interface DiagramsConfig {
|
|
1393
|
+
/**
|
|
1394
|
+
* Mermaid diagram configuration
|
|
1395
|
+
* - `true`: Enable with default settings
|
|
1396
|
+
* - `{ strategy: 'img-svg' }`: Enable with custom settings
|
|
1397
|
+
*/
|
|
1398
|
+
mermaid?: boolean | DiagramMermaidConfig;
|
|
1399
|
+
/**
|
|
1400
|
+
* Graphviz diagram configuration
|
|
1401
|
+
* - `true`: Enable with default settings
|
|
1402
|
+
* - `{ engine: 'neato' }`: Enable with custom settings
|
|
1403
|
+
*/
|
|
1404
|
+
graphviz?: boolean | DiagramGraphvizConfig;
|
|
1405
|
+
}
|
|
1362
1406
|
interface AppsDirectory {
|
|
1363
1407
|
/**
|
|
1364
1408
|
* Github star app configuration.
|
|
@@ -1671,4 +1715,4 @@ interface UserPreferences {
|
|
|
1671
1715
|
themeColors?: ThemeColors;
|
|
1672
1716
|
}
|
|
1673
1717
|
|
|
1674
|
-
export type { AI, API, APIAuth, APIFile, APIFileAdvanced, APIFileMap, APIInfo, APIInfoRequest, Advanced, AnchorHeader, Anchors, Appearance, AppearanceBanner, AppearanceButtons, AppearanceContent, AppearanceFooter, AppearanceHeader, AppearanceLogo, AppearanceSearch, AppearanceSidebar, AppearanceTables, AppearanceTabs, AppsDirectory, Coder, Colors, ComponentLike, Components, EditLink, Engine, EnginePaths, EngineUniform, Font, HeadConfig, IconLibrary, Icons, IntegrationABTesting, IntegrationABTestingGrowthBook, IntegrationABTestingLaunchDarkly, IntegrationABTestingProviders, IntegrationAnalytics, IntegrationAnalyticsLiveSession, IntegrationAppGithubStar, IntegrationAppSupademo, IntegrationSearch, IntegrationSupport, IntegrationSupportChatwoot, IntegrationSupportIntercom, IntegrationSupportLivechat, Integrations, JSONComponent, LLMsTxt, LLMsTxtSectionMap, Logo, MetaTags, Metadata, MetadataMap, Navigation, NavigationItem, NavigationItemButton, NavigationItemSocial, PageLayout, PageMetaUniform, PageMetaUniformDetails, PageURL, PluginConfig, Plugins, Redirects, SEO, Script, SearchType, Segment, Settings, Sidebar, SidebarDropdown, SidebarNavigation, SidebarRoute, Social, Tabs, Theme, ThemeColors, ThemeFont, ThemePresetName, TocCard, UserPreferences, VirtualPage, WebEditor, WebEditorBanner, WebEditorFooter, WebEditorFooterLink, WebEditorFooterLinkItem, WebEditorFooterLinks, WebEditorHeader, WebEditorNavigationItem, WebEditorSubHeader, Writer, llmsTxtString };
|
|
1718
|
+
export type { AI, API, APIAuth, APIFile, APIFileAdvanced, APIFileMap, APIInfo, APIInfoRequest, Advanced, AnchorHeader, Anchors, Appearance, AppearanceBanner, AppearanceButtons, AppearanceContent, AppearanceFooter, AppearanceHeader, AppearanceLogo, AppearanceSearch, AppearanceSidebar, AppearanceTables, AppearanceTabs, AppsDirectory, Coder, Colors, ComponentLike, Components, DiagramGraphvizConfig, DiagramMermaidConfig, DiagramType, DiagramsConfig, EditLink, Engine, EnginePaths, EngineUniform, Font, HeadConfig, IconLibrary, Icons, IntegrationABTesting, IntegrationABTestingGrowthBook, IntegrationABTestingLaunchDarkly, IntegrationABTestingProviders, IntegrationAnalytics, IntegrationAnalyticsLiveSession, IntegrationAppGithubStar, IntegrationAppSupademo, IntegrationSearch, IntegrationSupport, IntegrationSupportChatwoot, IntegrationSupportIntercom, IntegrationSupportLivechat, Integrations, JSONComponent, LLMsTxt, LLMsTxtSectionMap, Logo, MermaidStrategy, MetaTags, Metadata, MetadataMap, Navigation, NavigationItem, NavigationItemButton, NavigationItemSocial, PageLayout, PageMetaUniform, PageMetaUniformDetails, PageURL, PluginConfig, Plugins, Redirects, SEO, Script, SearchType, Segment, Settings, Sidebar, SidebarDropdown, SidebarNavigation, SidebarRoute, Social, Tabs, Theme, ThemeColors, ThemeFont, ThemePresetName, TocCard, UserPreferences, VirtualPage, WebEditor, WebEditorBanner, WebEditorFooter, WebEditorFooterLink, WebEditorFooterLinkItem, WebEditorFooterLinks, WebEditorHeader, WebEditorNavigationItem, WebEditorSubHeader, Writer, llmsTxtString };
|
package/package.json
CHANGED
package/src/types/settings.ts
CHANGED
|
@@ -966,8 +966,11 @@ 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
|
|
969
972
|
*/
|
|
970
|
-
diagrams?: boolean |
|
|
973
|
+
diagrams?: boolean | DiagramType[] | DiagramsConfig;
|
|
971
974
|
|
|
972
975
|
/**
|
|
973
976
|
* Edit link configuration
|
|
@@ -1137,6 +1140,56 @@ export interface IntegrationABTestingLaunchDarkly {
|
|
|
1137
1140
|
env: string;
|
|
1138
1141
|
}
|
|
1139
1142
|
|
|
1143
|
+
/**
|
|
1144
|
+
* Supported diagram types
|
|
1145
|
+
*/
|
|
1146
|
+
export type DiagramType = 'mermaid' | 'graphviz';
|
|
1147
|
+
|
|
1148
|
+
/**
|
|
1149
|
+
* Mermaid diagram rendering strategy
|
|
1150
|
+
*/
|
|
1151
|
+
export type MermaidStrategy = 'img-png' | 'img-svg' | 'inline-svg' | 'pre-mermaid';
|
|
1152
|
+
|
|
1153
|
+
/**
|
|
1154
|
+
* Mermaid diagram configuration
|
|
1155
|
+
*/
|
|
1156
|
+
export interface DiagramMermaidConfig {
|
|
1157
|
+
/**
|
|
1158
|
+
* 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
|
+
*/
|
|
1164
|
+
strategy?: MermaidStrategy;
|
|
1165
|
+
}
|
|
1166
|
+
|
|
1167
|
+
/**
|
|
1168
|
+
* Graphviz diagram configuration
|
|
1169
|
+
*/
|
|
1170
|
+
export interface DiagramGraphvizConfig {
|
|
1171
|
+
|
|
1172
|
+
}
|
|
1173
|
+
|
|
1174
|
+
/**
|
|
1175
|
+
* Diagrams configuration object
|
|
1176
|
+
*/
|
|
1177
|
+
export interface DiagramsConfig {
|
|
1178
|
+
/**
|
|
1179
|
+
* Mermaid diagram configuration
|
|
1180
|
+
* - `true`: Enable with default settings
|
|
1181
|
+
* - `{ strategy: 'img-svg' }`: Enable with custom settings
|
|
1182
|
+
*/
|
|
1183
|
+
mermaid?: boolean | DiagramMermaidConfig;
|
|
1184
|
+
|
|
1185
|
+
/**
|
|
1186
|
+
* Graphviz diagram configuration
|
|
1187
|
+
* - `true`: Enable with default settings
|
|
1188
|
+
* - `{ engine: 'neato' }`: Enable with custom settings
|
|
1189
|
+
*/
|
|
1190
|
+
graphviz?: boolean | DiagramGraphvizConfig;
|
|
1191
|
+
}
|
|
1192
|
+
|
|
1140
1193
|
export interface AppsDirectory {
|
|
1141
1194
|
/**
|
|
1142
1195
|
* Github star app configuration.
|