Files
formipay/node_modules/@wordpress/components/build/focal-point-picker/focal-point.native.js
dwindown e8fbfb14c1 fix: prevent asset conflicts between React and Grid.js versions
Add coexistence checks to all enqueue methods to prevent loading
both React and Grid.js assets simultaneously.

Changes:
- ReactAdmin.php: Only enqueue React assets when ?react=1
- Init.php: Skip Grid.js when React active on admin pages
- Form.php, Coupon.php, Access.php: Restore classic assets when ?react=0
- Customer.php, Product.php, License.php: Add coexistence checks

Now the toggle between Classic and React versions works correctly.

Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-18 17:02:14 +07:00

38 lines
1.1 KiB
JavaScript

"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = FocalPoint;
var _react = require("react");
var _primitives = require("@wordpress/primitives");
var _style = _interopRequireDefault(require("./style.scss"));
/**
* WordPress dependencies
*/
/**
* Internal dependencies
*/
function FocalPoint({
height,
style,
width
}) {
return (0, _react.createElement)(_primitives.SVG, {
height: height,
style: style,
viewBox: "0 0 30 30",
width: width,
xmlns: "http://www.w3.org/2000/svg"
}, (0, _react.createElement)(_primitives.Path, {
style: _style.default.focalPointIconPathOutline,
d: "M15 1C7.3 1 1 7.3 1 15s6.3 14 14 14 14-6.3 14-14S22.7 1 15 1zm0 22c-4.4 0-8-3.6-8-8s3.6-8 8-8 8 3.6 8 8-3.6 8-8 8z"
}), (0, _react.createElement)(_primitives.Path, {
style: _style.default.focalPointIconPathFill,
d: "M15 3C8.4 3 3 8.4 3 15s5.4 12 12 12 12-5.4 12-12S21.6 3 15 3zm0 22C9.5 25 5 20.5 5 15S9.5 5 15 5s10 4.5 10 10-4.5 10-10 10z"
}));
}
//# sourceMappingURL=focal-point.native.js.map