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 +6 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -3
- package/dist/index.mjs.map +1 -1
- package/dist/utils.js +6 -3
- package/dist/utils.js.map +1 -1
- package/dist/utils.mjs +6 -3
- package/dist/utils.mjs.map +1 -1
- package/package.json +1 -1
package/dist/utils.js
CHANGED
|
@@ -201,9 +201,9 @@ function deriveDefinitionSource(frames) {
|
|
|
201
201
|
return null;
|
|
202
202
|
}
|
|
203
203
|
var PRIMITIVE_PATH_PATTERNS = [
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
204
|
+
/(?:^|\/)components\/ui\//,
|
|
205
|
+
/(?:^|\/)ui\/primitives\//,
|
|
206
|
+
/(?:^|\/)design-system\//
|
|
207
207
|
];
|
|
208
208
|
var PRIMITIVE_NPM_PATTERNS = [
|
|
209
209
|
/@base-ui\//,
|
|
@@ -248,6 +248,9 @@ function classifyComponentFiber(fiber, frames, elementSourceFile) {
|
|
|
248
248
|
return { isComponentPrimitive: true };
|
|
249
249
|
}
|
|
250
250
|
}
|
|
251
|
+
if (!elementSourceFile && fiber._debugSource) {
|
|
252
|
+
return { isComponentPrimitive: true };
|
|
253
|
+
}
|
|
251
254
|
return { isComponentPrimitive: false };
|
|
252
255
|
}
|
|
253
256
|
|