-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: simplify AST selector to work with compiled code (#16)
- Loading branch information
Paul Salvatore
authored
Jan 24, 2024
1 parent
f46bd88
commit 1c60622
Showing
7 changed files
with
191 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "@faire/babel-plugin-formatjs-localized-bundle", | ||
"version": "2.1.5", | ||
"version": "2.2.0", | ||
"main": "dist/src/index.js", | ||
"author": "Paul Salvatore <[email protected]>", | ||
"license": "MIT", | ||
|
@@ -57,5 +57,6 @@ | |
"@semantic-release/npm", | ||
"@semantic-release/github" | ||
] | ||
} | ||
}, | ||
"dependencies": {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
"use strict"; | ||
(exports.id = 885), | ||
(exports.ids = [885, 26456]), | ||
(exports.modules = { | ||
359692: (e, t, n) => { | ||
let I = (e) => { | ||
let { strictLocalize: t } = (0, i.Pi)(), | ||
{ | ||
backgroundColor: n = o.QY.surface.subdued, | ||
content: E, | ||
contentColor: _ = o.QY.text.default, | ||
notificationDot: a, | ||
} = e, | ||
l = t({ | ||
id: "J8xC2I", | ||
defaultMessage: [{ type: 0, value: "with notification" }], | ||
}); | ||
return (0, r.jsxs)(A, { | ||
backgroundColor: n, | ||
contentColor: _, | ||
"data-test-id": e["data-test-id"], | ||
className: e.className, | ||
children: [ | ||
E > 99 ? "99+" : E, | ||
a | ||
? (0, r.jsxs)(r.Fragment, { | ||
children: [ | ||
(0, r.jsx)(R, { children: l }), | ||
(0, r.jsx)(T, { children: (0, r.jsx)(O.P, {}) }), | ||
], | ||
}) | ||
: null, | ||
], | ||
}); | ||
}; | ||
}, | ||
200077: (t, e, i) => { | ||
let f = class extends m.Component { | ||
constructor(t) { | ||
super(t), | ||
(this.updateCustomOptionReaction = (0, h.reaction)( | ||
() => this.props.value, | ||
(t) => { | ||
!this.isValueInOptions(t) && | ||
this.props.shouldUseCustomOption && | ||
((this.customOption.value = t), | ||
(this.customOption.label = this.customOptionLabel), | ||
(this.hasEditedCustomOption = !0)); | ||
} | ||
)), | ||
(this.customQuantitySelection = !1), | ||
(this.hasEditedCustomOption = !1), | ||
(this.customOption = { | ||
value: "", | ||
label: this.props.strictLocalize({ | ||
id: "dhKCUV", | ||
defaultMessage: [{ type: 0, value: "Custom Quantity" }], | ||
}), | ||
}); | ||
} | ||
}; | ||
}, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
module.exports = { | ||
J8xC2I: { | ||
type: 0, | ||
value: "mit Benachrichtigung", | ||
}, | ||
dhKCUV: { | ||
type: 0, | ||
value: "Individuelle Menge", | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters