Fix components filter
This commit is contained in:
parent
4e27722b54
commit
4da79abb21
@ -55,7 +55,7 @@ export const MaskedLink = waitForComponent<t.MaskedLink>("MaskedLink", m => m?.t
|
|||||||
export const Timestamp = waitForComponent<t.Timestamp>("Timestamp", filters.byCode(".Messages.MESSAGE_EDITED_TIMESTAMP_A11Y_LABEL.format"));
|
export const Timestamp = waitForComponent<t.Timestamp>("Timestamp", filters.byCode(".Messages.MESSAGE_EDITED_TIMESTAMP_A11Y_LABEL.format"));
|
||||||
export const Flex = waitForComponent<t.Flex>("Flex", ["Justify", "Align", "Wrap"]);
|
export const Flex = waitForComponent<t.Flex>("Flex", ["Justify", "Align", "Wrap"]);
|
||||||
|
|
||||||
waitFor("FormItem", m => {
|
waitFor(["FormItem", "Button"], m => {
|
||||||
({ useToken, Card, Button, FormSwitch: Switch, Tooltip, TextInput, TextArea, Text, Select, SearchableSelect, Slider, ButtonLooks, TabBar, Popout, Dialog, Paginator, ScrollerThin, Clickable, Avatar } = m);
|
({ useToken, Card, Button, FormSwitch: Switch, Tooltip, TextInput, TextArea, Text, Select, SearchableSelect, Slider, ButtonLooks, TabBar, Popout, Dialog, Paginator, ScrollerThin, Clickable, Avatar } = m);
|
||||||
Forms = m;
|
Forms = m;
|
||||||
});
|
});
|
||||||
|
@ -90,6 +90,11 @@ function patchPush(webpackGlobal: any) {
|
|||||||
logger.error("Error in patched chunk", err);
|
logger.error("Error in patched chunk", err);
|
||||||
return void originalMod(module, exports, require);
|
return void originalMod(module, exports, require);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
exports = module.exports;
|
||||||
|
|
||||||
|
if (!exports) return;
|
||||||
|
|
||||||
// There are (at the time of writing) 11 modules exporting the window
|
// There are (at the time of writing) 11 modules exporting the window
|
||||||
// Make these non enumerable to improve webpack search performance
|
// Make these non enumerable to improve webpack search performance
|
||||||
if (exports === window) {
|
if (exports === window) {
|
||||||
@ -226,11 +231,9 @@ function patchPush(webpackGlobal: any) {
|
|||||||
Object.defineProperty(webpackGlobal, "push", {
|
Object.defineProperty(webpackGlobal, "push", {
|
||||||
get: () => handlePush,
|
get: () => handlePush,
|
||||||
set(v) {
|
set(v) {
|
||||||
Object.defineProperty(this, "push", {
|
delete webpackGlobal.push;
|
||||||
value: v,
|
webpackGlobal.push = v;
|
||||||
configurable: true
|
patchPush(webpackGlobal);
|
||||||
});
|
|
||||||
patchPush(this);
|
|
||||||
},
|
},
|
||||||
configurable: true
|
configurable: true
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user