@progress/kendo-react-intl 7.2.4-develop.3 → 7.3.0-develop.1

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.
Files changed (45) hide show
  1. package/Intl/IntlProvider.js +8 -0
  2. package/Intl/IntlProvider.mjs +33 -0
  3. package/Intl/IntlService.js +8 -0
  4. package/Intl/IntlService.mjs +140 -0
  5. package/Localization/LocalizationProvider.js +8 -0
  6. package/Localization/LocalizationProvider.mjs +33 -0
  7. package/Localization/LocalizationService.js +8 -0
  8. package/Localization/LocalizationService.mjs +31 -0
  9. package/Localization/loadMessages.js +8 -0
  10. package/Localization/loadMessages.mjs +28 -0
  11. package/Localization/messages.js +8 -0
  12. package/Localization/messages.mjs +12 -0
  13. package/dist/cdn/js/kendo-react-intl.js +8 -5
  14. package/globalization/GlobalizationContext.js +8 -0
  15. package/globalization/GlobalizationContext.mjs +18 -0
  16. package/hooks/useInternationalization.js +8 -0
  17. package/hooks/useInternationalization.mjs +14 -0
  18. package/hooks/useLocalization.js +8 -0
  19. package/hooks/useLocalization.mjs +14 -0
  20. package/index.d.mts +277 -5
  21. package/index.d.ts +277 -11
  22. package/index.js +8 -5
  23. package/index.mjs +32 -250
  24. package/intlUtils.js +8 -0
  25. package/intlUtils.mjs +35 -0
  26. package/package-metadata.js +8 -0
  27. package/package-metadata.mjs +19 -0
  28. package/package.json +2 -2
  29. package/Intl/IntlProvider.d.ts +0 -27
  30. package/Intl/IntlProviderProps.d.ts +0 -17
  31. package/Intl/IntlService.d.ts +0 -106
  32. package/Intl/main.d.ts +0 -8
  33. package/Localization/LocalizationProvider.d.ts +0 -27
  34. package/Localization/LocalizationProviderProps.d.ts +0 -17
  35. package/Localization/LocalizationService.d.ts +0 -20
  36. package/Localization/loadMessages.d.ts +0 -11
  37. package/Localization/main.d.ts +0 -9
  38. package/Localization/messages.d.ts +0 -8
  39. package/coreExports.d.ts +0 -6
  40. package/globalization/GlobalizationContext.d.ts +0 -14
  41. package/hooks/index.d.ts +0 -6
  42. package/hooks/useInternationalization.d.ts +0 -9
  43. package/hooks/useLocalization.d.ts +0 -9
  44. package/intlUtils.d.ts +0 -31
  45. package/package-metadata.d.ts +0 -9
package/hooks/index.d.ts DELETED
@@ -1,6 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- export * from './useInternationalization';
6
- export * from './useLocalization';
@@ -1,9 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { IntlService } from '../Intl/main';
6
- /**
7
- * A custom [React Hook](https://reactjs.org/docs/hooks-intro.html) providing access to an [IntlService]({% slug api_intl_intlservice %}).
8
- */
9
- export declare const useInternationalization: () => IntlService;
@@ -1,9 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { LocalizationService } from '../Localization/main';
6
- /**
7
- * A custom [React Hook](https://reactjs.org/docs/hooks-intro.html) providing access to an [LocalizationService]({% slug api_intl_localizationservice %}).
8
- */
9
- export declare const useLocalization: () => LocalizationService;
package/intlUtils.d.ts DELETED
@@ -1,31 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import * as React from 'react';
6
- import { IntlService } from './Intl/IntlService';
7
- import { LocalizationService } from './Localization/LocalizationService';
8
- /**
9
- * Provides an internationalization service. When the passed component is a direct or indirect child of `IntlProvider`, the returned service uses the locale of the provider. Otherwise, uses `en` as a default locale. To handle locale changes, call the method on each `render`.
10
- *
11
- * @param componentClass - The React component class that will use the internationalization service.
12
- */
13
- export declare function provideIntlService(component: React.Component): IntlService;
14
- /**
15
- * Provides a localization service. When the passed component is a direct or indirect child of `LocalizationProvider`, the returned service uses the language of the provider. To handle locale changes, call the method on each `render`.
16
- *
17
- * @param componentClass - The React component class that will use the internationalization service.
18
- */
19
- export declare function provideLocalizationService(component: React.Component): LocalizationService;
20
- /**
21
- * A method which registers a component class or a functional stateless component for internationalization. When a component of that type is a direct or indirect child of `IntlProvider`, the locale of the provider is used. Otherwise, uses `en` as a default locale.
22
- *
23
- * @param component - The React component class that will use the internationalization methods.
24
- */
25
- export declare function registerForIntl(component: React.ComponentClass<any, any>): void;
26
- /**
27
- * A method which registers a component class or a stateless functional component for localization. When a component of that type is a direct or indirect child of `LocalizationProvider`, the language of the provider is used.
28
- *
29
- * @param component - The React component class that will use the internationalization methods.
30
- */
31
- export declare function registerForLocalization(component: React.ComponentClass<any, any>): void;
@@ -1,9 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { PackageMetadata } from '@progress/kendo-licensing';
6
- /**
7
- * @hidden
8
- */
9
- export declare const packageMetadata: PackageMetadata;