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.js CHANGED
@@ -366,9 +366,9 @@ function deriveDefinitionSource(frames) {
366
366
  return null;
367
367
  }
368
368
  var PRIMITIVE_PATH_PATTERNS = [
369
- /\/components\/ui\//,
370
- /\/ui\/primitives\//,
371
- /\/design-system\//
369
+ /(?:^|\/)components\/ui\//,
370
+ /(?:^|\/)ui\/primitives\//,
371
+ /(?:^|\/)design-system\//
372
372
  ];
373
373
  var PRIMITIVE_NPM_PATTERNS = [
374
374
  /@base-ui\//,
@@ -413,6 +413,9 @@ function classifyComponentFiber(fiber, frames, elementSourceFile) {
413
413
  return { isComponentPrimitive: true };
414
414
  }
415
415
  }
416
+ if (!elementSourceFile && fiber._debugSource) {
417
+ return { isComponentPrimitive: true };
418
+ }
416
419
  return { isComponentPrimitive: false };
417
420
  }
418
421