@nice2dev/ui-math 1.2.1 → 1.3.0
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.
- package/dist/index.cjs +5 -5
- package/dist/index.d.ts +7 -1
- package/dist/index.mjs +1045 -699
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -588,7 +588,7 @@ export declare interface NiceGraphPlotterProps {
|
|
|
588
588
|
style?: default_2.CSSProperties;
|
|
589
589
|
}
|
|
590
590
|
|
|
591
|
-
export declare function NiceI18nProvider({ locale, overrides, children }: NiceI18nProviderProps): default_2.FunctionComponentElement<default_2.ProviderProps<I18nContextValue>>;
|
|
591
|
+
export declare function NiceI18nProvider({ locale, overrides, children }: NiceI18nProviderProps): default_2.FunctionComponentElement<default_2.ProviderProps<I18nContextValue | null>>;
|
|
592
592
|
|
|
593
593
|
export declare interface NiceI18nProviderProps {
|
|
594
594
|
/** Language code, e.g. `'pl'`, `'cs'`. Falls back to English when unknown. */
|
|
@@ -703,6 +703,12 @@ export declare function useGraph(): GraphContextValue;
|
|
|
703
703
|
|
|
704
704
|
export declare function useMathEditor(): MathEditorContextValue;
|
|
705
705
|
|
|
706
|
+
/**
|
|
707
|
+
* This package's translator: under its `NiceI18nProvider`, that provider's language and overrides;
|
|
708
|
+
* without one (since 1.2.2), the language of the app's global `NiceI18nProvider` — English when
|
|
709
|
+
* this dictionary does not have it. Before 1.2.2 the controls stayed English without the
|
|
710
|
+
* package's own provider, whatever language the app used.
|
|
711
|
+
*/
|
|
706
712
|
export declare function useNiceTranslation(): {
|
|
707
713
|
t: NiceTranslateFn;
|
|
708
714
|
locale: string;
|