2021-04-20 17:17:19 +00:00
|
|
|
declare global {
|
|
|
|
interface Window {
|
2022-12-12 13:56:28 +00:00
|
|
|
pagenow: string;
|
|
|
|
adminpage: string;
|
2021-04-20 17:17:19 +00:00
|
|
|
wcSettings: {
|
|
|
|
preloadOptions: Record< string, unknown >;
|
2021-06-09 19:38:22 +00:00
|
|
|
adminUrl: string;
|
2021-04-20 17:17:19 +00:00
|
|
|
};
|
2022-04-19 08:31:15 +00:00
|
|
|
wcAdminFeatures: {
|
|
|
|
'activity-panels': boolean;
|
|
|
|
analytics: boolean;
|
2023-04-06 17:13:48 +00:00
|
|
|
'product-block-editor': boolean;
|
2022-04-19 08:31:15 +00:00
|
|
|
coupons: boolean;
|
|
|
|
'customer-effort-score-tracks': boolean;
|
|
|
|
homescreen: boolean;
|
|
|
|
marketing: boolean;
|
|
|
|
'minified-js': boolean;
|
|
|
|
'mobile-app-banner': boolean;
|
|
|
|
navigation: boolean;
|
2022-08-03 17:42:22 +00:00
|
|
|
'new-product-management-experience': boolean;
|
2022-04-19 08:31:15 +00:00
|
|
|
onboarding: boolean;
|
|
|
|
'onboarding-tasks': boolean;
|
|
|
|
'payment-gateway-suggestions': boolean;
|
2023-01-06 02:30:23 +00:00
|
|
|
'product-variation-management': boolean;
|
2022-04-19 08:31:15 +00:00
|
|
|
'remote-inbox-notifications': boolean;
|
|
|
|
'remote-free-extensions': boolean;
|
|
|
|
settings: boolean;
|
|
|
|
'shipping-label-banner': boolean;
|
|
|
|
subscriptions: boolean;
|
|
|
|
'store-alerts': boolean;
|
|
|
|
'transient-notices': boolean;
|
|
|
|
'wc-pay-promotion': boolean;
|
|
|
|
'wc-pay-welcome-page': boolean;
|
2022-09-15 03:58:47 +00:00
|
|
|
'woo-mobile-welcome': boolean;
|
2022-06-23 01:54:38 +00:00
|
|
|
'shipping-smart-defaults': boolean;
|
2022-07-05 05:02:52 +00:00
|
|
|
'shipping-setting-tour': boolean;
|
2022-04-19 08:31:15 +00:00
|
|
|
};
|
2022-12-12 13:56:28 +00:00
|
|
|
wp: {
|
|
|
|
autosave?: {
|
|
|
|
server: {
|
|
|
|
postChanged: () => boolean;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
tinymce?: {
|
|
|
|
get: ( name: string ) => {
|
|
|
|
isHidden: () => boolean;
|
|
|
|
isDirty: () => boolean;
|
|
|
|
};
|
|
|
|
};
|
2021-04-20 17:17:19 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/*~ If your module exports nothing, you'll need this line. Otherwise, delete it */
|
|
|
|
export {};
|