@xyd-js/plugins 0.0.0-build-ba549ac-20251203173500 → 0.0.0-build-2acf05c-20251207022018

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,10 +1,10 @@
1
1
  # @xyd-js/plugins
2
2
 
3
- ## 0.0.0-build-ba549ac-20251203173500
3
+ ## 0.0.0-build-2acf05c-20251207022018
4
4
 
5
5
  ### Patch Changes
6
6
 
7
7
  - update all packages
8
8
  - Updated dependencies
9
- - @xyd-js/framework@0.0.0-build-ba549ac-20251203173500
10
- - @xyd-js/uniform@0.0.0-build-ba549ac-20251203173500
9
+ - @xyd-js/framework@0.0.0-build-2acf05c-20251207022018
10
+ - @xyd-js/uniform@0.0.0-build-2acf05c-20251207022018
package/dist/index.d.ts CHANGED
@@ -361,7 +361,7 @@ interface AppearanceBanner {
361
361
  }
362
362
  /**
363
363
  * Configuration type for head elements that can be added to the HTML head.
364
- * Format: [tagName, attributes]
364
+ * Format: [tagName, attributes, content]
365
365
  *
366
366
  * @example: ['script', { src: 'https://example.com/script.js', defer: true }]
367
367
  */
@@ -764,9 +764,6 @@ interface Integrations {
764
764
  abtesting?: IntegrationABTesting;
765
765
  /**
766
766
  * Diagrams configuration
767
- * - `true`: Enable all diagram types with default settings
768
- * - `['mermaid', 'graphviz']`: Enable specific diagram types with defaults
769
- * - `{ mermaid: { strategy: 'img-svg' }, graphviz: true }`: Per-type configuration
770
767
  */
771
768
  diagrams?: boolean | DiagramType[] | DiagramsConfig;
772
769
  /**
@@ -918,10 +915,6 @@ type MermaidStrategy = 'img-png' | 'img-svg' | 'inline-svg' | 'pre-mermaid';
918
915
  interface DiagramMermaidConfig {
919
916
  /**
920
917
  * Rendering strategy for Mermaid diagrams
921
- * - `img-png`: Render as PNG image
922
- * - `img-svg`: Render as SVG image
923
- * - `inline-svg`: Inline SVG in HTML
924
- * - `pre-mermaid`: Keep as pre-formatted Mermaid code
925
918
  */
926
919
  strategy?: MermaidStrategy;
927
920
  }
@@ -946,6 +939,12 @@ interface DiagramsConfig {
946
939
  * - `{ engine: 'neato' }`: Enable with custom settings
947
940
  */
948
941
  graphviz?: boolean | DiagramGraphvizConfig;
942
+ /**
943
+ * Detailed diagram config, useful for e.g setting diagram's interactive.
944
+ */
945
+ [".config"]?: {
946
+ interactive?: boolean;
947
+ };
949
948
  }
950
949
  interface AppsDirectory {
951
950
  /**
@@ -1239,6 +1238,10 @@ interface PluginConfig {
1239
1238
  uniform?: UniformPlugin<any>[];
1240
1239
  components?: PluginComponents;
1241
1240
  head?: HeadConfig[];
1241
+ markdown?: {
1242
+ remark: any[];
1243
+ rehype: any[];
1244
+ };
1242
1245
  }
1243
1246
  type Plugin = (settings: Readonly<Settings>) => PluginConfig;
1244
1247
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyd-js/plugins",
3
- "version": "0.0.0-build-ba549ac-20251203173500",
3
+ "version": "0.0.0-build-2acf05c-20251207022018",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "type": "module",
@@ -11,10 +11,10 @@
11
11
  }
12
12
  },
13
13
  "dependencies": {
14
- "@xyd-js/uniform": "0.0.0-build-ba549ac-20251203173500"
14
+ "@xyd-js/uniform": "0.0.0-build-2acf05c-20251207022018"
15
15
  },
16
16
  "peerDependencies": {
17
- "@xyd-js/framework": "0.0.0-build-ba549ac-20251203173500"
17
+ "@xyd-js/framework": "0.0.0-build-2acf05c-20251207022018"
18
18
  },
19
19
  "devDependencies": {
20
20
  "@vitest/coverage-v8": "^1.3.1",
package/src/index.ts CHANGED
@@ -50,6 +50,10 @@ export interface PluginConfig {
50
50
  uniform?: Uniform<any>[] // TODO: fix any
51
51
  components?: PluginComponents
52
52
  head?: HeadConfig[]
53
+ markdown?: {
54
+ remark: any[],
55
+ rehype: any[],
56
+ }
53
57
  }
54
58
 
55
59
  export type Plugin = (settings: Readonly<Settings>) => PluginConfig