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/utils.mjs CHANGED
@@ -106,9 +106,9 @@ function deriveDefinitionSource(frames) {
106
106
  return null;
107
107
  }
108
108
  var PRIMITIVE_PATH_PATTERNS = [
109
- /\/components\/ui\//,
110
- /\/ui\/primitives\//,
111
- /\/design-system\//
109
+ /(?:^|\/)components\/ui\//,
110
+ /(?:^|\/)ui\/primitives\//,
111
+ /(?:^|\/)design-system\//
112
112
  ];
113
113
  var PRIMITIVE_NPM_PATTERNS = [
114
114
  /@base-ui\//,
@@ -153,6 +153,9 @@ function classifyComponentFiber(fiber, frames, elementSourceFile) {
153
153
  return { isComponentPrimitive: true };
154
154
  }
155
155
  }
156
+ if (!elementSourceFile && fiber._debugSource) {
157
+ return { isComponentPrimitive: true };
158
+ }
156
159
  return { isComponentPrimitive: false };
157
160
  }
158
161