vue-intl 7.2.8 → 7.2.9

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 (2) hide show
  1. package/index.js.map +1 -1
  2. package/package.json +3 -3
package/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["_createIntl"],"sources":["../injection-key.ts","../plugin.ts","../provider.ts","../index.ts"],"sourcesContent":["export const intlKey: unique symbol = Symbol()\n","import {\n createIntl as _createIntl,\n type IntlConfig,\n type IntlFormatters,\n type IntlShape,\n} from '@formatjs/intl'\nimport type {Plugin} from 'vue'\nimport {intlKey} from '#packages/vue-intl/injection-key.js'\n\ndeclare module 'vue' {\n interface ComponentCustomProperties {\n $intl: IntlShape\n $formatMessage: IntlFormatters['formatMessage']\n $formatDate: IntlFormatters['formatDate']\n $formatTime: IntlFormatters['formatTime']\n $formatDateTimeRange: IntlFormatters['formatDateTimeRange']\n $formatRelativeTime: IntlFormatters['formatRelativeTime']\n $formatDisplayName: IntlFormatters['formatDisplayName']\n $formatNumber: IntlFormatters['formatNumber']\n $formatList: IntlFormatters['formatList']\n }\n}\n\nexport const createIntl = (options: IntlConfig): Plugin => ({\n install(app) {\n if (!options) {\n throw new Error('Missing `options` for vue-intl plugin')\n }\n const intl = _createIntl(options)\n\n app.config.globalProperties.$intl = intl\n app.config.globalProperties.$formatMessage = intl.formatMessage\n app.config.globalProperties.$formatDate = intl.formatDate\n app.config.globalProperties.$formatTime = intl.formatTime\n app.config.globalProperties.$formatDateTimeRange = intl.formatDateTimeRange\n app.config.globalProperties.$formatRelativeTime = intl.formatRelativeTime\n app.config.globalProperties.$formatDisplayName = intl.formatDisplayName\n app.config.globalProperties.$formatNumber = intl.formatNumber\n app.config.globalProperties.$formatList = intl.formatList\n\n app.provide(intlKey, intl)\n },\n})\n","import {type IntlShape} from '@formatjs/intl'\nimport {\n inject,\n provide,\n type RendererElement,\n type RendererNode,\n type VNode,\n} from 'vue'\nimport {intlKey} from '#packages/vue-intl/injection-key.js'\n\nexport function provideIntl(intl: IntlShape<VNode>): void {\n provide(intlKey, intl)\n}\n\nexport function useIntl(): IntlShape<\n VNode<\n RendererNode,\n RendererElement,\n {\n [key: string]: any\n }\n >\n> {\n const intl = inject<IntlShape<VNode>>(intlKey)\n if (!intl) {\n throw new Error(\n `An intl object was not injected. Install the plugin or use provideIntl.`\n )\n }\n return intl\n}\n","import {\n type IntlFormatters as CoreIntlFormatters,\n type MessageDescriptor,\n} from '@formatjs/intl'\nexport * from '#packages/vue-intl/plugin.js'\nexport * from '#packages/vue-intl/provider.js'\nexport {intlKey} from '#packages/vue-intl/injection-key.js'\nexport {\n type IntlShape,\n type IntlConfig,\n type ResolvedIntlConfig,\n createIntlCache,\n type MessageDescriptor,\n type IntlCache,\n type Formatters,\n type FormatDisplayNameOptions,\n type FormatListOptions,\n type FormatPluralOptions,\n type FormatRelativeTimeOptions,\n type FormatNumberOptions,\n type FormatDateOptions,\n type CustomFormatConfig,\n type CustomFormats,\n UnsupportedFormatterError,\n InvalidConfigError,\n MissingDataError,\n MessageFormatError,\n MissingTranslationError,\n IntlErrorCode,\n IntlError,\n} from '@formatjs/intl'\nimport {type VNode} from 'vue'\n\nexport type IntlFormatters = CoreIntlFormatters<VNode>\n\nexport function defineMessages<\n K extends keyof any,\n T = MessageDescriptor,\n U extends Record<K, T> = Record<K, T>,\n>(msgs: U): U {\n return msgs\n}\n\nexport function defineMessage<T>(msg: T): T {\n return msg\n}\nexport type {MessageFormatElement} from '@formatjs/icu-messageformat-parser'\n"],"mappings":";;;AAAA,MAAa,UAAyB,QAAQ;;;ACuB9C,MAAa,cAAc,aAAiC,EAC1D,QAAQ,KAAK;AACX,KAAI,CAAC,QACH,OAAM,IAAI,MAAM,wCAAwC;CAE1D,MAAM,OAAOA,aAAY,QAAQ;AAEjC,KAAI,OAAO,iBAAiB,QAAQ;AACpC,KAAI,OAAO,iBAAiB,iBAAiB,KAAK;AAClD,KAAI,OAAO,iBAAiB,cAAc,KAAK;AAC/C,KAAI,OAAO,iBAAiB,cAAc,KAAK;AAC/C,KAAI,OAAO,iBAAiB,uBAAuB,KAAK;AACxD,KAAI,OAAO,iBAAiB,sBAAsB,KAAK;AACvD,KAAI,OAAO,iBAAiB,qBAAqB,KAAK;AACtD,KAAI,OAAO,iBAAiB,gBAAgB,KAAK;AACjD,KAAI,OAAO,iBAAiB,cAAc,KAAK;AAE/C,KAAI,QAAQ,SAAS,KAAK;GAE7B;;;AChCD,SAAgB,YAAY,MAA8B;AACxD,SAAQ,SAAS,KAAK;;AAGxB,SAAgB,UAQd;CACA,MAAM,OAAO,OAAyB,QAAQ;AAC9C,KAAI,CAAC,KACH,OAAM,IAAI,MACR,0EACD;AAEH,QAAO;;;;ACMT,SAAgB,eAId,MAAY;AACZ,QAAO;;AAGT,SAAgB,cAAiB,KAAW;AAC1C,QAAO"}
1
+ {"version":3,"file":"index.js","names":["_createIntl"],"sources":["../injection-key.ts","../plugin.ts","../provider.ts","../index.ts"],"sourcesContent":["export const intlKey: unique symbol = Symbol()\n","import {\n createIntl as _createIntl,\n type IntlConfig,\n type IntlFormatters,\n type IntlShape,\n} from '@formatjs/intl'\nimport type {Plugin} from 'vue'\nimport {intlKey} from '#packages/vue-intl/injection-key.js'\n\ndeclare module 'vue' {\n interface ComponentCustomProperties {\n $intl: IntlShape\n $formatMessage: IntlFormatters['formatMessage']\n $formatDate: IntlFormatters['formatDate']\n $formatTime: IntlFormatters['formatTime']\n $formatDateTimeRange: IntlFormatters['formatDateTimeRange']\n $formatRelativeTime: IntlFormatters['formatRelativeTime']\n $formatDisplayName: IntlFormatters['formatDisplayName']\n $formatNumber: IntlFormatters['formatNumber']\n $formatList: IntlFormatters['formatList']\n }\n}\n\nexport const createIntl = (options: IntlConfig): Plugin => ({\n install(app) {\n if (!options) {\n throw new Error('Missing `options` for vue-intl plugin')\n }\n const intl = _createIntl(options)\n\n app.config.globalProperties.$intl = intl\n app.config.globalProperties.$formatMessage = intl.formatMessage\n app.config.globalProperties.$formatDate = intl.formatDate\n app.config.globalProperties.$formatTime = intl.formatTime\n app.config.globalProperties.$formatDateTimeRange = intl.formatDateTimeRange\n app.config.globalProperties.$formatRelativeTime = intl.formatRelativeTime\n app.config.globalProperties.$formatDisplayName = intl.formatDisplayName\n app.config.globalProperties.$formatNumber = intl.formatNumber\n app.config.globalProperties.$formatList = intl.formatList\n\n app.provide(intlKey, intl)\n },\n})\n","import {type IntlShape} from '@formatjs/intl'\nimport {\n inject,\n provide,\n type RendererElement,\n type RendererNode,\n type VNode,\n} from 'vue'\nimport {intlKey} from '#packages/vue-intl/injection-key.js'\n\nexport function provideIntl(intl: IntlShape<VNode>): void {\n provide(intlKey, intl)\n}\n\nexport function useIntl(): IntlShape<\n VNode<\n RendererNode,\n RendererElement,\n {\n [key: string]: any\n }\n >\n> {\n const intl = inject<IntlShape<VNode>>(intlKey)\n if (!intl) {\n throw new Error(\n `An intl object was not injected. Install the plugin or use provideIntl.`\n )\n }\n return intl\n}\n","import {\n type IntlFormatters as CoreIntlFormatters,\n type MessageDescriptor,\n} from '@formatjs/intl'\nexport * from '#packages/vue-intl/plugin.js'\nexport * from '#packages/vue-intl/provider.js'\nexport {intlKey} from '#packages/vue-intl/injection-key.js'\nexport {\n type IntlShape,\n type IntlConfig,\n type ResolvedIntlConfig,\n createIntlCache,\n type MessageDescriptor,\n type IntlCache,\n type Formatters,\n type FormatDisplayNameOptions,\n type FormatListOptions,\n type FormatPluralOptions,\n type FormatRelativeTimeOptions,\n type FormatNumberOptions,\n type FormatDateOptions,\n type CustomFormatConfig,\n type CustomFormats,\n UnsupportedFormatterError,\n InvalidConfigError,\n MissingDataError,\n MessageFormatError,\n MissingTranslationError,\n IntlErrorCode,\n IntlError,\n} from '@formatjs/intl'\nimport {type VNode} from 'vue'\n\nexport type IntlFormatters = CoreIntlFormatters<VNode>\n\nexport function defineMessages<\n K extends keyof any,\n T = MessageDescriptor,\n U extends Record<K, T> = Record<K, T>,\n>(msgs: U): U {\n return msgs\n}\n\nexport function defineMessage<T>(msg: T): T {\n return msg\n}\nexport type {MessageFormatElement} from '@formatjs/icu-messageformat-parser'\n"],"mappings":";;;AAAA,MAAa,UAAyB,OAAO;;;ACuB7C,MAAa,cAAc,aAAiC,EAC1D,QAAQ,KAAK;CACX,IAAI,CAAC,SACH,MAAM,IAAI,MAAM,uCAAuC;CAEzD,MAAM,OAAOA,aAAY,OAAO;CAEhC,IAAI,OAAO,iBAAiB,QAAQ;CACpC,IAAI,OAAO,iBAAiB,iBAAiB,KAAK;CAClD,IAAI,OAAO,iBAAiB,cAAc,KAAK;CAC/C,IAAI,OAAO,iBAAiB,cAAc,KAAK;CAC/C,IAAI,OAAO,iBAAiB,uBAAuB,KAAK;CACxD,IAAI,OAAO,iBAAiB,sBAAsB,KAAK;CACvD,IAAI,OAAO,iBAAiB,qBAAqB,KAAK;CACtD,IAAI,OAAO,iBAAiB,gBAAgB,KAAK;CACjD,IAAI,OAAO,iBAAiB,cAAc,KAAK;CAE/C,IAAI,QAAQ,SAAS,IAAI;AAC3B,EACF;;;AChCA,SAAgB,YAAY,MAA8B;CACxD,QAAQ,SAAS,IAAI;AACvB;AAEA,SAAgB,UAQd;CACA,MAAM,OAAO,OAAyB,OAAO;CAC7C,IAAI,CAAC,MACH,MAAM,IAAI,MACR,yEACF;CAEF,OAAO;AACT;;;ACKA,SAAgB,eAId,MAAY;CACZ,OAAO;AACT;AAEA,SAAgB,cAAiB,KAAW;CAC1C,OAAO;AACT"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "vue-intl",
3
3
  "description": "formatjs intl binding for vue",
4
- "version": "7.2.8",
4
+ "version": "7.2.9",
5
5
  "license": "ISC",
6
6
  "author": "Long Ho <holevietlong@gmail.com>",
7
7
  "type": "module",
@@ -11,8 +11,8 @@
11
11
  },
12
12
  "dependencies": {
13
13
  "@babel/types": "^7.29.0",
14
- "@formatjs/icu-messageformat-parser": "3.5.9",
15
- "@formatjs/intl": "4.1.11"
14
+ "@formatjs/icu-messageformat-parser": "3.5.10",
15
+ "@formatjs/intl": "4.1.12"
16
16
  },
17
17
  "peerDependencies": {
18
18
  "vue": "^3.5.0"