sass-template-common 0.0.62 → 0.0.64

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.
@@ -687,6 +687,8 @@ export declare interface GetCommentsParams {
687
687
  apiToken: string;
688
688
  }
689
689
 
690
+ export declare function getConfig(): LibraryConfig;
691
+
690
692
  export declare const getDynamicSlots: (axiosApi: AxiosInstance, config: Config, imgSizes: {
691
693
  [key: string]: any;
692
694
  }, imgSizesVideo: {
@@ -695,9 +697,9 @@ export declare const getDynamicSlots: (axiosApi: AxiosInstance, config: Config,
695
697
  [key: string]: any;
696
698
  }>;
697
699
 
698
- export declare const getEnvironmentUrl: () => any;
700
+ export declare const getEnvironmentUrl: () => string | undefined;
699
701
 
700
- export declare const getEnvironmentUrlFront: () => any;
702
+ export declare const getEnvironmentUrlFront: () => string | undefined;
701
703
 
702
704
  export declare const getImageUrl: (imageUrl: string) => Promise<string>;
703
705
 
@@ -864,6 +866,8 @@ export declare interface Info {
864
866
  };
865
867
  }
866
868
 
869
+ export declare function initLibrary(userConfig?: LibraryConfig): void;
870
+
867
871
  export declare interface ISection {
868
872
  name: string;
869
873
  slug: string;
@@ -935,6 +939,29 @@ declare type LazyLoaderProps = {
935
939
  };
936
940
  };
937
941
 
942
+ export declare type LibraryConfig = {
943
+ PUBLIC_API_HOST?: string;
944
+ PUBLIC_API_FRONT?: string;
945
+ PUBLIC_API_PATH?: string;
946
+ PUBLIC_API_PATH_VERSION?: string;
947
+ PUBLIC_X_SECURITY_TOKEN?: string;
948
+ PUBLIC_PUBLICATION_ID?: string;
949
+ PUBLIC_TAG_TYPE?: string;
950
+ PUBLIC_ENV?: string;
951
+ PUBLIC_LNG?: string;
952
+ PUBLIC_SERVICE_PREFIX?: string;
953
+ PUBLIC_IS_SUB_PUBLICATION?: string;
954
+ PUBLIC_USERNAME_OFFLINE?: string;
955
+ PUBLIC_PASSWORD_OFFLINE?: string;
956
+ PUBLIC_IS_OFFLINE?: string;
957
+ PUBLIC_OFFLINE_SITE?: string;
958
+ PUBLIC_WP_API_HOST?: string;
959
+ PUBLIC_X_SECURITY_WAF_TOKEN?: string;
960
+ DEPLOY_BUCKET?: string;
961
+ PUBLIC_ASSETS_URL?: string;
962
+ PUBLIC_BUILD_ID?: string;
963
+ };
964
+
938
965
  export declare interface Link {
939
966
  url: string;
940
967
  canonical: string;