@compiled/parcel-transformer 0.14.1 → 0.14.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@compiled/parcel-transformer",
3
- "version": "0.14.1",
3
+ "version": "0.14.3",
4
4
  "description": "A familiar and performant compile time CSS-in-JS library for React.",
5
5
  "homepage": "https://compiledcssinjs.com/docs/pkg-parcel-transformer",
6
6
  "bugs": "https://github.com/atlassian-labs/compiled/issues/new?assignees=&labels=bug&template=bug_report.md",
@@ -22,9 +22,9 @@
22
22
  "dependencies": {
23
23
  "@babel/core": "^7.21.8",
24
24
  "@babel/generator": "^7.21.5",
25
- "@compiled/babel-plugin": "^0.25.0",
26
- "@compiled/babel-plugin-strip-runtime": "^0.25.0",
27
- "@compiled/utils": "^0.9.0",
25
+ "@compiled/babel-plugin": "^0.26.0",
26
+ "@compiled/babel-plugin-strip-runtime": "^0.26.2",
27
+ "@compiled/utils": "^0.9.1",
28
28
  "@parcel/plugin": "^2.8.3",
29
29
  "@parcel/source-map": "^2.1.1",
30
30
  "enhanced-resolve": "^5.15.0"
@@ -204,7 +204,8 @@ it('transforms assets with compiled and extraction babel plugins', async () => {
204
204
  expect(extractedComponent).toMatchInlineSnapshot(`
205
205
  "var Button = (0, _react.forwardRef)(function(_ref, __cmplr) {
206
206
  var _ref$as = _ref.as, C = _ref$as === void 0 ? "button" : _ref$as, __cmpls = _ref.style, __cmplp = _objectWithoutProperties(_ref, _excluded);
207
- return /*#__PURE__*/ (0, _jsxRuntime.jsx)(C, _objectSpread(_objectSpread({}, __cmplp), {}, {
207
+ if (__cmplp.innerRef) throw new Error("Please use 'ref' instead of 'innerRef'.");
208
+ return (0, _jsxRuntime.jsx)(C, _objectSpread(_objectSpread({}, __cmplp), {}, {
208
209
  style: __cmpls,
209
210
  ref: __cmplr,
210
211
  className: (0, _runtime.ax)([
@@ -216,7 +217,7 @@ it('transforms assets with compiled and extraction babel plugins', async () => {
216
217
  Button.displayName = "Button";
217
218
  function BabelComponent(_ref2) {
218
219
  var children = _ref2.children;
219
- return /*#__PURE__*/ (0, _jsxRuntime.jsx)("div", {
220
+ return (0, _jsxRuntime.jsx)("div", {
220
221
  className: (0, _runtime.ax)([
221
222
  "_19pk1ul9"
222
223
  ]),