@vc-shell/framework 1.1.45 → 1.1.46

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 +1 @@
1
- {"version":3,"file":"vc-icon.vue.d.ts","sourceRoot":"","sources":["../../../../../ui/components/atoms/vc-icon/vc-icon.vue"],"names":[],"mappings":"AAgeA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,KAAK,CAAC;AAOrC,MAAM,MAAM,QAAQ,GAAG,aAAa,GAAG,UAAU,GAAG,WAAW,GAAG,QAAQ,GAAG,QAAQ,GAAG,KAAK,CAAC;AAC9F,MAAM,MAAM,QAAQ,GAAG,IAAI,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,IAAI,GAAG,KAAK,GAAG,MAAM,CAAC;AACtE,MAAM,MAAM,WAAW,GAAG,SAAS,GAAG,QAAQ,GAAG,SAAS,CAAC;AAE3D,MAAM,WAAW,KAAK;IACpB;;;;;;;;;OASG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAE1B;;;OAGG;IACH,IAAI,CAAC,EAAE,QAAQ,CAAC;IAEhB;;;OAGG;IACH,OAAO,CAAC,EAAE,WAAW,CAAC;IAEtB;;;OAGG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IAEvB;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;;UAxBQ,QAAQ;UANR,MAAM,GAAG,SAAS;cA6Bd,MAAM;kBAXF,OAAO;;AA6XxB,wBAOG"}
1
+ {"version":3,"file":"vc-icon.vue.d.ts","sourceRoot":"","sources":["../../../../../ui/components/atoms/vc-icon/vc-icon.vue"],"names":[],"mappings":"AAmdA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,KAAK,CAAC;AAOrC,MAAM,MAAM,QAAQ,GAAG,aAAa,GAAG,UAAU,GAAG,WAAW,GAAG,QAAQ,GAAG,QAAQ,GAAG,KAAK,CAAC;AAC9F,MAAM,MAAM,QAAQ,GAAG,IAAI,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,IAAI,GAAG,KAAK,GAAG,MAAM,CAAC;AACtE,MAAM,MAAM,WAAW,GAAG,SAAS,GAAG,QAAQ,GAAG,SAAS,CAAC;AAE3D,MAAM,WAAW,KAAK;IACpB;;;;;;;;;OASG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAE1B;;;OAGG;IACH,IAAI,CAAC,EAAE,QAAQ,CAAC;IAEhB;;;OAGG;IACH,OAAO,CAAC,EAAE,WAAW,CAAC;IAEtB;;;OAGG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IAEvB;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;;UAxBQ,QAAQ;UANR,MAAM,GAAG,SAAS;cA6Bd,MAAM;kBAXF,OAAO;;AAgXxB,wBAOG"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vc-shell/framework",
3
- "version": "1.1.45",
3
+ "version": "1.1.46",
4
4
  "type": "module",
5
5
  "main": "./dist/framework.js",
6
6
  "types": "./dist/index.d.ts",
@@ -81,9 +81,9 @@
81
81
  "devDependencies": {
82
82
  "@fullhuman/postcss-purgecss": "^7.0.2",
83
83
  "@types/dompurify": "^3.0.5",
84
- "@vc-shell/api-client-generator": "^1.1.45",
85
- "@vc-shell/config-generator": "^1.1.45",
86
- "@vc-shell/ts-config": "^1.1.45",
84
+ "@vc-shell/api-client-generator": "^1.1.46",
85
+ "@vc-shell/config-generator": "^1.1.46",
86
+ "@vc-shell/ts-config": "^1.1.46",
87
87
  "@vitejs/plugin-vue": "^5.2.3",
88
88
  "@vue/test-utils": "^2.4.5",
89
89
  "cypress-signalr-mock": "^1.5.0",
@@ -176,7 +176,7 @@ const isLucideIcon = computed(() => detectIconType.value === "lucide");
176
176
  // Check if icon is a Font Awesome Icon
177
177
  const isFontAwesomeIcon = computed(() => detectIconType.value === "fontawesome");
178
178
 
179
- // Check if the icon is a component or can be resolved as a component
179
+ // Check if icon is a component or can be resolved as a component
180
180
  const isCustomIcon = computed(() => {
181
181
  if (typeof props.icon !== "string") {
182
182
  return true; // Component instance passed directly
@@ -191,25 +191,13 @@ const isCustomIcon = computed(() => {
191
191
  return false;
192
192
  }
193
193
 
194
- // Check for Lucide icons - they could be resolved as components
194
+ // For Lucide icons, assume they can be resolved (safer approach)
195
195
  if (isLucideIcon.value) {
196
- try {
197
- const iconName =
198
- typeof normalizedIconName.value === "string" ? normalizedIconName.value : String(normalizedIconName.value);
199
- const resolved = resolveComponent(iconName);
200
- return resolved !== iconName;
201
- } catch (e) {
202
- return false;
203
- }
196
+ return true; // Assume Lucide icons are available as components
204
197
  }
205
198
 
206
- // Check if string is a component name that can be resolved
207
- try {
208
- const resolved = resolveComponent(props.icon);
209
- return resolved !== props.icon; // If resolved is different from original string, it's a component name
210
- } catch (e) {
211
- return false;
212
- }
199
+ // For other cases, assume it's not a component to avoid resolveComponent calls
200
+ return false;
213
201
  });
214
202
 
215
203
  // Get the component instance for rendering
@@ -223,15 +211,14 @@ const safeIcon = computed(() => {
223
211
  return "i";
224
212
  }
225
213
 
226
- // Try to resolve component by name (mostly for Lucide icons)
227
- try {
214
+ // For Lucide icons, return the normalized name directly
215
+ if (isLucideIcon.value) {
228
216
  const iconName =
229
217
  typeof normalizedIconName.value === "string" ? normalizedIconName.value : String(normalizedIconName.value);
230
- const resolved = resolveComponent(iconName);
231
- return resolved !== iconName ? resolved : "i"; // Return resolved component or fallback to 'i'
232
- } catch (e) {
233
- return "i";
218
+ return iconName; // Let Vue handle component resolution in template
234
219
  }
220
+
221
+ return "i";
235
222
  });
236
223
 
237
224
  // Determine which component to render