
* [Feature Flags] Abstraction over flags provider (#2928) * Remove useFlag hook * [Feature Flags] GraphQL build multiple schemas (#2937) * Build script * Refactor build types script * Remove old codegen.yml * Clean feature flags in script * Refactor schema path * Restore useAuthProvider * Update configuration file * encapsulate details for feature flags provider * Add proper env to flagsmith provider * Remove flagsmith mocks * Vite config define global variables * Render flagmisth provider only when is used * Keep name service agnostic * Test with mocked flagsmith * Use global FLAGS varaible for env flags * Fix type issue with FLAGS * Fix build issue * Remove duplicate translations * Fix typo * Prepare for QA tests * Remove test feature flag
24 lines
615 B
TypeScript
24 lines
615 B
TypeScript
declare module "*.jpg";
|
|
declare module "*.png";
|
|
declare module "*.svg" {
|
|
const content: any;
|
|
export default content;
|
|
}
|
|
|
|
declare const FLAGS_SERVICE_ENABLED: boolean;
|
|
declare const FLAGSMITH_ID: string;
|
|
declare const FLAGS: Record<string, string>;
|
|
|
|
declare interface Window {
|
|
PasswordCredential: PasswordCredential;
|
|
__SALEOR_CONFIG__: {
|
|
API_URL: string;
|
|
APP_MOUNT_URI: string;
|
|
MARKETPLACE_URL: string;
|
|
SALEOR_APPS_PAGE_PATH: string;
|
|
SALEOR_APPS_JSON_PATH: string;
|
|
APP_TEMPLATE_GALLERY_PATH: string;
|
|
APPS_MARKETPLACE_API_URI?: string;
|
|
APPS_TUNNEL_URL_KEYWORDS?: string;
|
|
};
|
|
}
|