@webmate-studio/builder 0.2.175 → 0.2.177

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webmate-studio/builder",
3
- "version": "0.2.175",
3
+ "version": "0.2.177",
4
4
  "type": "module",
5
5
  "description": "Webmate Studio Component Builder",
6
6
  "keywords": [
@@ -243,6 +243,8 @@ function generateColorUtilities(t) {
243
243
 
244
244
  for (const { cls, prop, varRef } of surfaceUtils) {
245
245
  css += `\n.${cls} { ${prop}: var(${varRef}); }`;
246
+ css += `\n.hover\\:${cls}:hover { ${prop}: var(${varRef}); }`;
247
+ css += `\n.focus\\:${cls}:focus { ${prop}: var(${varRef}); }`;
246
248
  }
247
249
 
248
250
  // Text Utilities: text-default, text-subtle, text-muted
@@ -321,6 +321,12 @@ class TemplateEvaluator {
321
321
  return value.path || `/preview/${value.pageUuid}`;
322
322
  }
323
323
 
324
+ // Document objects (from DocumentSelect) — extract URL
325
+ // Must be checked before images because documents also have `filename`
326
+ if (value.url && value.mimeType) {
327
+ return value.url;
328
+ }
329
+
324
330
  // Image objects — extract URL
325
331
  if (value.src || value.filename) {
326
332
  return value.src || value.filename || '';
@@ -349,6 +355,11 @@ class TemplateEvaluator {
349
355
  return value.path || `/preview/${value.pageUuid}`;
350
356
  }
351
357
 
358
+ // Document objects (from DocumentSelect) — extract URL
359
+ if (value.url && value.mimeType) {
360
+ return value.url;
361
+ }
362
+
352
363
  // Image objects
353
364
  if (value.src || value.filename) {
354
365
  return value.src || value.filename || '';