@kano/kbc-intl
Advanced tools
Comparing version 4.25.0-alpha.0 to 4.25.1-alpha.0
@@ -1,7 +0,15 @@ | ||
import { defineMessages, injectIntl, IntlShape, FormattedMessage, WrappedComponentProps } from 'react-intl'; | ||
import { LanguageProvider } from './kbc-intl'; | ||
interface IInjectIntlChildProps extends WrappedComponentProps { | ||
import { useIntl, defineMessages, injectIntl, IntlShape, FormattedMessage, WrappedComponentProps } from 'react-intl'; | ||
import { LanguageProvider } from './provider'; | ||
import * as kbcTranslations from './translations/i18n.js'; | ||
import { mergeTranslationMessages } from './utils'; | ||
interface IWithIntlProps extends WrappedComponentProps { | ||
} | ||
declare type IIntlShape = IntlShape; | ||
export { defineMessages, injectIntl, IIntlShape, IInjectIntlChildProps, FormattedMessage, LanguageProvider }; | ||
declare const withIntl: typeof injectIntl; | ||
declare global { | ||
type Omit<T, K extends string | number | symbol> = { | ||
[P in Exclude<keyof T, K>]: T[P]; | ||
}; | ||
} | ||
export { defineMessages, kbcTranslations, useIntl, withIntl, IIntlShape, IWithIntlProps, FormattedMessage, LanguageProvider, mergeTranslationMessages }; | ||
//# sourceMappingURL=index.d.ts.map |
"use strict"; | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k]; | ||
result["default"] = mod; | ||
return result; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const react_intl_1 = require("react-intl"); | ||
exports.useIntl = react_intl_1.useIntl; | ||
exports.defineMessages = react_intl_1.defineMessages; | ||
exports.injectIntl = react_intl_1.injectIntl; | ||
exports.FormattedMessage = react_intl_1.FormattedMessage; | ||
const kbc_intl_1 = require("./kbc-intl"); | ||
exports.LanguageProvider = kbc_intl_1.LanguageProvider; | ||
const provider_1 = require("./provider"); | ||
exports.LanguageProvider = provider_1.LanguageProvider; | ||
const kbcTranslations = __importStar(require("./translations/i18n.js")); | ||
exports.kbcTranslations = kbcTranslations; | ||
const utils_1 = require("./utils"); | ||
exports.mergeTranslationMessages = utils_1.mergeTranslationMessages; | ||
; | ||
const withIntl = react_intl_1.injectIntl; | ||
exports.withIntl = withIntl; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@kano/kbc-intl", | ||
"version": "4.25.0-alpha.0", | ||
"version": "4.25.1-alpha.0", | ||
"description": "> TODO: description", | ||
@@ -8,3 +8,3 @@ "author": "Kano Computing", | ||
"license": "MIT", | ||
"main": "lib/kbc-intl.js", | ||
"main": "lib/index.js", | ||
"files": [ | ||
@@ -22,8 +22,9 @@ "lib" | ||
"test": "echo \"Error: run tests from root\" && exit 1", | ||
"build": "yarn run clean && yarn run compile:tsc", | ||
"build:quick": "yarn run compile:tsc", | ||
"build": "yarn run clean && yarn run copy:translations && yarn run compile:tsc", | ||
"build:quick": "yarn run copy:translations && yarn run compile:tsc", | ||
"watch": "lerna run watch:quick --parallel --scope=@kano/kbc-intl --include-dependencies", | ||
"watch:quick": "onchange -v 'src/**/*.{ts,tsx}' -- yarn run build:quick", | ||
"clean": "rm -rf ./lib", | ||
"compile:tsc": "tsc -p tsconfig.json" | ||
"compile:tsc": "tsc -p tsconfig.json", | ||
"copy:translations": "copyfiles -f src/translations/*.* lib/translations" | ||
}, | ||
@@ -36,3 +37,6 @@ "bugs": { | ||
}, | ||
"gitHead": "ce7986ebe683f9614cbfbe52426a9b573267eadd" | ||
"devDependencies": { | ||
"@types/react-intl": "3.0.0" | ||
}, | ||
"gitHead": "5d1fef6ee32f055e9f4051ffcee274a82e8b2889" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
13585
17
135
0
1