elcrm 0.9.9 → 0.9.11

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.
@@ -1,6 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  type Props = {
3
3
  children?: any;
4
+ lang?: string;
4
5
  };
5
- declare const Init: ({ children }: Props) => import('react').ReactNode;
6
+ declare const Init: ({ children, lang }: Props) => import('react').ReactNode;
6
7
  export default Init;
@@ -1,9 +1,11 @@
1
+ import { default as React } from 'react';
1
2
  export declare const addDictionary: (j: any) => void;
2
- export declare function useData(lang?: string): any;
3
+ export declare function useData(lang?: string): string[];
3
4
  export type TLangProvider = {
4
5
  lang?: string;
5
6
  children: any;
6
7
  };
8
+ export declare const LanguageContext: React.Context<any>;
7
9
  export declare const Provider: ({ lang, children }: TLangProvider) => import("react/jsx-runtime").JSX.Element;
8
- export declare const getDictionary: (lang?: string) => any;
9
- export declare const setDictionary: (lang?: string) => void;
10
+ export declare const setDictionary: (lang: string) => void;
11
+ export declare const getDictionary: () => any;
@@ -1,9 +1,6 @@
1
- import { useData } from './Lang';
2
1
  declare const _default: {
3
- useData: typeof useData;
4
2
  addDictionary: (j: any) => void;
5
- Provider: ({ lang, children }: import('./Lang').TLangProvider) => import("react/jsx-runtime").JSX.Element;
6
- getDictionary: (lang?: string | undefined) => any;
7
- setDictionary: (lang?: string | undefined) => void;
3
+ getDictionary: () => any;
4
+ setDictionary: (lang: string) => void;
8
5
  };
9
6
  export default _default;