@opencxh/domain 1.94.0 → 1.96.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.
@@ -1,5 +1,6 @@
1
1
  export interface IconDefinition {
2
- type: "emoji" | "resource" | "iconName";
2
+ type: "emoji" | "resource" | "iconName" | "svg";
3
+ /** For type "svg": raw <svg>…</svg> markup (sanitized before render). */
3
4
  content: string;
4
5
  className?: string;
5
6
  fill?: string;
@@ -1,5 +1,6 @@
1
1
  import { Activity } from '../entities/activity/types';
2
2
  import { Interaction } from '../entities/interaction/types';
3
+ import { IconDefinition } from './common';
3
4
  export interface ModalConfig {
4
5
  id: string;
5
6
  displayName: string;
@@ -113,7 +114,8 @@ export interface ExtensionConfig {
113
114
  slot: string;
114
115
  displayName: string;
115
116
  resource: string;
116
- icon?: string;
117
+ /** Lucide icon name (kebab-case string) or a full IconDefinition (e.g. custom svg). */
118
+ icon?: string | IconDefinition;
117
119
  priority?: number;
118
120
  contexts?: ExtensionContext[];
119
121
  conditions?: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opencxh/domain",
3
- "version": "1.94.0",
3
+ "version": "1.96.0",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",