made-refine 0.2.15 → 0.2.17

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/dist/index.mjs CHANGED
@@ -286,9 +286,9 @@ function deriveDefinitionSource(frames) {
286
286
  return null;
287
287
  }
288
288
  var PRIMITIVE_PATH_PATTERNS = [
289
- /\/components\/ui\//,
290
- /\/ui\/primitives\//,
291
- /\/design-system\//
289
+ /(?:^|\/)components\/ui\//,
290
+ /(?:^|\/)ui\/primitives\//,
291
+ /(?:^|\/)design-system\//
292
292
  ];
293
293
  var PRIMITIVE_NPM_PATTERNS = [
294
294
  /@base-ui\//,
@@ -333,6 +333,9 @@ function classifyComponentFiber(fiber, frames, elementSourceFile) {
333
333
  return { isComponentPrimitive: true };
334
334
  }
335
335
  }
336
+ if (!elementSourceFile && fiber._debugSource) {
337
+ return { isComponentPrimitive: true };
338
+ }
336
339
  return { isComponentPrimitive: false };
337
340
  }
338
341