@kong-ui-public/i18n 2.2.11-pr.1974.b4ff460e9.0 → 2.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.
@@ -1,3 +1,4 @@
1
+ import type { Options as IntlMessageFormatOptions } from 'intl-messageformat';
1
2
  import type { IntlShapeEx, SupportedLocales, IntlConfigCore } from './types';
2
3
  /**
3
4
  * Creates and returns global or local instance of Intl
@@ -8,4 +9,5 @@ import type { IntlShapeEx, SupportedLocales, IntlConfigCore } from './types';
8
9
  */
9
10
  export declare const createI18n: <MessageSource extends Record<string, any>>(locale: SupportedLocales, messages: MessageSource, config?: boolean | IntlConfigCore) => IntlShapeEx<MessageSource>;
10
11
  export default function useI18n<MessageSource extends Record<string, any>>(): IntlShapeEx<MessageSource>;
12
+ export type { IntlMessageFormatOptions };
11
13
  //# sourceMappingURL=i18n.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"i18n.d.ts","sourceRoot":"","sources":["../../src/i18n.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,WAAW,EAAqB,gBAAgB,EAA+B,cAAc,EAAE,MAAM,SAAS,CAAA;AAe5H;;;;;;EAME;AACF,eAAO,MAAM,UAAU,GAAI,aAAa,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,UAC3D,gBAAgB,YAAY,aAAa,WAAU,OAAO,GAAG,cAAc,KAAW,WAAW,CAAC,aAAa,CAoGvH,CAAA;AAGD,MAAM,CAAC,OAAO,UAAU,OAAO,CAAC,aAAa,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,WAAW,CAAC,aAAa,CAAC,CAEvG"}
1
+ {"version":3,"file":"i18n.d.ts","sourceRoot":"","sources":["../../src/i18n.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,IAAI,wBAAwB,EAAE,MAAM,oBAAoB,CAAA;AAI7E,OAAO,KAAK,EAAE,WAAW,EAAqB,gBAAgB,EAA+B,cAAc,EAAE,MAAM,SAAS,CAAA;AAe5H;;;;;;EAME;AACF,eAAO,MAAM,UAAU,GAAI,aAAa,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,UAC3D,gBAAgB,YAAY,aAAa,WAAU,OAAO,GAAG,cAAc,KAAW,WAAW,CAAC,aAAa,CAoGvH,CAAA;AAGD,MAAM,CAAC,OAAO,UAAU,OAAO,CAAC,aAAa,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,WAAW,CAAC,aAAa,CAAC,CAEvG;AAED,YAAY,EAAE,wBAAwB,EAAE,CAAA"}
@@ -1,3 +1,4 @@
1
1
  export { default as useI18n, createI18n } from './i18n';
2
2
  export { default as Translation, i18nTComponent } from './Translation';
3
+ export type { IntlMessageFormatOptions } from './i18n';
3
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAA;AACvD,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,cAAc,EAAE,MAAM,eAAe,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAA;AACvD,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,cAAc,EAAE,MAAM,eAAe,CAAA;AAEtE,YAAY,EAAE,wBAAwB,EAAE,MAAM,QAAQ,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kong-ui-public/i18n",
3
- "version": "2.2.11-pr.1974.b4ff460e9.0",
3
+ "version": "2.3.0",
4
4
  "type": "module",
5
5
  "main": "./dist/i18n.umd.js",
6
6
  "module": "./dist/i18n.es.js",